mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <div64.h>
|
||||
|
||||
#include <fsl_ddr.h>
|
||||
#include <fsl_immap.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
/* To avoid 64-bit full-divides, we factor this here */
|
||||
@@ -134,7 +135,8 @@ u32 fsl_ddr_get_intl3r(void)
|
||||
|
||||
void board_add_ram_info(int use_default)
|
||||
{
|
||||
ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_FSL_DDR_ADDR);
|
||||
struct ccsr_ddr __iomem *ddr =
|
||||
(struct ccsr_ddr __iomem *)(CONFIG_SYS_FSL_DDR_ADDR);
|
||||
|
||||
#if defined(CONFIG_E6500) && (CONFIG_NUM_DDR_CONTROLLERS == 3)
|
||||
u32 *mcintl3r = (void *) (CONFIG_SYS_IMMR + 0x18004);
|
||||
|
Reference in New Issue
Block a user