]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
sunxi: Make DRAM_ODT_EN Kconfig setting a bool
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 May 2015 13:00:46 +0000 (15:00 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:43:14 +0000 (22:43 +0200)
commit1c5ddc99aba49e71f0791e10c930452b16b555c5
treec5df66b1895535bc2ee5571e49e6fbf20da962d4
parent6f2861128ed44a366e5146655cb2a5196d6085e7
sunxi: Make DRAM_ODT_EN Kconfig setting a bool

Make DRAM_ODT_EN Kconfig setting a bool, add a separate DRAM_ODT_CORRECTION
setting for A23 SoCs and use DRAM_ODT_EN Kconfig everywhere instead of
only in dram_sun4i.c and hardcoding odt_en elsewhere.

Note this commit makes no functional changes for existing boards,
its purpose is to allow changing the odt_en value on future A33 boards.

For sun4i/sun5i/sun7i boards which set DRAM_ODT_EN=y (which no defconfigs
currently do) this patch turns on odt for both the DQ and the DQS lines,
whereas previously it was possibly (but not desirable) to turn odt on only
for one of them by setting the in DRAM_ODT_EN option to 1 or 2 instead of 3.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
arch/arm/cpu/armv7/sunxi/dram_sun4i.c
arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c
arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c
arch/arm/include/asm/arch-sunxi/dram_sun4i.h
arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h
board/sunxi/Kconfig
board/sunxi/dram_sun4i_auto.c
board/sunxi/dram_sun5i_auto.c