Re: [PATCH] ARM: imx: santaro: select i2c

2017-11-20 Thread Sascha Hauer
On Fri, Nov 17, 2017 at 07:13:45PM +0100, Lucas Stach wrote:
> The board support tries to access a i2c bus to find out which
> touchscreen is connected.
> 
> Signed-off-by: Lucas Stach 
> ---
>  arch/arm/mach-imx/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index dc67afac238f..dce24ab90dd3 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -301,6 +301,8 @@ config MACH_DFI_FS700_M60
>  config MACH_GUF_SANTARO
>   bool "Garz+Fricke Santaro Board"
>   select ARCH_IMX6
> + select I2C
> + select I2C_IMX
>  
>  config MACH_REALQ7
>   bool "DataModul i.MX6Q Real Qseven Board"
> -- 
> 2.11.0
> 
> 
> ___
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


Re: [PATCH] usbgadget: fastboot: select FILE_LIST

2017-11-20 Thread Sascha Hauer
On Fri, Nov 17, 2017 at 07:23:36PM +0100, Lucas Stach wrote:
> The file list functions are used by the fastboot gadget since
> a3976c3a84f2 (usbgadget: fastboot: Use function to find file_list
> entry by name).
> 
> Signed-off-by: Lucas Stach 
> ---
>  drivers/usb/gadget/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 4292371f09c6..64347f0d18c4 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -56,6 +56,7 @@ config USB_GADGET_SERIAL
>  config USB_GADGET_FASTBOOT
>   bool
>   select BANNER
> + select FILE_LIST
>   prompt "Android Fastboot support"
>  
>  endif
> -- 
> 2.11.0
> 
> 
> ___
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


Re: [PATCH v2] imx-bbu-nand-fcb: fix build on MX28 only

2017-11-20 Thread Sascha Hauer
On Fri, Nov 17, 2017 at 07:14:26PM +0100, Lucas Stach wrote:
> This code may be compiled without ARCH_IMX6 present, so it must not
> depend on any functions provided by the architecture support.
> 
> Fixes: a2618c215bff (imx-bbu-nand-fcb: add support for imx6ul)
> Signed-off-by: Lucas Stach 
> ---
> v2: Remove ifdeffery by introducing a dedicated function, as
> suggested by Sascha.
> ---
>  common/imx-bbu-nand-fcb.c | 18 +++---
>  1 file changed, 15 insertions(+), 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
> index 89b404884ae8..2c8ca979266c 100644
> --- a/common/imx-bbu-nand-fcb.c
> +++ b/common/imx-bbu-nand-fcb.c
> @@ -38,9 +38,21 @@
>  #include 
>  #include 
>  #include 
> -#include 
>  #include 
>  
> +#ifdef CONFIG_ARCH_IMX6
> +#include 
> +static inline int fcb_is_bch_encoded(void)
> +{
> +   return cpu_is_mx6ul() || cpu_is_mx6ull();
> +}
> +#else
> +static inline int fcb_is_bch_encoded(void)
> +{
> +   return 0;
> +}
> +#endif
> +
>  struct dbbt_block {
>   uint32_t Checksum;
>   uint32_t FingerPrint;
> @@ -441,7 +453,7 @@ static int read_fcb(struct mtd_info *mtd, int num, struct 
> fcb_block **retfcb)
>   goto err;
>   }
>  
> - if (cpu_is_mx6ul() || cpu_is_mx6ull())
> + if (fcb_is_bch_encoded())
>   fcb = read_fcb_bch(rawpage, 40);
>   else
>   fcb = read_fcb_hamming_13_8(rawpage);
> @@ -899,7 +911,7 @@ static int imx_bbu_write_fcbs_dbbts(struct mtd_info *mtd, 
> struct fcb_block *fcb)
>  
>   fcb_raw_page = xzalloc(mtd->writesize + mtd->oobsize);
>  
> - if (cpu_is_mx6ul() || cpu_is_mx6ull()) {
> + if (fcb_is_bch_encoded()) {
>   /* 40 bit BCH, for i.MX6UL(L) */
>   encode_bch_ecc(fcb_raw_page + 32, fcb, 40);
>   } else {
> -- 
> 2.11.0
> 
> 
> ___
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


Re: [PATCH] ARM: boards: phytec-som-am335x: Fix SPI boot script

2017-11-20 Thread Sascha Hauer
On Fri, Nov 17, 2017 at 03:11:07PM +0100, Daniel Schultz wrote:
> Because our SPI NOR flashes are too small, we require a root filesystem
> in a NAND media. The kernel bootargs has a wrong parameter and lead to:
> 
> VFS: Cannot open root device "ubi0:root" or unknown-block(0,0):
> 
> Changed 'ubi.mtd=nand0.root' to 'ubi.mtd=root'.
> 
> Signed-off-by: Daniel Schultz 
> ---

Applied, thanks

Sascha

>  arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/spi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git 
> a/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/spi 
> b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/spi
> index a321aa9..611bc24 100644
> --- a/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/spi
> +++ b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/boot/spi
> @@ -4,4 +4,4 @@ global.bootm.image="/dev/m25p0.kernel"
>  global.bootm.oftree="/dev/m25p0.oftree"
>  
>  # Use rootfs from NAND
> -global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root 
> rootfstype=ubifs"
> +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=root rootfstype=ubifs"
> -- 
> 2.7.4
> 
> 
> ___
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox