projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc3c48
)
sunxi: Add missing macros to configure the NAND controller clk
author
Boris Brezillon
<
[email protected]
>
Wed, 15 Jun 2016 19:09:21 +0000
(21:09 +0200)
committer
Scott Wood
<
[email protected]
>
Mon, 25 Jul 2016 01:36:28 +0000
(20:36 -0500)
We need some macros to manipulate the NAND controller clock.
Signed-off-by: Boris Brezillon <
[email protected]
>
Acked-by: Hans de Goede <
[email protected]
>
arch/arm/include/asm/arch-sunxi/clock_sun4i.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-sunxi/clock_sun4i.h
b/arch/arm/include/asm/arch-sunxi/clock_sun4i.h
index 0088bb9d0b48638481a0843d305010de87a99d37..d1c5ad0a739b55318f15ee7094f559b52319b718 100644
(file)
--- a/
arch/arm/include/asm/arch-sunxi/clock_sun4i.h
+++ b/
arch/arm/include/asm/arch-sunxi/clock_sun4i.h
@@
-269,6
+269,11
@@
struct sunxi_ccm_reg {
#define CCM_MBUS_CTRL_CLK_SRC_PLL5 0x2
#define CCM_MBUS_CTRL_GATE (0x1 << 31)
+#define CCM_NAND_CTRL_M(x) ((x) - 1)
+#define CCM_NAND_CTRL_N(x) ((x) << 16)
+#define CCM_NAND_CTRL_OSCM24 (0x0 << 24)
+#define CCM_NAND_CTRL_PLL6 (0x1 << 24)
+#define CCM_NAND_CTRL_PLL5 (0x2 << 24)
#define CCM_NAND_CTRL_ENABLE (0x1 << 31)
#define CCM_MMC_CTRL_M(x) ((x) - 1)