Home
last modified time | relevance | path

Searched refs:sdram (Results 1 – 25 of 79) sorted by relevance

1234

/external/u-boot/board/freescale/m54418twr/
Dm54418twr.c38 sdramc_t *sdram = (sdramc_t *)(MMAP_SDRAM); in dram_init() local
57 out_be32(&sdram->rcrcr, 0x40000000); in dram_init()
58 out_be32(&sdram->padcr, 0x01030203); in dram_init()
60 out_be32(&sdram->cr00, 0x01010101); in dram_init()
61 out_be32(&sdram->cr01, 0x00000101); in dram_init()
62 out_be32(&sdram->cr02, 0x01010100); in dram_init()
63 out_be32(&sdram->cr03, 0x01010000); in dram_init()
64 out_be32(&sdram->cr04, 0x00010101); in dram_init()
65 out_be32(&sdram->cr06, 0x00010100); in dram_init()
66 out_be32(&sdram->cr07, 0x00000001); in dram_init()
[all …]
/external/u-boot/board/freescale/m5208evbe/
Dm5208evbe.c26 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
37 out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
39 out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
41 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
42 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
47 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
51 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
52 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
56 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE); in dram_init()
58 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
[all …]
/external/u-boot/board/freescale/m5329evb/
Dm5329evb.c26 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
37 out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
38 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
39 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
42 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
45 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
46 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000); in dram_init()
51 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
54 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
55 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
[all …]
/external/u-boot/board/freescale/m5373evb/
Dm5373evb.c26 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
37 out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
38 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
39 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
42 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
45 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
46 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000); in dram_init()
51 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
54 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
55 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
[all …]
/external/u-boot/board/freescale/m53017evb/
Dm53017evb.c26 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
37 out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
39 out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
41 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
42 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
47 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
51 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
52 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
56 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE); in dram_init()
58 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
[all …]
/external/u-boot/board/freescale/m54451evb/
Dm54451evb.c38 sdramc_t *sdram = (sdramc_t *)(MMAP_SDRAM); in dram_init() local
44 if ((in_be32(&sdram->sdcfg1) == CONFIG_SYS_SDRAM_CFG1) && in dram_init()
45 (in_be32(&sdram->sdcfg2) == CONFIG_SYS_SDRAM_CFG2)) in dram_init()
56 out_be32(&sdram->sdcs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
58 out_be32(&sdram->sdcfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
59 out_be32(&sdram->sdcfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
64 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
68 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
70 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
74 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); in dram_init()
[all …]
/external/u-boot/doc/device-tree-bindings/ram/
Dst,stm32-fmc.txt8 on-board sdram memory attributes:
9 - st,sdram-control : parameters for sdram configuration, in this order:
18 - st,sdram-timing: timings for sdram, in this order:
27 include/dt-bindings/memory/stm32-sdram.h to define sdram control and timing
43 /* sdram memory configuration from sdram datasheet */
45 st,sdram-control = /bits/ 8 <NO_COL_8 NO_ROW_12 MWIDTH_16 BANKS_2
47 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_60 TRAS_42 TRC_60 TRP_18
51 /* sdram memory configuration from sdram datasheet */
53 st,sdram-control = /bits/ 8 <NO_COL_8 NO_ROW_12 MWIDTH_16 BANKS_2
55 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_60 TRAS_42 TRC_60 TRP_18
/external/u-boot/board/freescale/m52277evb/
Dm52277evb.c34 sdramc_t *sdram = (sdramc_t *)(MMAP_SDRAM); in dram_init() local
48 out_be32(&sdram->sdcs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
50 out_be32(&sdram->sdcfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
51 out_be32(&sdram->sdcfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
54 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
58 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); in dram_init()
60 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_EMOD); in dram_init()
66 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
70 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
72 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
[all …]
/external/u-boot/board/freescale/m547xevb/
Dm547xevb.c28 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
55 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
56 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
59 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
62 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
63 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000); in dram_init()
68 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
71 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
72 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
74 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE); in dram_init()
[all …]
/external/u-boot/board/freescale/m548xevb/
Dm548xevb.c28 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
55 out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
56 out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
59 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
62 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD); in dram_init()
63 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000); in dram_init()
68 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
71 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
72 out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
74 out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE); in dram_init()
[all …]
/external/u-boot/board/freescale/m54455evb/
Dm54455evb.c34 sdramc_t *sdram = (sdramc_t *)(MMAP_SDRAM); in dram_init() local
48 out_be32(&sdram->sdcs0, CONFIG_SYS_SDRAM_BASE | i); in dram_init()
49 out_be32(&sdram->sdcs1, CONFIG_SYS_SDRAM_BASE1 | i); in dram_init()
51 out_be32(&sdram->sdcfg1, CONFIG_SYS_SDRAM_CFG1); in dram_init()
52 out_be32(&sdram->sdcfg2, CONFIG_SYS_SDRAM_CFG2); in dram_init()
55 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
58 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_EMOD | 0x408); in dram_init()
59 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE | 0x300); in dram_init()
64 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 2); in dram_init()
67 out_be32(&sdram->sdcr, CONFIG_SYS_SDRAM_CTRL | 4); in dram_init()
[all …]
/external/u-boot/board/freescale/m5235evb/
Dm5235evb.c26 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in dram_init() local
52 if (!(in_be32(&sdram->dacr0) & SDRAMC_DARCn_RE)) { in dram_init()
56 out_be16(&sdram->dcr, SDRAMC_DCR_RTIM_9CLKS | in dram_init()
61 out_be32(&sdram->dacr0, in dram_init()
68 out_be32(&sdram->dmr0, in dram_init()
73 setbits_be32(&sdram->dacr0, SDRAMC_DARCn_IP); in dram_init()
84 setbits_be32(&sdram->dacr0, SDRAMC_DARCn_RE); in dram_init()
92 setbits_be32(&sdram->dacr0, SDRAMC_DARCn_IMRS); in dram_init()
/external/u-boot/arch/arm/mach-tegra/tegra20/
Dwarmboot.c124 struct sdram_params sdram; in warmboot_save_sdram_params() local
141 memcpy(&sdram, in warmboot_save_sdram_params()
143 sizeof(sdram)); in warmboot_save_sdram_params()
167 scratch2.memory_type = sdram.memory_type; in warmboot_save_sdram_params()
174 scratch4.emc_clock_divider = sdram.emc_clock_divider; in warmboot_save_sdram_params()
181 scratch24.emc_pin_program_wait = sdram.emc_pin_program_wait; in warmboot_save_sdram_params()
182 scratch24.emc_auto_cal_wait = sdram.emc_auto_cal_wait; in warmboot_save_sdram_params()
183 scratch24.warmboot_wait = sdram.warm_boot_wait; in warmboot_save_sdram_params()
/external/u-boot/arch/arm/cpu/armv8/
Du-boot-spl.lds16 MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
61 } >.sdram
66 } >.sdram
70 } >.sdram
/external/u-boot/arch/m68k/cpu/mcf532x/
Dspeed.c143 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); in clock_pll() local
199 if (in_be32(&sdram->ctrl) & SDRAMC_SDCR_REF) in clock_pll()
200 clrbits_be32(&sdram->ctrl, SDRAMC_SDCR_CKE); in clock_pll()
232 if (in_be32(&sdram->ctrl) & SDRAMC_SDCR_REF) in clock_pll()
233 setbits_be32(&sdram->ctrl, SDRAMC_SDCR_CKE); in clock_pll()
/external/u-boot/arch/arm/dts/
Dstm32h743i-eval.dts46 #include <dt-bindings/memory/stm32-sdram.h>
89 * Memory configuration from sdram datasheet IS42S32800G-6BLI
94 st,sdram-control = /bits/ 8 <NO_COL_9 NO_ROW_12 MWIDTH_32 BANKS_4
96 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_1 TRAS_1 TRC_6 TRP_2
98 st,sdram-refcount = <1539>;
Dstm32h743i-disco.dts46 #include <dt-bindings/memory/stm32-sdram.h>
90 * Memory configuration from sdram datasheet IS42S32800G-6BLI
95 st,sdram-control = /bits/ 8 <NO_COL_9 NO_ROW_12 MWIDTH_32 BANKS_4
97 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_1 TRAS_1 TRC_6 TRP_2
99 st,sdram-refcount = <1539>;
Dstm32f429-disco-u-boot.dtsi7 #include <dt-bindings/memory/stm32-sdram.h>
45 * Memory configuration from sdram datasheet
49 st,sdram-control = /bits/ 8 <NO_COL_8
57 st,sdram-timing = /bits/ 8 <TMRD_3
63 st,sdram-refcount = < 1386 >;
Dstm32f469-disco-u-boot.dtsi7 #include <dt-bindings/memory/stm32-sdram.h>
45 * Memory configuration from sdram
49 st,sdram-control = /bits/ 8 <NO_COL_8
57 st,sdram-timing = /bits/ 8 <TMRD_2
64 st,sdram-refcount = < 1292 >;
Dstm32429i-eval-u-boot.dtsi7 #include <dt-bindings/memory/stm32-sdram.h>
45 * Memory configuration from sdram
49 st,sdram-control = /bits/ 8 <NO_COL_9
57 st,sdram-timing = /bits/ 8 <TMRD_2
64 st,sdram-refcount = < 2812 >;
Dstm32f769-disco.dts45 #include <dt-bindings/memory/stm32-sdram.h>
213 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
215 st,sdram-control = /bits/ 8 <NO_COL_8 NO_ROW_12 MWIDTH_32 BANKS_4
218 st,sdram-timing = /bits/ 8 <TMRD_2 TXSR_6 TRAS_4 TRC_6 TWR_2
221 st,sdram-refcount = < 1542 >;
Dstm32746g-eval.dts49 #include <dt-bindings/memory/stm32-sdram.h>
222 * Memory configuration from sdram datasheet IS42S32800G-6BLI
225 st,sdram-control = /bits/ 8 <NO_COL_9 NO_ROW_12 MWIDTH_32 BANKS_4
227 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_1 TRAS_1 TRC_6 TRP_2
229 st,sdram-refcount = <1539>;
/external/u-boot/arch/arm/mach-at91/arm926ejs/
Du-boot-spl.lds9 MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
49 } >.sdram
/external/u-boot/arch/arm/cpu/arm1136/
Du-boot-spl.lds13 MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
49 } >.sdram
/external/u-boot/arch/arm/mach-at91/
DMakefile5 obj-$(CONFIG_AT91SAM9260) += sdram.o spl_at91.o
6 obj-$(CONFIG_AT91SAM9G20) += sdram.o spl_at91.o

1234