]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: vf610: ddrmc: fix CR138 preprocessor define
authorStefan Agner <stefan.agner@toradex.com>
Tue, 4 Dec 2018 10:10:19 +0000 (11:10 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jan 2019 15:27:08 +0000 (16:27 +0100)
According to the data sheet bits 10-8 are PHYDRAM_CK_EN. Fix mask
to allow setting PHYDRAM_CK_EN correctly.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
arch/arm/include/asm/arch-vf610/imx-regs.h

index 08ba8e94f8fb2cb9b45a1d0c817cdd14e13fab71..b7374bfb8f3299d2b2fdd0b81e334ba512f862a6 100644 (file)
 #define DDRMC_CR132_RDLAT_ADJ(v)                       ((v) & 0x3f)
 #define DDRMC_CR137_PHYCTL_DL(v)                       (((v) & 0xf) << 16)
 #define DDRMC_CR138_PHY_WRLV_MXDL(v)                   (((v) & 0xffff) << 16)
-#define DDRMC_CR138_PHYDRAM_CK_EN(v)                   (((v) & 0x8) << 8)
+#define DDRMC_CR138_PHYDRAM_CK_EN(v)                   (((v) & 0x7) << 8)
 #define DDRMC_CR139_PHY_WRLV_RESPLAT(v)                        (((v) & 0xff) << 24)
 #define DDRMC_CR139_PHY_WRLV_LOAD(v)                   (((v) & 0xff) << 16)
 #define DDRMC_CR139_PHY_WRLV_DLL(v)                    (((v) & 0xff) << 8)