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]
/
drivers
/
block
/
fsl_sata.c
diff --git
a/drivers/block/fsl_sata.c
b/drivers/block/fsl_sata.c
index
55f593a
..
2009d1e
100644
(file)
--- a/
drivers/block/fsl_sata.c
+++ b/
drivers/block/fsl_sata.c
@@
-26,23
+26,23
@@
#include <fis.h>
#include "fsl_sata.h"
#include <fis.h>
#include "fsl_sata.h"
-extern block_dev_desc_t sata_dev_desc[C
FG
_SATA_MAX_DEVICE];
+extern block_dev_desc_t sata_dev_desc[C
ONFIG_SYS
_SATA_MAX_DEVICE];
-#ifndef C
FG
_SATA1_FLAGS
- #define C
FG_SATA1_FLAGS
FLAGS_DMA
+#ifndef C
ONFIG_SYS
_SATA1_FLAGS
+ #define C
ONFIG_SYS_SATA1_FLAGS
FLAGS_DMA
#endif
#endif
-#ifndef C
FG
_SATA2_FLAGS
- #define C
FG_SATA2_FLAGS
FLAGS_DMA
+#ifndef C
ONFIG_SYS
_SATA2_FLAGS
+ #define C
ONFIG_SYS_SATA2_FLAGS
FLAGS_DMA
#endif
static struct fsl_sata_info fsl_sata_info[] = {
#ifdef CONFIG_SATA1
#endif
static struct fsl_sata_info fsl_sata_info[] = {
#ifdef CONFIG_SATA1
- {C
FG_SATA1, CFG
_SATA1_FLAGS},
+ {C
ONFIG_SYS_SATA1, CONFIG_SYS
_SATA1_FLAGS},
#else
{0, 0},
#endif
#ifdef CONFIG_SATA2
#else
{0, 0},
#endif
#ifdef CONFIG_SATA2
- {C
FG_SATA2, CFG
_SATA2_FLAGS},
+ {C
ONFIG_SYS_SATA2, CONFIG_SYS
_SATA2_FLAGS},
#else
{0, 0},
#endif
#else
{0, 0},
#endif
@@
-123,7
+123,7
@@
int init_sata(int dev)
int i;
fsl_sata_t *sata;
int i;
fsl_sata_t *sata;
- if (dev < 0 || dev > (C
FG
_SATA_MAX_DEVICE - 1)) {
+ if (dev < 0 || dev > (C
ONFIG_SYS
_SATA_MAX_DEVICE - 1)) {
printf("the sata index %d is out of ranges\n\r", dev);
return -1;
}
printf("the sata index %d is out of ranges\n\r", dev);
return -1;
}