Skip to content

Commit eb26446

Browse files
committed
Revert "driver:dram: align the device name of the 2g dram sip"
This reverts commit 5776d65.
1 parent 1947974 commit eb26446

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

configs/sam9x75_som2g_nf_uboot_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
CONFIG_SAM9X7=y
66
CONFIG_DEBUG=y
77
CONFIG_DDR_SET_BY_DEVICE=y
8-
CONFIG_DDR_W632GU6NB12I=y
8+
CONFIG_DDR_W632GU6NG=y
99
CONFIG_NANDFLASH=y
1010
CONFIG_NAND_TIMING_MODE=y
1111
CONFIG_NAND_DMA_SUPPORT=y

configs/sam9x75_som2g_sd_uboot_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
CONFIG_SAM9X7=y
66
CONFIG_DEBUG=y
77
CONFIG_DDR_SET_BY_DEVICE=y
8-
CONFIG_DDR_W632GU6NB12I=y
8+
CONFIG_DDR_W632GU6NG=y
99
CONFIG_SDCARD=y

driver/Config.in.dram

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ config DDR_W971GG6SB
8282
depends on DDRC
8383
help
8484
DDR2 W971GG6SB 1 Gbit
85+
config DDR_W632GU6NG
86+
bool "DDR3L W632GU6NG (SAM9X75-2G SiP)"
87+
depends on DDRC
88+
help
89+
DDR3L W632GU6NG 2 Gbit
8590
config DDR_W9751G6NB
8691
bool "DDR3L W9751G6NB (SAM9X75-512M SiP)"
8792
depends on DDRC
@@ -147,7 +152,8 @@ config DDR_W631GU6NB12I
147152
help
148153
DDR3L W631GU6NB12I 8 Meg x 16 x 8 DDR3-1600
149154
config DDR_W632GU6NB12I
150-
bool "DDR3L W632GU6NB12I(SAM9X75|SAMA7G54|SAMA7D65 2G-SIP)"
155+
bool "DDR3L W632GU6NB12I(SAMA7G54|SAMA7D65 2G-SIP)"
156+
depends on UMCTL2
151157
help
152158
DDR3L W632GU6N12I 16 Meg x 16 x 8 DDR3L-1600
153159
config DDR_W634GU6NB12I

driver/ddramc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ static void ddram_reg_config(struct ddramc_register *ddramc_config)
7777
#else
7878
#error "No CLK setting defined"
7979
#endif
80-
#elif defined(CONFIG_DDR_W632GU6NB12I)
81-
/* DDR3L(W632GU6NB12I = 16 Mbit x 16 x 8 banks), total 2Gbit on SAM9X75D2G */
80+
#elif defined(CONFIG_DDR_W632GU6NG)
81+
/* DDR3L(W632GU6NG = 16 Mbit x 16 x 8 banks), total 2Gbit on SAM9X75D2G */
8282
type = AT91C_DDRC2_MD_DDR3_SDRAM;
8383
dbw = AT91C_DDRC2_DBW_16_BITS;
8484
col = AT91C_DDRC2_NC_DDR10_SDR9;

driver/driver_cpp.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ endif
2727
ifeq ($(CONFIG_DDR_MT41K128M16),y)
2828
CPPFLAGS += -DCONFIG_DDR3 -DCONFIG_DDR_2_GBIT
2929
endif
30+
ifeq ($(CONFIG_DDR_W632GU6NG),y)
31+
CPPFLAGS += -DCONFIG_DDR3 -DCONFIG_DDR_2_GBIT
32+
endif
3033
ifeq ($(CONFIG_DDR_W9751G6NB),y)
3134
CPPFLAGS += -DCONFIG_DDR2 -DCONFIG_DDR_512_MBIT
3235
endif

include/ddr_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ static const struct ddram_timings ddr_ddram_timings = {
9797
#error "No CLK setting defined"
9898
#endif /* Endif of CONFIG_BUS_SPEED_200MHZ */
9999

100-
#elif defined(CONFIG_DDR_W632GU6NB12I)
101-
/* DDR3L (W632GU6NB12I = 16 Mbit x 16 x 8 banks), total 2Gbit on SAM9X75D2G */
100+
#elif defined(CONFIG_DDR_W632GU6NG)
101+
/* DDR3L (W632GU6NG = 16 Mbit x 16 x 8 banks), total 2Gbit on SAM9X75D2G */
102102
#if defined(CONFIG_BUS_SPEED_200MHZ)
103103
.tras = 7,
104104
.trcd = 3,

0 commit comments

Comments
 (0)