summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
diff options
context:
space:
mode:
authorJens Kuske <jenskuske@gmail.com>2015-11-17 15:12:59 +0100
committerHans de Goede <hdegoede@redhat.com>2015-11-22 11:31:00 +0100
commit0404d53f2f2024312b108a1b692bf668545b772b (patch)
tree3627fae25cff99092808ad3e125ecd171b877e44 /arch/arm/include/asm/arch-sunxi/clock_sun6i.h
parent1c27b7dcd06e605ed042d928665d26edab8429e4 (diff)
downloadu-boot-imx-0404d53f2f2024312b108a1b692bf668545b772b.zip
u-boot-imx-0404d53f2f2024312b108a1b692bf668545b772b.tar.gz
u-boot-imx-0404d53f2f2024312b108a1b692bf668545b772b.tar.bz2
sunxi: Add H3 DRAM initialization support
Based on existing A23/A33 code and the original H3 boot0. Signed-off-by: Jens Kuske <jenskuske@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/clock_sun6i.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/clock_sun6i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
index 9b7b90c..584d351 100644
--- a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
+++ b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
@@ -282,6 +282,9 @@ struct sunxi_ccm_reg {
#define CCM_DRAMCLK_CFG_DIV_MASK (0xf << 0)
#define CCM_DRAMCLK_CFG_DIV0(x) ((x - 1) << 8)
#define CCM_DRAMCLK_CFG_DIV0_MASK (0xf << 8)
+#define CCM_DRAMCLK_CFG_SRC_PLL5 (0x0 << 20)
+#define CCM_DRAMCLK_CFG_SRC_PLL6x2 (0x1 << 20)
+#define CCM_DRAMCLK_CFG_SRC_MASK (0x3 << 20)
#define CCM_DRAMCLK_CFG_UPD (0x1 << 16)
#define CCM_DRAMCLK_CFG_RST (0x1 << 31)