]> git.sur5r.net Git - u-boot/commitdiff
misc:pmic:samsung Enable PMIC driver at GONI target
authorŁukasz Majewski <l.majewski@samsung.com>
Mon, 3 Oct 2011 19:45:51 +0000 (19:45 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:31 +0000 (21:56 +0200)
Enable support for new PMIC driver at GONI reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
board/samsung/goni/goni.c
include/configs/s5p_goni.h

index e24cd29f37566d3f0a02bdcadde6fb417f923c0e..e191bfbd28ce4678f17866834ab8dc1be1ba80a7 100644 (file)
@@ -25,6 +25,7 @@
 #include <common.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
+#include <pmic.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -38,6 +39,9 @@ int board_init(void)
        gd->bd->bi_arch_number = MACH_TYPE_GONI;
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
+#if defined(CONFIG_PMIC)
+       pmic_init();
+#endif
        return 0;
 }
 
index 6d0058f8e86747631ccc274301a5219a4b7ca13e..a52b0a561b364d98b7ec2494b4a4bf8f891de6d5 100644 (file)
 
 #define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_LOAD_ADDR - 0x1000000)
 
+#define CONFIG_PMIC
+#define CONFIG_PMIC_I2C
+#define CONFIG_PMIC_MAX8998
+
 #include <asm/arch/gpio.h>
 /*
  * I2C Settings