|
@@ -99,7 +99,7 @@ unsigned long get_sdram_size(void)
|
|
struct cpu_type *cpu;
|
|
struct cpu_type *cpu;
|
|
phys_size_t ddr_size;
|
|
phys_size_t ddr_size;
|
|
|
|
|
|
- cpu = gd->cpu;
|
|
|
|
|
|
+ cpu = gd->arch.cpu;
|
|
/* P1014 and it's derivatives support max 16it DDR width */
|
|
/* P1014 and it's derivatives support max 16it DDR width */
|
|
if (cpu->soc_ver == SVR_P1014)
|
|
if (cpu->soc_ver == SVR_P1014)
|
|
ddr_size = (CONFIG_SYS_DRAM_SIZE / 2);
|
|
ddr_size = (CONFIG_SYS_DRAM_SIZE / 2);
|
|
@@ -144,7 +144,7 @@ phys_size_t fixed_sdram(void)
|
|
panic("Unsupported DDR data rate %s MT/s data rate\n",
|
|
panic("Unsupported DDR data rate %s MT/s data rate\n",
|
|
strmhz(buf, ddr_freq));
|
|
strmhz(buf, ddr_freq));
|
|
|
|
|
|
- cpu = gd->cpu;
|
|
|
|
|
|
+ cpu = gd->arch.cpu;
|
|
/* P1014 and it's derivatives support max 16bit DDR width */
|
|
/* P1014 and it's derivatives support max 16bit DDR width */
|
|
if (cpu->soc_ver == SVR_P1014) {
|
|
if (cpu->soc_ver == SVR_P1014) {
|
|
ddr_cfg_regs.ddr_sdram_cfg &= ~SDRAM_CFG_DBW_MASK;
|
|
ddr_cfg_regs.ddr_sdram_cfg &= ~SDRAM_CFG_DBW_MASK;
|
|
@@ -237,7 +237,7 @@ void fsl_ddr_board_options(memctl_options_t *popts,
|
|
popts->trwt_override = 1;
|
|
popts->trwt_override = 1;
|
|
popts->trwt = 0;
|
|
popts->trwt = 0;
|
|
|
|
|
|
- cpu = gd->cpu;
|
|
|
|
|
|
+ cpu = gd->arch.cpu;
|
|
/* P1014 and it's derivatives support max 16it DDR width */
|
|
/* P1014 and it's derivatives support max 16it DDR width */
|
|
if (cpu->soc_ver == SVR_P1014)
|
|
if (cpu->soc_ver == SVR_P1014)
|
|
popts->data_bus_width = DDR_DATA_BUS_WIDTH_16;
|
|
popts->data_bus_width = DDR_DATA_BUS_WIDTH_16;
|