Patchwork [U-Boot,v2,3/3] misc:pmic:samsung Enable PMIC driver at GONI target

login
register
mail settings
Submitter Łukasz Majewski
Date Oct. 4, 2011, 5:45 a.m.
Message ID <1317707151-21803-4-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/117563/
State Accepted
Commit 2a7dd9d71cb7086faa102ef1eb148ea6481214ae
Delegated to: Stefano Babic
Headers show

Comments

Łukasz Majewski - Oct. 4, 2011, 5:45 a.m.
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>
---
    Changes for v2:
    - pmic_init() function call removed from arch/arm/lib/board.c and
      moved to s5p_goni board_init() function.
    - prepare separate patch for enabling new PMIC driver at GONI
---
 board/samsung/goni/goni.c  |    4 ++++
 include/configs/s5p_goni.h |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
Stefano Babic - Oct. 5, 2011, 10:54 a.m.
On 10/04/2011 07:45 AM, Lukasz Majewski wrote:
> 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>
> ---

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
Stefano Babic - Oct. 12, 2011, 10:56 a.m.
On 10/04/2011 07:45 AM, Lukasz Majewski wrote:
> 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>
> ---
>     Changes for v2:
>     - pmic_init() function call removed from arch/arm/lib/board.c and
>       moved to s5p_goni board_init() function.
>     - prepare separate patch for enabling new PMIC driver at GONI
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index e24cd29..e191bfb 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -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;
 }
 
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index 886c8be..aa51114 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -223,6 +223,10 @@ 
 
 #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