diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-05-13 15:00:46 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-05-19 18:46:44 +0200 |
commit | 8975cdf4bce6e562ebb5451a2d1a9beca096660b (patch) | |
tree | def8587997c42c10c7a8cdffe74ddccb1737769d /arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h | |
parent | a881db09c073bfc043be8a7e909ac955fdd3794a (diff) | |
download | u-boot-imx-8975cdf4bce6e562ebb5451a2d1a9beca096660b.zip u-boot-imx-8975cdf4bce6e562ebb5451a2d1a9beca096660b.tar.gz u-boot-imx-8975cdf4bce6e562ebb5451a2d1a9beca096660b.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h')
-rw-r--r-- | arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h index 06adee2..316a333 100644 --- a/arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h +++ b/arch/arm/include/asm/arch-sunxi/dram_sun8i_a23.h @@ -19,6 +19,7 @@ struct dram_para { u32 type; u32 zq; u32 odt_en; + s32 odt_correction; u32 para1; u32 para2; u32 mr0; |