misc:pmic:samsung Enable PMIC driver at C210 Universal target
authorŁukasz Majewski <l.majewski@samsung.com>
Wed, 26 Oct 2011 22:33:17 +0000 (22:33 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:21 +0000 (22:56 +0100)
Enable support for PMIC driver at C210 Universal reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal_c210/universal.c
include/configs/s5pc210_universal.h

index 1b27e8b428320977a5d09f5082bb138d87a70ff6..d767eaac497d746a5aac1c09254040c3d7043e17 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/arch/adc.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
+#include <pmic.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -57,6 +58,10 @@ int board_init(void)
        check_hw_revision();
        printf("HW Revision:\t0x%x\n", board_rev);
 
+#if defined(CONFIG_PMIC)
+       pmic_init();
+#endif
+
        return 0;
 }
 
index ff85ade2f86a6b602fc4747b1373dfe16f807fe5..cc14f9797ed7f4b57394ec2c504db27741c52c0e 100644 (file)
 
 #define CONFIG_SYS_CACHELINE_SIZE       32
 
+#include <asm/arch/gpio.h>
+/*
+ * I2C Settings
+ */
+#define CONFIG_SOFT_I2C_GPIO_SCL s5pc210_gpio_part1_get_nr(b, 7)
+#define CONFIG_SOFT_I2C_GPIO_SDA s5pc210_gpio_part1_get_nr(b, 6)
+
+#define CONFIG_SOFT_I2C
+#define CONFIG_SOFT_I2C_READ_REPEATED_START
+#define CONFIG_SYS_I2C_SPEED   50000
+#define CONFIG_I2C_MULTI_BUS
+#define CONFIG_SYS_MAX_I2C_BUS 7
+
+#define CONFIG_PMIC
+#define CONFIG_PMIC_I2C
+#define CONFIG_PMIC_MAX8998
+
 #endif /* __CONFIG_H */