mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 11:38:51 +01:00
sunxi: Add missing macros to configure the NAND controller clk
We need some macros to manipulate the NAND controller clock. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
2dc3c483a9
commit
8df375b445
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue