summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bba3928)
raw | patch | inline | side by side (parent: bba3928)
author | Prabhu Kuttiyam <pkuttiyam@ti.com> | |
Mon, 28 Nov 2011 21:21:14 +0000 (16:21 -0500) | ||
committer | Prabhu Kuttiyam <pkuttiyam@ti.com> | |
Mon, 28 Nov 2011 21:21:14 +0000 (16:21 -0500) |
src/device/c66x/c66xutil.c | patch | blob | history | |
src/device/c66x/target.h | patch | blob | history |
index 1edf768a0a0a3d7a0834c64e1ceb44d8dd58d981..29cf7521a7d651bccbe47bffde6e5be81520da7c 100644 (file)
#include "device.h"
#include "target.h"
#include "pllapi.h"
-#include <string.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
+#include "types.h"
/**
* @brief
*/
-int32_t ddr3_memory_test (void)
+UINT32 ddr3_memory_test (void)
{
- uint32_t index, value;
+ UINT32 index, value;
/* Write a pattern */
for (index = DDR3_TEST_START_ADDRESS; index < DDR3_TEST_END_ADDRESS; index += 4) {
- *(volatile uint32_t *) index = (uint32_t)index;
+ *(VUint32 *) index = (UINT32)index;
}
/* Read and check the pattern */
for (index = DDR3_TEST_START_ADDRESS; index < DDR3_TEST_END_ADDRESS; index += 4) {
- value = *(uint32_t *) index;
+ value = *(UINT32 *) index;
if (value != index) {
return -1;
/* Write a pattern for complementary values */
for (index = DDR3_TEST_START_ADDRESS; index < DDR3_TEST_END_ADDRESS; index += 4) {
- *(volatile uint32_t *) index = (uint32_t)~index;
+ *(VUint32 *) index = (UINT32)~index;
}
/* Read and check the pattern */
for (index = DDR3_TEST_START_ADDRESS; index < DDR3_TEST_END_ADDRESS; index += 4) {
- value = *(uint32_t *) index;
+ value = *(UINT32 *) index;
if (value != ~index) {
return -1;
index 763207ff7dc019f01b63a66cc3d0fb9e2f3d5bdf..ed3018dc7e2ba15ff244275952f9ce50eb9d7d51 100644 (file)
--- a/src/device/c66x/target.h
+++ b/src/device/c66x/target.h
#ifndef _TARGET_H
#define _TARGET_H
#include "types.h"
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
/**
*/
#define PLL_REINIT_WORKAROUND
-extern int32_t ddr3_memory_test();
+UINT32 ddr3_memory_test();
#endif /* _TARGET_H */