Lines Matching +full:im +full:-
2 * Copyright (C) Freescale Semiconductor, Inc. 2006-2007
8 * SPDX-License-Identifier: GPL-2.0+
33 gd->flags &= ~GD_FLG_SILENT; in resume_from_sleep()
38 /* Fixed sdram init -- doesn't use serial presence detect.
48 volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR; in fixed_sdram() local
51 im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000; in fixed_sdram()
52 im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1); in fixed_sdram()
53 im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE; in fixed_sdram()
64 im->ddr.csbnds[0].csbnds = in fixed_sdram()
66 (((CONFIG_SYS_DDR_SDRAM_BASE + msize - 1) >> CSBNDS_EA_SHIFT) & in fixed_sdram()
68 im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG; in fixed_sdram()
71 im->ddr.cs_config[1] = 0; in fixed_sdram()
73 im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL; in fixed_sdram()
74 im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3; in fixed_sdram()
75 im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1; in fixed_sdram()
76 im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2; in fixed_sdram()
77 im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0; in fixed_sdram()
80 if (im->pmc.pmccr1 & PMCCR1_POWER_OFF) in fixed_sdram()
81 im->ddr.sdram_cfg = CONFIG_SYS_SDRAM_CFG | SDRAM_CFG_BI; in fixed_sdram()
84 im->ddr.sdram_cfg = CONFIG_SYS_SDRAM_CFG; in fixed_sdram()
86 im->ddr.sdram_cfg2 = CONFIG_SYS_SDRAM_CFG2; in fixed_sdram()
87 im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE; in fixed_sdram()
88 im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE_2; in fixed_sdram()
90 im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL; in fixed_sdram()
94 im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN; in fixed_sdram()
102 volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR; in dram_init() local
103 volatile fsl_lbc_t *lbc = &im->im_lbc; in dram_init()
106 if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32)im) in dram_init()
107 return -ENXIO; in dram_init()
109 /* DDR SDRAM - Main SODIMM */ in dram_init()
113 lbc->lbcr = CONFIG_SYS_LBC_LBCR; in dram_init()
114 lbc->mrtpr = CONFIG_SYS_LBC_MRTPR; in dram_init()
118 if (im->pmc.pmccr1 & PMCCR1_POWER_OFF) in dram_init()
122 /* return total bus SDRAM size(bytes) -- DDR */ in dram_init()
123 gd->ram_size = msize; in dram_init()