diff mbox

[2/2,V2] PMIC: SMDK5250: Enable MAX77686 pmic chip

Message ID 1337763451-20228-2-git-send-email-rajeshwari.s@samsung.com
State New
Headers show

Commit Message

Rajeshwari Shinde May 23, 2012, 8:57 a.m. UTC
This patch enables MAX77686 pmic chip for SMDK5250.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
This patch is based on:
	"EXYNOS: SMDK5250: Enable the pinmux setup" and
	"CONFIG: SMDK5250: I2C: Enable I2C"
 board/samsung/smdk5250/smdk5250.c |    4 ++++
 include/configs/smdk5250.h        |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

Comments

Rajeshwari Birje May 23, 2012, 9:14 a.m. UTC | #1
ccing Lukasz Majewski.

On Wed, May 23, 2012 at 2:27 PM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This patch enables MAX77686 pmic chip for SMDK5250.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
> This patch is based on:
>        "EXYNOS: SMDK5250: Enable the pinmux setup" and
>        "CONFIG: SMDK5250: I2C: Enable I2C"
>  board/samsung/smdk5250/smdk5250.c |    4 ++++
>  include/configs/smdk5250.h        |    6 ++++++
>  2 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
> index b7d7a79..58763fd 100644
> --- a/board/samsung/smdk5250/smdk5250.c
> +++ b/board/samsung/smdk5250/smdk5250.c
> @@ -28,6 +28,7 @@
>  #include <asm/arch/mmc.h>
>  #include <asm/arch/pinmux.h>
>  #include <asm/arch/sromc.h>
> +#include <pmic.h>
>
>  DECLARE_GLOBAL_DATA_PTR;
>
> @@ -59,6 +60,9 @@ static void smc9115_pre_init(void)
>  int board_init(void)
>  {
>        gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
> +#if defined(CONFIG_PMIC)
> +       pmic_init();
> +#endif
>        return 0;
>  }
>
> diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
> index 1fca652..05729e6 100644
> --- a/include/configs/smdk5250.h
> +++ b/include/configs/smdk5250.h
> @@ -198,6 +198,12 @@
>  #define CONFIG_I2C_MULTI_BUS
>  #define CONFIG_MAX_I2C_NUM     8
>
> +/* PMIC */
> +#define CONFIG_SYS_I2C_SLAVE   0x0
> +#define CONFIG_PMIC
> +#define CONFIG_PMIC_I2C
> +#define CONFIG_PMIC_MAX77686
> +
>  /* Ethernet Controllor Driver */
>  #ifdef CONFIG_CMD_NET
>  #define CONFIG_SMC911X
> --
> 1.7.4.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
Lukasz Majewski May 25, 2012, 7:11 a.m. UTC | #2
Hi Rajeshwari,

> ccing Lukasz Majewski.
> 
> On Wed, May 23, 2012 at 2:27 PM, Rajeshwari Shinde
> <rajeshwari.s@samsung.com> wrote:
> > This patch enables MAX77686 pmic chip for SMDK5250.
> >
> > Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> > ---
> > This patch is based on:
> >        "EXYNOS: SMDK5250: Enable the pinmux setup" and
> >        "CONFIG: SMDK5250: I2C: Enable I2C"
> >  board/samsung/smdk5250/smdk5250.c |    4 ++++
> >  include/configs/smdk5250.h        |    6 ++++++
> >  2 files changed, 10 insertions(+), 0 deletions(-)
> >
> > diff --git a/board/samsung/smdk5250/smdk5250.c
> > b/board/samsung/smdk5250/smdk5250.c index b7d7a79..58763fd 100644
> > --- a/board/samsung/smdk5250/smdk5250.c
> > +++ b/board/samsung/smdk5250/smdk5250.c
> > @@ -28,6 +28,7 @@
> >  #include <asm/arch/mmc.h>
> >  #include <asm/arch/pinmux.h>
> >  #include <asm/arch/sromc.h>
> > +#include <pmic.h>
> >
> >  DECLARE_GLOBAL_DATA_PTR;
> >
> > @@ -59,6 +60,9 @@ static void smc9115_pre_init(void)
> >  int board_init(void)
> >  {
> >        gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
> > +#if defined(CONFIG_PMIC)
> > +       pmic_init();
> > +#endif
> >        return 0;
> >  }
> >
> > diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
> > index 1fca652..05729e6 100644
> > --- a/include/configs/smdk5250.h
> > +++ b/include/configs/smdk5250.h
> > @@ -198,6 +198,12 @@
> >  #define CONFIG_I2C_MULTI_BUS
> >  #define CONFIG_MAX_I2C_NUM     8
> >
> > +/* PMIC */
> > +#define CONFIG_SYS_I2C_SLAVE   0x0
> > +#define CONFIG_PMIC
> > +#define CONFIG_PMIC_I2C
> > +#define CONFIG_PMIC_MAX77686
> > +
> >  /* Ethernet Controllor Driver */
> >  #ifdef CONFIG_CMD_NET
> >  #define CONFIG_SMC911X
> > --
> > 1.7.4.4
> >
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot@lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot

Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Simon Glass June 1, 2012, 1:27 a.m. UTC | #3
On Wed, May 23, 2012 at 1:57 AM, Rajeshwari Shinde <rajeshwari.s@samsung.com
> wrote:

> This patch enables MAX77686 pmic chip for SMDK5250.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>

Acked-by: Simon Glass <sjg@chromium.org>


> ---
> This patch is based on:
>        "EXYNOS: SMDK5250: Enable the pinmux setup" and
>        "CONFIG: SMDK5250: I2C: Enable I2C"
>  board/samsung/smdk5250/smdk5250.c |    4 ++++
>  include/configs/smdk5250.h        |    6 ++++++
>  2 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/board/samsung/smdk5250/smdk5250.c
> b/board/samsung/smdk5250/smdk5250.c
> index b7d7a79..58763fd 100644
> --- a/board/samsung/smdk5250/smdk5250.c
> +++ b/board/samsung/smdk5250/smdk5250.c
> @@ -28,6 +28,7 @@
>  #include <asm/arch/mmc.h>
>  #include <asm/arch/pinmux.h>
>  #include <asm/arch/sromc.h>
> +#include <pmic.h>
>
>  DECLARE_GLOBAL_DATA_PTR;
>
> @@ -59,6 +60,9 @@ static void smc9115_pre_init(void)
>  int board_init(void)
>  {
>        gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
> +#if defined(CONFIG_PMIC)
> +       pmic_init();
> +#endif
>        return 0;
>  }
>
> diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
> index 1fca652..05729e6 100644
> --- a/include/configs/smdk5250.h
> +++ b/include/configs/smdk5250.h
> @@ -198,6 +198,12 @@
>  #define CONFIG_I2C_MULTI_BUS
>  #define CONFIG_MAX_I2C_NUM     8
>
> +/* PMIC */
> +#define CONFIG_SYS_I2C_SLAVE   0x0
> +#define CONFIG_PMIC
> +#define CONFIG_PMIC_I2C
> +#define CONFIG_PMIC_MAX77686
> +
>  /* Ethernet Controllor Driver */
>  #ifdef CONFIG_CMD_NET
>  #define CONFIG_SMC911X
> --
> 1.7.4.4
>
>
diff mbox

Patch

diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index b7d7a79..58763fd 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch/mmc.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/sromc.h>
+#include <pmic.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -59,6 +60,9 @@  static void smc9115_pre_init(void)
 int board_init(void)
 {
 	gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
+#if defined(CONFIG_PMIC)
+	pmic_init();
+#endif
 	return 0;
 }
 
diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
index 1fca652..05729e6 100644
--- a/include/configs/smdk5250.h
+++ b/include/configs/smdk5250.h
@@ -198,6 +198,12 @@ 
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_MAX_I2C_NUM	8
 
+/* PMIC */
+#define CONFIG_SYS_I2C_SLAVE	0x0
+#define CONFIG_PMIC
+#define CONFIG_PMIC_I2C
+#define CONFIG_PMIC_MAX77686
+
 /* Ethernet Controllor Driver */
 #ifdef CONFIG_CMD_NET
 #define CONFIG_SMC911X