projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename CFG_ macros to CONFIG_SYS
[platform/kernel/u-boot.git]
/
post
/
board
/
lwmon5
/
dspic.c
diff --git
a/post/board/lwmon5/dspic.c
b/post/board/lwmon5/dspic.c
index
eb1c31c
..
ff2ed05
100644
(file)
--- a/
post/board/lwmon5/dspic.c
+++ b/
post/board/lwmon5/dspic.c
@@
-40,12
+40,12
@@
DECLARE_GLOBAL_DATA_PTR;
#define DSPIC_SYS_ERROR_REG 0x802
#define DSPIC_VERSION_REG 0x804
#define DSPIC_SYS_ERROR_REG 0x802
#define DSPIC_VERSION_REG 0x804
-#if CONFIG_POST & C
FG
_POST_BSPEC1
+#if CONFIG_POST & C
ONFIG_SYS
_POST_BSPEC1
/* Verify that dsPIC ready test done early at hw init passed ok */
int dspic_init_post_test(int flags)
{
/* Verify that dsPIC ready test done early at hw init passed ok */
int dspic_init_post_test(int flags)
{
- if (in_be32((void *)C
FG_DSPIC_TEST_ADDR) & CFG
_DSPIC_TEST_MASK) {
+ if (in_be32((void *)C
ONFIG_SYS_DSPIC_TEST_ADDR) & CONFIG_SYS
_DSPIC_TEST_MASK) {
post_log("dsPIC init test failed\n");
return 1;
}
post_log("dsPIC init test failed\n");
return 1;
}
@@
-53,15
+53,15
@@
int dspic_init_post_test(int flags)
return 0;
}
return 0;
}
-#endif /* CONFIG_POST & C
FG
_POST_BSPEC1 */
+#endif /* CONFIG_POST & C
ONFIG_SYS
_POST_BSPEC1 */
-#if CONFIG_POST & C
FG
_POST_BSPEC2
+#if CONFIG_POST & C
ONFIG_SYS
_POST_BSPEC2
/* Read a register from the dsPIC. */
int dspic_read(ushort reg)
{
uchar buf[2];
/* Read a register from the dsPIC. */
int dspic_read(ushort reg)
{
uchar buf[2];
- if (i2c_read(C
FG
_I2C_DSPIC_IO_ADDR, reg, 2, buf, 2))
+ if (i2c_read(C
ONFIG_SYS
_I2C_DSPIC_IO_ADDR, reg, 2, buf, 2))
return -1;
return (uint)((buf[0] << 8) | buf[1]);
return -1;
return (uint)((buf[0] << 8) | buf[1]);
@@
-102,4
+102,4
@@
int dspic_post_test(int flags)
return ret;
}
return ret;
}
-#endif /* CONFIG_POST & C
FG
_POST_BSPEC2 */
+#endif /* CONFIG_POST & C
ONFIG_SYS
_POST_BSPEC2 */