[U-Boot] ?==?utf-8?q? ?==?utf-8?q? [PATCH 2/2]?==?utf-8?q? ARM:?==?utf-8?q? imx6q_logic: Enable I2C for PMIC functionality

Walter Lozano walter.lozano at collabora.com
Wed Oct 9 15:23:27 UTC 2019


Hi Adam  

On Tuesday, October 08, 2019 15:31 -03, Adam Ford <aford173 at gmail.com> wrote: 
 
> The pfuze100 is the PMIC connected to the I2C bus.  Currently,
> the I2C driver is disabled which prevents the PMIC from operating.
> 
> This patch enables the I2C which also enables the PMIC in U-Boot.
> This also keeps the PMIC and I2C disabled in SPL due to size
> constraints of SPL.

I understand the constrain issue, but instead of disabling I2C support on SPL is it possible to enable SPL_OF_PLATDATA and save some space? I haven't test this feature on a real board, but it should reduce SPL size.

> Signed-off-by: Adam Ford <aford173 at gmail.com>
> 
> diff --git a/configs/imx6q_logic_defconfig b/configs/imx6q_logic_defconfig
> index ec14b8eaf6..22ecec3be3 100644
> --- a/configs/imx6q_logic_defconfig
> +++ b/configs/imx6q_logic_defconfig
> @@ -22,7 +22,6 @@ CONFIG_SPL_RAW_IMAGE_SUPPORT=y
>  CONFIG_SPL_SEPARATE_BSS=y
>  # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
>  CONFIG_SPL_DMA_SUPPORT=y
> -CONFIG_SPL_I2C_SUPPORT=y
>  CONFIG_SPL_NAND_SUPPORT=y
>  CONFIG_SPL_OS_BOOT=y
>  CONFIG_SPL_PAYLOAD="u-boot.img"
> @@ -64,6 +63,7 @@ CONFIG_SPL_DM=y
>  CONFIG_SPL_DM_SEQ_ALIAS=y
>  CONFIG_SPL_OF_TRANSLATE=y
>  CONFIG_PCF8575_GPIO=y
> +CONFIG_SYS_I2C_MXC=y
>  CONFIG_LED=y
>  CONFIG_LED_GPIO=y
>  CONFIG_FSL_USDHC=y
> @@ -78,6 +78,7 @@ CONFIG_FEC_MXC=y
>  CONFIG_MII=y
>  CONFIG_PINCTRL=y
>  CONFIG_PINCTRL_IMX6=y
> +# CONFIG_SPL_PMIC_CHILDREN is not set
>  CONFIG_DM_PMIC_PFUZE100=y
>  CONFIG_DM_REGULATOR=y
>  CONFIG_DM_REGULATOR_PFUZE100=y
> -- 
> 2.17.1
> 
> _______________________________________________> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot




More information about the U-Boot mailing list