[U-Boot] [PATCH V2 10/12] board: freescale: common: add pfuze dm code
York Sun
york.sun at nxp.com
Mon Aug 28 16:26:29 UTC 2017
On 08/27/2017 11:30 PM, Peng Fan wrote:
> Add pfuze dm code, this code does the same thing as pfuze.c, but
> only effects when CONFIG_$(SPL_)DM_PMIC_PFUZE100 enabled.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: York Sun <york.sun at nxp.com>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Stefano Babic <sbabic at denx.de>
> ---
>
> V2: none
>
> board/freescale/common/Makefile | 1 +
> board/freescale/common/pfuze.h | 5 +++
> board/freescale/common/pfuze_dm.c | 89 +++++++++++++++++++++++++++++++++++++++
> 3 files changed, 95 insertions(+)
> create mode 100644 board/freescale/common/pfuze_dm.c
>
> diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile
> index 1c53fb6..620dced 100644
> --- a/board/freescale/common/Makefile
> +++ b/board/freescale/common/Makefile
> @@ -61,6 +61,7 @@ obj-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o
> obj-$(CONFIG_IDT8T49N222A) += idt8t49n222a_serdes_clk.o
> obj-$(CONFIG_ZM7300) += zm7300.o
> obj-$(CONFIG_POWER_PFUZE100) += pfuze.o
> +obj-$(CONFIG_$(SPL_)DM_PMIC_PFUZE100) += pfuze_dm.o
> obj-$(CONFIG_POWER_MC34VR500) += mc34vr500.o
>
> obj-$(CONFIG_LS102XA_STREAM_ID) += ls102xa_stream_id.o
> diff --git a/board/freescale/common/pfuze.h b/board/freescale/common/pfuze.h
> index 53cfc99..9c4c92a 100644
> --- a/board/freescale/common/pfuze.h
> +++ b/board/freescale/common/pfuze.h
> @@ -7,7 +7,12 @@
> #ifndef __PFUZE_BOARD_HELPER__
> #define __PFUZE_BOARD_HELPER__
>
> +#if CONFIG_IS_ENABLED(DM_PMIC_PFUZE100)
Is this SPL safe? I guess you can have CONFIG_SPL_DM_PMIC_PFUZE100
according to you change to Makefile.
York
More information about the U-Boot
mailing list