[v3 16/33] configs: ls1021atwr: enable CONFIG_MPC8XXX_GPIO

Biwen Li (OSS) biwen.li at oss.nxp.com
Tue Feb 2 09:19:00 CET 2021



> -----Original Message-----
> From: Priyanka Jain (OSS) <priyanka.jain at oss.nxp.com>
> Sent: 2021年2月2日 14:03
> To: Biwen Li (OSS) <biwen.li at oss.nxp.com>
> Cc: Jiafei Pan <jiafei.pan at nxp.com>; u-boot at lists.denx.de; Xiaobo Xie
> <xiaobo.xie at nxp.com>; Biwen Li <biwen.li at nxp.com>
> Subject: RE: [v3 16/33] configs: ls1021atwr: enable CONFIG_MPC8XXX_GPIO
> 
> >-----Original Message-----
> >From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Biwen Li
> >Sent: Thursday, January 28, 2021 3:10 PM
> >To: Priyanka Jain <priyanka.jain at nxp.com>
> >Cc: Jiafei Pan <jiafei.pan at nxp.com>; u-boot at lists.denx.de; Xiaobo Xie
> ><xiaobo.xie at nxp.com>; Biwen Li <biwen.li at nxp.com>
> >Subject: [v3 16/33] configs: ls1021atwr: enable CONFIG_MPC8XXX_GPIO
> >
> >From: Biwen Li <biwen.li at nxp.com>
> >
> >Enable CONFIG_MPC8XXX_GPIO for board ls1021atwr
> >
> >Signed-off-by: Biwen Li <biwen.li at nxp.com>
> >---
> <snip>
> Kindly fix below build error for ls1021atwr platforms
> 
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c: In function â
> mpc8xxx_gpio_get_valâ :
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c:50:29: error:
> dereferencing pointer to incomplete type â struct ccsr_gpioâ
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)    return in_le32(&data->base->gpdat) & mask;
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)                              ^
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> +ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../include/linux/byteorder/little_endian.h:35:51:
> note: in definition of macro â __le32_to_cpuâ (ls1021atwr_nor
> ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT ls1021atwr_qspi
> ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)  #define __le32_to_cpu(x) ((__force
> __u32)(__le32)(x))
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)
> ^
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> +ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../arch/arm/include/asm/io.h:105:25: note: in
> expansion of macro â __arch_getlâ (ls1021atwr_nor ls1021atwr_nor_lpuart
> ls1021atwr_nor_SECURE_BOOT ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT ls1021atwr_sdcard_qspi)  #define
> __raw_readl(a)  __arch_getl(a)
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)                          ^~~~~~~~~~~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> +ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../arch/arm/include/asm/io.h:173:49: note: in
> expansion of macro â __raw_readlâ (ls1021atwr_nor ls1021atwr_nor_lpuart
> ls1021atwr_nor_SECURE_BOOT ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT ls1021atwr_sdcard_qspi)  #define
> in_arch(type,endian,a)  endian##_to_cpu(__raw_read##type(a))
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)
> ^~~~~~~~~~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> +ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../arch/arm/include/asm/io.h:180:20: note: in
> expansion of macro â in_archâ (ls1021atwr_nor ls1021atwr_nor_lpuart
> ls1021atwr_nor_SECURE_BOOT ls1021atwr_qspi ls1021atwr_sdcard_ifc
> ls1021atwr_sdcard_ifc_SECURE_BOOT ls1021atwr_sdcard_qspi)  #define
> in_le32(a) in_arch(l,le32,a)
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)                     ^~~~~~~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c:50:10: note: in
> expansion of macro â in_le32â
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)           ^~~~~~~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c: In function â
> mpc8xxx_gpio_of_to_platâ :
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c:184:6: error:
> dereferencing pointer to incomplete type â struct mpc8xxx_gpio_platâ
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)   plat->addr = (ulong)dev_read_addr_size_index(dev,
> 0, (fdt_size_t *)&plat->size);
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)       ^~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c: In function â
> mpc8xxx_gpio_plat_to_privâ :
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c:195:27: error:
> dereferencing pointer to incomplete type â struct mpc8xxx_gpio_platâ
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)   unsigned long size = plat->size;
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi)                            ^~
> +(ls1021atwr_nor ls1021atwr_nor_lpuart ls1021atwr_nor_SECURE_BOOT
> ls1021atwr_qspi ls1021atwr_sdcard_ifc ls1021atwr_sdcard_ifc_SECURE_BOOT
> ls1021atwr_sdcard_qspi) ../drivers/gpio/mpc8xxx_gpio.c: At top level:

Sure, np. Updated in v4.
> 
> Regards
> Priyanka


More information about the U-Boot mailing list