diff options
author | York Sun <yorksun@freescale.com> | 2013-11-18 10:29:32 -0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-11-25 11:43:46 -0800 |
commit | 9a17eb5b7e7ba528c278a9677c38d7ae722d93ec (patch) | |
tree | 5df092304229af616adb25b47d31a01ca0cf7d90 /nand_spl | |
parent | 5614e71b4956c579cd4419b958b33fa6316eaa92 (diff) | |
download | u-boot-midas-9a17eb5b7e7ba528c278a9677c38d7ae722d93ec.tar.gz u-boot-midas-9a17eb5b7e7ba528c278a9677c38d7ae722d93ec.tar.bz2 u-boot-midas-9a17eb5b7e7ba528c278a9677c38d7ae722d93ec.zip |
Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xx
Fix ccsr_ddr structure to avoid using typedef. Combine DDR2 and DDR3
structure for 83xx, 85xx and 86xx.
Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'nand_spl')
-rw-r--r-- | nand_spl/board/freescale/p1023rds/nand_boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nand_spl/board/freescale/p1023rds/nand_boot.c b/nand_spl/board/freescale/p1023rds/nand_boot.c index 58e6cbf289..d9afa6d024 100644 --- a/nand_spl/board/freescale/p1023rds/nand_boot.c +++ b/nand_spl/board/freescale/p1023rds/nand_boot.c @@ -18,7 +18,8 @@ DECLARE_GLOBAL_DATA_PTR; /* Fixed sdram init -- doesn't use serial presence detect. */ void sdram_init(void) { - ccsr_ddr_t *ddr = (ccsr_ddr_t *)CONFIG_SYS_FSL_DDR_ADDR; + struct ccsr_ddr __iomem *ddr = + (struct ccsr_ddr __iomem *)CONFIG_SYS_FSL_DDR_ADDR; set_next_law(0, LAW_SIZE_2G, LAW_TRGT_IF_DDR_1); |