summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-04-16 17:13:54 +0200
committerStefano Babic <sbabic@denx.de>2010-05-05 09:48:41 +0200
commite98ecd71102de9d97bd82be247ed909260fb671b (patch)
treeabc2d241679bc0c0c7bc6b18843546c2ae3a7bfa /include
parentdfe5e14fa263eb8f1a9f087f0284788e7559821d (diff)
downloadu-boot-imx-e98ecd71102de9d97bd82be247ed909260fb671b.zip
u-boot-imx-e98ecd71102de9d97bd82be247ed909260fb671b.tar.gz
u-boot-imx-e98ecd71102de9d97bd82be247ed909260fb671b.tar.bz2
MX31: Add support for PMIC to the QONG module
Add support for the PMIC (MC13783) controller and enables charging of the RTC battery. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/qong.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/qong.h b/include/configs/qong.h
index 1d63b33..eb4669b 100644
--- a/include/configs/qong.h
+++ b/include/configs/qong.h
@@ -54,6 +54,17 @@
#define CONFIG_MX31_GPIO
+#define CONFIG_MXC_SPI
+#define CONFIG_DEFAULT_SPI_BUS 1
+#define CONFIG_DEFAULT_SPI_MODE (SPI_MODE_2 | SPI_CS_HIGH)
+#define CONFIG_RTC_MC13783
+
+#define CONFIG_FSL_PMIC
+#define CONFIG_FSL_PMIC_BUS 1
+#define CONFIG_FSL_PMIC_CS 0
+#define CONFIG_FSL_PMIC_CLK 100000
+#define CONFIG_FSL_PMIC_MODE (SPI_MODE_2 | SPI_CS_HIGH)
+
/* FPGA */
#define CONFIG_QONG_FPGA 1
#define CONFIG_FPGA_BASE (CS1_BASE)
@@ -98,6 +109,9 @@
#define CONFIG_CMD_NET
#define CONFIG_CMD_MII
#define CONFIG_CMD_NAND
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_DATE
+#define BOARD_LATE_INIT
/*
* You can compile in a MAC address and your custom net settings by using