Re: [U-Boot] [PATCH v3 2/3] x86: Add Intel Tangier support

2017-07-21 Thread Bin Meng
On Thu, Jul 6, 2017 at 7:41 PM, Andy Shevchenko wrote: > From: Felipe Balbi > > Add Intel Tangier SoC support. > > Intel Tangier SoC is a core part of Intel Merrifield platform. For > example, Intel Edison board is based on such platform. > > The patch is based on work done by the following peopl

Re: [U-Boot] [PATCH v3 3/3] x86: Add Intel Edison board files

2017-07-21 Thread Bin Meng
On Fri, Jul 7, 2017 at 11:59 AM, Simon Glass wrote: > On 6 July 2017 at 05:41, Andy Shevchenko > wrote: >> Add Intel Edison board which is using U-Boot. >> >> The patch is based on work done by the following people (in alphabetical >> order): >> Aiden Park >> Dukjoon Jeon >>

Re: [U-Boot] [PATCH v3] watchdog: Introduce watchdog driver for Intel Tangier

2017-07-21 Thread Bin Meng
On Fri, Jul 7, 2017 at 12:51 PM, Bin Meng wrote: > On Thu, Jul 6, 2017 at 1:33 AM, Andy Shevchenko > wrote: >> From: Felipe Balbi >> >> Add watchdog driver for Intel Tangier based platforms. >> >> Signed-off-by: Vincent Tinelli >> Signed-off-by: Felipe Balbi >> Signed-off-by: Andy Shevchenko

Re: [U-Boot] [PATCH v2 1/3] x86: Add dma-mapping.h to architectural code

2017-07-21 Thread Bin Meng
On Fri, Jul 7, 2017 at 11:59 AM, Simon Glass wrote: > On 5 July 2017 at 14:56, Andy Shevchenko > wrote: >> Some cross-platform drivers rely on this header present. >> Make it so for x86. >> >> It's just a copy'n'paste of arch/arm/include/asm/dma-mapping.h. >> >> Suggested-by: Bin Meng >> Reviewe

Re: [U-Boot] [PATCH v2] arch/x86: Select USB before selecting host driver

2017-07-21 Thread Bin Meng
On Sat, Jul 22, 2017 at 12:18 PM, Bin Meng wrote: > From: Andy Shevchenko > > Kbuild complains if USB is not selected before any of host driver. > > warning: (X86) selects USB_EHCI_HCD which has unmet direct dependencies (USB) > warning: (X86) selects USB_EHCI_HCD which has unmet direct dependenc

Re: [U-Boot] [PATCH v1] arch/x86: Select USB before selecting host driver

2017-07-21 Thread Bin Meng
On Mon, Jul 10, 2017 at 10:14 AM, Bin Meng wrote: > +Simon, > > Hi Andy, > > On Wed, Jul 5, 2017 at 9:09 PM, Tom Rini wrote: >> On Wed, Jul 05, 2017 at 08:19:27PM +0800, Bin Meng wrote: >>> +Marek, >>> >>> Hi Andy, >>> >>> On Wed, Jul 5, 2017 at 5:36 PM, Andy Shevchenko >>> wrote: >>> > On Wed,

[U-Boot] [PATCH v2] arch/x86: Select USB before selecting host driver

2017-07-21 Thread Bin Meng
From: Andy Shevchenko Kbuild complains if USB is not selected before any of host driver. warning: (X86) selects USB_EHCI_HCD which has unmet direct dependencies (USB) warning: (X86) selects USB_EHCI_HCD which has unmet direct dependencies (USB) Select it for X86. Fixes: 64d6ac5bc4a9 ("Kconfig:

[U-Boot] [PATCH 34/41] Convert CONFIG_CMD_TRACE to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_TRACE Signed-off-by: Simon Glass --- cmd/Kconfig | 9 + include/configs/exynos5-common.h | 1 - include/configs/sandbox.h| 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9 insertions(+), 3

[U-Boot] [PATCH 28/41] gpio: Drop sx151x driver

2017-07-21 Thread Simon Glass
This driver is not used in U-Boot. Drop it and its associated CONFIG options. Signed-off-by: Simon Glass --- drivers/gpio/Makefile| 1 - drivers/gpio/sx151x.c| 242 --- scripts/config_whitelist.txt | 3 - 3 files changed, 246 deletions

[U-Boot] [PATCH 38/41] Convert CONFIG_CMD_ZBOOT to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_ZBOOT Signed-off-by: Simon Glass --- arch/Kconfig | 1 + cmd/Kconfig | 12 include/configs/x86-common.h | 2 -- scripts/config_whitelist.txt | 1 - 4 files changed, 13 insertions(+), 3 deletio

[U-Boot] [PATCH 23/41] Convert CONFIG_CMD_SH_ZIMAGEBOOT to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SH_ZIMAGEBOOT Signed-off-by: Simon Glass --- arch/sh/Kconfig | 2 ++ arch/sh/lib/Kconfig | 5 + configs/r2dplus_defconfig | 1 + configs/sh7785lcr_32bit_defconfig | 1 + configs/sh7785lcr_defconfig

[U-Boot] [PATCH 41/41] README: Drop information about commands

2017-07-21 Thread Simon Glass
Most of this is duplicated in Kconfig help. Add some of that which is not, and remove the help from the README. Signed-off-by: Simon Glass --- README | 131 +-- cmd/Kconfig | 4 +- cmd/fastboot/Kconfig | 2 + 3 files cha

[U-Boot] [PATCH 29/41] Convert CONFIG_CMD_TCA642X to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_TCA642X Signed-off-by: Simon Glass --- configs/omap5_uevm_defconfig | 1 + drivers/gpio/Kconfig | 9 + include/configs/omap5_uevm.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 10 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 25/41] Convert CONFIG_CMD_SPL_NAND_OFS to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SPL_NAND_OFS Signed-off-by: Simon Glass --- cmd/Kconfig| 10 ++ configs/am335x_boneblack_defconfig | 1 + configs/am335x_boneblack_vboot_defconfig | 1 + configs/am335x_evm_defconfig

[U-Boot] [PATCH 15/41] Kconfig: Convert CMD_READ to Kconfig

2017-07-21 Thread Simon Glass
Convert this option and enable it in sandbox. Also correct a bug which was introduced with the block-device driver model conversion. Signed-off-by: Simon Glass --- README | 2 -- cmd/Kconfig | 5 + cmd/Makefile | 1 - cmd/read.c

[U-Boot] [PATCH 40/41] Drop config_cmd_all.h

2017-07-21 Thread Simon Glass
This file does not include all commands and has not for a while. Let's drop it. Signed-off-by: Simon Glass --- README | 5 - include/config_cmd_all.h | 19 --- 2 files changed, 24 deletions(-) delete mode 100644 include/config_cmd_all.h diff --git a/READ

[U-Boot] [PATCH 33/41] Convert CONFIG_CMD_YAFFS2 to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_YAFFS2 Signed-off-by: Simon Glass --- cmd/Kconfig | 11 +++ cmd/Makefile | 2 +- fs/Kconfig| 2 ++ fs/yaffs2/Kconfig | 7 +++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 fs/yaffs2/Kc

[U-Boot] [PATCH 22/41] Convert CONFIG_CMD_SF_TEST to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SF_TEST Signed-off-by: Simon Glass --- README | 6 -- arch/Kconfig | 1 + arch/x86/cpu/baytrail/Kconfig| 1 + cmd/Kconfig | 11

[U-Boot] [PATCH 26/41] Convert CONFIG_CMD_SPL_WRITE_SIZE to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SPL_WRITE_SIZE Signed-off-by: Simon Glass --- cmd/Kconfig | 9 + configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_ethboot_defconfig | 1 + configs/am43xx_evm_usbhost_boot_defconfi

[U-Boot] [PATCH 36/41] Convert CONFIG_CMD_UNIVERSE to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_UNIVERSE Signed-off-by: Simon Glass --- cmd/Kconfig | 6 ++ include/config_cmd_all.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig

[U-Boot] [PATCH 35/41] Convert CONFIG_CMD_TSI148 to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_TSI148 Signed-off-by: Simon Glass --- cmd/Kconfig | 6 ++ configs/caddy2_defconfig | 1 + configs/vme8349_defconfig| 1 + include/configs/vme8349.h| 1 - scripts/config_whitelist.txt | 1 - 5 files changed, 8

[U-Boot] [PATCH 30/41] Convert CONFIG_CMD_TERMINAL to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_TERMINAL Signed-off-by: Simon Glass --- cmd/Kconfig | 8 include/config_cmd_all.h | 1 - include/configs/vct.h| 2 -- scripts/config_whitelist.txt | 1 - 4 files changed, 8 insertions(+), 4 deletions(-)

[U-Boot] [PATCH 31/41] Kconfig: Drop CONFIG_CMD_TFTP

2017-07-21 Thread Simon Glass
This is not a valid CONFIG option. Drop it. Signed-off-by: Simon Glass --- include/configs/dragonboard410c.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index 712e11725b..160

[U-Boot] [PATCH 27/41] Convert CONFIG_CMD_STRINGS to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_STRINGS Signed-off-by: Simon Glass --- cmd/Kconfig | 8 include/configs/vct.h| 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfi

[U-Boot] [PATCH 32/41] Convert CONFIG_CMD_THOR_DOWNLOAD to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_THOR_DOWNLOAD Signed-off-by: Simon Glass --- cmd/Kconfig | 8 configs/odroid-xu3_defconfig | 1 + configs/odroid_defconfig | 1 + configs/origen_defcon

[U-Boot] [PATCH 21/41] Convert CONFIG_CMD_SDRAM to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SDRAM Signed-off-by: Simon Glass --- README | 2 -- cmd/Kconfig | 7 +++ configs/MPC8349ITXGP_defconfig | 1 + configs/MPC8349ITX_LOWBOOT_defconfig | 1 + configs/MPC8349ITX_de

[U-Boot] [PATCH 19/41] Convert CONFIG_CMD_SAVES to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SAVES Signed-off-by: Simon Glass --- README | 1 - arch/arm/Kconfig | 6 ++ cmd/Kconfig | 6 ++ configs/ethernut5_defconfig | 1 + configs/microblaze

[U-Boot] [PATCH 37/41] Convert CONFIG_CMD_UUID to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_UUID Signed-off-by: Simon Glass --- README | 1 - cmd/Kconfig | 11 +++ scripts/config_whitelist.txt | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README b/README inde

[U-Boot] [PATCH 39/41] Convert CONFIG_CMD_ZFS to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_ZFS Signed-off-by: Simon Glass --- cmd/Kconfig | 11 +++ include/config_cmd_all.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kco

[U-Boot] [PATCH 18/41] Kconfig: sandbox: Drop CONFIG_CMD_SANDBOX option

2017-07-21 Thread Simon Glass
This is no-longer used. Drop it. Signed-off-by: Simon Glass --- README | 1 - include/config_cmd_all.h | 1 - include/configs/sandbox.h| 2 -- scripts/config_whitelist.txt | 1 - 4 files changed, 5 deletions(-) diff --git a/README b/README index f5558eb9f1..cb9540

[U-Boot] [PATCH 20/41] Convert CONFIG_CMD_SCSI to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SCSI Signed-off-by: Simon Glass --- arch/arm/Kconfig | 3 +++ cmd/Kconfig | 9 + cmd/Makefile | 2 +- configs/cl-som-am57x_defconfig| 1 + configs/controlcenterdc_defcon

[U-Boot] [PATCH 13/41] Convert CONFIG_CMD_PCMCIA to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_PCMCIA Signed-off-by: Simon Glass --- README | 1 - cmd/Kconfig | 8 configs/ms7720se_defconfig | 1 + include/config_cmd_all.h | 1 - include/configs/dbau1x00.h | 5 - include/conf

[U-Boot] [PATCH 24/41] Convert CONFIG_CMD_SPL to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_SPL Signed-off-by: Simon Glass --- arch/arm/Kconfig | 1 + arch/arm/mach-imx/mx6/Kconfig | 1 + arch/arm/mach-omap2/am33xx/Kconfig| 1 + cmd/Kconfig | 9 + co

[U-Boot] [PATCH 14/41] Kconfig: Drop CONFIG_CMD_PORTIO and associated command

2017-07-21 Thread Simon Glass
This command is not used by any board. It also looks quite similar to the 'iod' and 'iow' commands which use the correct I/O macros. Drop it. Signed-off-by: Simon Glass --- cmd/portio.c | 145 --- 1 file changed, 145 deletions(-) delete

[U-Boot] [PATCH 16/41] Convert CONFIG_CMD_REGINFO to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_REGINFO Signed-off-by: Simon Glass --- README | 1 - arch/powerpc/cpu/mpc85xx/Kconfig | 11 +++ cmd/Kconfig| 6 ++ .../BSC9132QDS_SDCA

[U-Boot] [PATCH 17/41] Convert CONFIG_CMD_REISER to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_REISER Signed-off-by: Simon Glass --- cmd/Kconfig | 9 + include/config_cmd_all.h | 1 - include/configs/ethernut5.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) d

[U-Boot] [PATCH 09/41] Kconfig: Drop CONFIG_CMD_PCA953X_INFO

2017-07-21 Thread Simon Glass
It does not seem worth having an option to enable another sub-command in this legacy driver. Drop this option so that the sub-command is always available. Signed-off-by: Simon Glass --- README | 1 - drivers/gpio/pca953x.c | 8 include/co

[U-Boot] [PATCH 12/41] Kconfig; Drop CONFIG_IDE_TI_CARDBUS and associated driver

2017-07-21 Thread Simon Glass
This driver is not used by any board. Drop it. Signed-off-by: Simon Glass --- drivers/pcmcia/Makefile | 1 - drivers/pcmcia/ti_pci1410a.c | 623 --- 2 files changed, 624 deletions(-) delete mode 100644 drivers/pcmcia/ti_pci1410a.c diff --git a/dr

[U-Boot] [PATCH 11/41] Kconfig: Drop CONFIG_CMD_PCI_ENUM

2017-07-21 Thread Simon Glass
This option enables the 'pci enum' command. It is only enabled by a few board and these have not yet been converted to driver model, which always enables this command. It seems easiest to just remove this option. The affected boards can be converted to use driver model for PCI if needed. Signed-o

[U-Boot] [PATCH 08/41] Convert CONFIG_CMD_PCA953X to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_PCA953X Signed-off-by: Simon Glass --- README | 1 - arch/powerpc/cpu/mpc83xx/Kconfig| 1 + configs/cl-som-am57x_defconfig | 1 + configs/cm_t335_defconfig | 1 +

[U-Boot] [PATCH 06/41] Convert CONFIG_CMD_MTDPARTS_SPREAD to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_MTDPARTS_SPREAD Signed-off-by: Simon Glass --- cmd/Kconfig | 10 ++ configs/sandbox_defconfig| 1 + scripts/config_whitelist.txt | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig

[U-Boot] [PATCH 05/41] Convert CONFIG_CMD_MTDPARTS to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_MTDPARTS Signed-off-by: Simon Glass --- README | 1 - arch/arm/Kconfig| 3 +++ arch/arm/cpu/armv7/vf610/Kconfig| 1 + arch/powerpc/cpu/mpc83xx/Kconfig

[U-Boot] [PATCH 04/41] Convert CONFIG_CMD_MMC_SPI to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_MMC_SPI Signed-off-by: Simon Glass --- cmd/Kconfig| 9 + configs/UCP1020_SPIFLASH_defconfig | 1 + configs/UCP1020_defconfig | 1 + include/configs/UCP1020.h | 1 - include/configs/am335x_shc

[U-Boot] [PATCH 07/41] Convert CONFIG_CMD_ONENAND to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_ONENAND Signed-off-by: Simon Glass --- cmd/Kconfig | 8 configs/igep0020_defconfig | 1 + configs/igep0030_defconfig | 1 + configs/igep0032_defconfig

[U-Boot] [PATCH 00/41] Kconfig: Convert remaining commands to Kconfig

2017-07-21 Thread Simon Glass
This series converts the remaining commands (starting from M and ending at Z) to Kconfig. This completes the Kconfig conversion of commands. Simon Glass (41): Convert CONFIG_CMD_MAX6957 to Kconfig Kconfig: Drop CONFIG_CMD_MEM Convert CONFIG_CMD_MFSL to Kconfig Convert CONFIG_CMD_MMC_SPI t

[U-Boot] [PATCH 03/41] Convert CONFIG_CMD_MFSL to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_MFSL Signed-off-by: Simon Glass --- README | 1 - cmd/Kconfig | 7 +++ configs/microblaze-generic_defconfig | 1 + include/config_cmd_all.h | 1 - include/configs/microbl

[U-Boot] [PATCH 01/41] Convert CONFIG_CMD_MAX6957 to Kconfig

2017-07-21 Thread Simon Glass
This converts the following to Kconfig: CONFIG_CMD_MAX6957 Signed-off-by: Simon Glass --- board/work-microwave/work_92105/Kconfig | 7 +++ configs/work_92105_defconfig| 1 + include/configs/work_92105.h| 1 - scripts/config_whitelist.txt| 1 - 4 files

[U-Boot] [PATCH 02/41] Kconfig: Drop CONFIG_CMD_MEM

2017-07-21 Thread Simon Glass
This is not actually used in U-Boot. Most likely it means CONFIG_CMD_MEMORY so change all occurences to that. Signed-off-by: Simon Glass --- README| 4 ++-- include/configs/stm32f429-discovery.h | 2 -- scripts/config_whitelist.txt | 1 - 3 files changed

Re: [U-Boot] [PATCH 5/5] db410c: config updates

2017-07-21 Thread Rob Clark
On Fri, Jul 21, 2017 at 6:20 PM, Tom Rini wrote: > On Fri, Jul 21, 2017 at 03:10:14PM -0400, Rob Clark wrote: >> Signed-off-by: Rob Clark >> --- >> arch/arm/Kconfig | 2 +- >> configs/dragonboard410c_defconfig | 8 +++- >> 2 files changed, 8 insertions(+), 2 deletions(-) >>

Re: [U-Boot] [PATCH 1/5] Makefile: also build fdt for snapdragon

2017-07-21 Thread Rob Clark
On Fri, Jul 21, 2017 at 6:18 PM, Tom Rini wrote: > On Fri, Jul 21, 2017 at 03:10:10PM -0400, Rob Clark wrote: > >> Snapdragon is a bit of a funny case, where we want to build the fdt to >> pass to lk, which loads us, but otherwise want to treat it as OF_BOARD, >> since lk will patch the fdt (for e

[U-Boot] STM32F746 Discovery - No serial output?

2017-07-21 Thread Francois Dugast
Hi, I am trying to run the master on a STM32F746 Discovery board [1] by using stm32f746-disco_defconfig. It was built with gcc-arm-none-eabi-5_4-2016q3 [2] and flashed with OpenOCD [3]. A USB-serial adapter is connected to USART6_RX and USART6_TX (pins D0 and D1 of the Arduino connector) and confi

Re: [U-Boot] [PATCH 5/5] db410c: config updates

2017-07-21 Thread Tom Rini
On Fri, Jul 21, 2017 at 03:10:14PM -0400, Rob Clark wrote: > Signed-off-by: Rob Clark > --- > arch/arm/Kconfig | 2 +- > configs/dragonboard410c_defconfig | 8 +++- > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > inde

Re: [U-Boot] [PATCH 1/5] Makefile: also build fdt for snapdragon

2017-07-21 Thread Tom Rini
On Fri, Jul 21, 2017 at 03:10:10PM -0400, Rob Clark wrote: > Snapdragon is a bit of a funny case, where we want to build the fdt to > pass to lk, which loads us, but otherwise want to treat it as OF_BOARD, > since lk will patch the fdt (for example, to insert simple-framebuffer > node). > > Signe

[U-Boot] [PATCH 5/5] mmc: uniphier-sd: Add support for R8A7795 and R7A7796

2017-07-21 Thread Marek Vasut
Add OF match entries and quirks for Renesas RCar Gen3 controllers into the driver. The IP this driver handles is in fact Matsushita one and in used both in Socionext and Renesas chips. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung --- drivers/mmc/Kconfig | 7 --- d

[U-Boot] [PATCH 4/5] mmc: uniphier-sd: Add support for quirks

2017-07-21 Thread Marek Vasut
Check if the OF match has any associated data and if so, use those data as the controller quirks, otherwise fallback to the old method of reading the controller version register to figure out the quirks. This allows us to supply controller quirks on controllers which ie. do not have version registe

[U-Boot] [PATCH 3/5] mmc: uniphier-sd: Add support for 64bit FIFO

2017-07-21 Thread Marek Vasut
The Renesas RCar Gen3 contains the same controller, originally Matsushita. This patch adds support for handling of the 64bit FIFO on this controller. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung --- drivers/mmc/uniphier-sd.c | 84 +---

[U-Boot] [PATCH 1/3] mmc: sh_sdhi: Add DM and DT probing support

2017-07-21 Thread Marek Vasut
Add MMC DM and DT probing support into the SH SDHI driver. This patch abstracts out the common bits of the send command and set ios functions, so they can be used both by DM and non DM setups and adds the DM probe support. Signed-off-by: Marek Vasut Cc: Hiroyuki Yokoyama Cc: Nobuhiro Iwamatsu C

[U-Boot] [PATCH 2/5] mmc: uniphier-sd: Add support for 64bit controller

2017-07-21 Thread Marek Vasut
The Renesas RCar Gen3 contains the same controller, originally Matsushita, yet the register addresses are shifted by 1 to the left. The whole controller is also 64bit, including the data FIFOs and RSP registers. This patch adds support for handling the register IO by shifting the register offset by

[U-Boot] [PATCH 1/5] mmc: uniphier-sd: Factor out register IO

2017-07-21 Thread Marek Vasut
This patch prepares the driver to support controller(s) with registers at locations shifted by constant. Pull out the readl()/writel() from the driver into separate functions, where the adjustment of the register offset can be easily contained. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc:

[U-Boot] [PATCH 3/3] mmc: sd_sdhi: Enable clock using clock framework

2017-07-21 Thread Marek Vasut
Since we now have clock driver for the RCar Gen3 , add support for enabling the clock into the SH SDHI driver to prevent hacks in the board files. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Jaehoon Chung --- drivers/mmc/sh_sdhi.c | 15 +++ 1 file changed, 15 insertions(+)

[U-Boot] [PATCH 3/3] net: ravb: Add clock handling support

2017-07-21 Thread Marek Vasut
Add support for enabling and disabling the clock using the clock framework based on the content of OF instead of doing it manually in the board file. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhiro Iwamatsu --- drivers/net/ravb.c | 21 +++-- 1 file changed, 19 inser

[U-Boot] [PATCH 2/3] mmc: sh_sdhi: Fix the ACMD handling

2017-07-21 Thread Marek Vasut
The command handling in this driver is awful, esp. because the driver depends on command numbers to determine whether this is APPCMD or not. Also, handling of command RSP response types is totally wrong. This patch at least plucks out some of the custom command encoding and fixes the APPCMD handli

[U-Boot] [PATCH 1/3] net: ravb: Add OF probing support

2017-07-21 Thread Marek Vasut
Add support for probing the RAVB Ethernet block from device tree. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhiro Iwamatsu --- drivers/net/ravb.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index

[U-Boot] [PATCH 2/3] net: ravb: Detect PHY correctly

2017-07-21 Thread Marek Vasut
The order of parameters passed to the phy_connect() was wrong. Moreover, only PHY address 0 was used. Replace this with code capable of detecting the PHY address. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhiro Iwamatsu --- drivers/net/ravb.c | 7 --- 1 file changed, 4 insertio

[U-Boot] [PATCH] serial: sh: Use the clock framework to obtain clock config

2017-07-21 Thread Marek Vasut
Since we now have clock driver on the RCar Gen3 , obtain the clock configuration using the clock framework functions. In case this fails, fall back to the original code for pulling the clock config directly out of OF. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/serial/serial_sh

[U-Boot] [PATCH] serial: sh: Convert to Kconfig

2017-07-21 Thread Marek Vasut
Convert the SH Serial to Kconfig using tools/moveconfig.py tool and a bit of manual adjustment to cater for failed conversions. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/MigoR_defconfig | 1 + configs/alt_defconfig| 1 + configs/ap325rxa_defconfig

[U-Boot] [PATCH 3/3] ARM: rmobile: Enable clock framework on ULCB

2017-07-21 Thread Marek Vasut
Since there is now a clock driver for RCar Gen3, enable it on this board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_ulcb_defconfig | 2 ++ configs/r8a7796_ulcb_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/r8a7795_ulcb_defconfig b/configs/r8

[U-Boot] [PATCH 2/3] ARM: rmobile: Enable clock framework on Salvator-X

2017-07-21 Thread Marek Vasut
Since there is now a clock driver for RCar Gen3, enable it on this board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 2 ++ configs/r8a7796_salvator-x_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/r8a7795_salvator-x_defc

[U-Boot] [PATCH 1/3] clk: rmobile: Add RCar Gen3 clock driver

2017-07-21 Thread Marek Vasut
Add clock driver for the RCar Gen3 R8A7795 and R8A7796 SoCs . This driver allows reading out the clock configuration set by previous boot stages and enabling and disabling clock using the MSTP registers. Setting clock is not supported thus far. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --

[U-Boot] [PATCH 2/2] ARM: rmobile: Enable OF_CONTROL on RCar Gen3

2017-07-21 Thread Marek Vasut
Since the DTs are now in place, enable OF control so that they get bundled into the U-Boot. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Kconfig| 1 + configs/r8a7795_salvator-x_defconfig | 2 +- configs/r8a7795_ulcb_defconfig | 2 +- configs/r8a7796_

[U-Boot] [PATCH] ARM: rmobile: Increase console buffer sizes

2017-07-21 Thread Marek Vasut
Allow pasting extra long lines into the U-Boot console on RCar Gen3. This is OK since we have plenty of resources and it's convenient. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen3-common.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff -

[U-Boot] [PATCH 1/2] ARM: rmobile: Add PFC PUEN bank 5 address

2017-07-21 Thread Marek Vasut
Add the PFC5 PUEN address and SSI SDATA4 bit offset into the rcar-gen3-base.h . Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rmobile/include/mach/rcar-gen3-base.h b/a

[U-Boot] [PATCH 2/2] ARM: rmobile: ulcb: Add ULCB board support

2017-07-21 Thread Marek Vasut
Add initial support for the R8A7795 and R8A7796 based ULCB board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Kconfig.64 | 6 + board/renesas/ulcb/Kconfig | 15 +++ board/renesas/ulcb/MAINTAINERS | 7 ++ board/renesas/ulcb/Makefile | 9 ++ boar

[U-Boot] [PATCH] mtd: cfi: Zap CFI_FLASH_SHIFT_WIDTH redefinition

2017-07-21 Thread Marek Vasut
This is defined twice in the same file, with the same value, likely because of some patch merge issue. Pick the uglier one and nuke it. Signed-off-by: Marek Vasut Cc: Tom Rini --- include/flash.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/flash.h b/include/flash.h index 2a5e13

[U-Boot] [PATCH] mmc: uniphier-sd: Fix long response processing

2017-07-21 Thread Marek Vasut
The long response entry 0..3 LSByte comes from the next response register MSByte, not from the next response register LSByte. Fix this to make the driver report correct values in response 136 . Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung --- drivers/mmc/uniphier-sd.c | 14

[U-Boot] [PATCH] db410c: enable r8152 usb eth

2017-07-21 Thread Rob Clark
Signed-off-by: Rob Clark --- I figured out why I was having no luck getting my usb ethernet dongle to work ;-) include/configs/dragonboard410c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index 8e742d82ce..47fcc5471b

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-21 Thread Siarhei Siamashka
On Fri, 21 Jul 2017 22:15:37 +0300 Siarhei Siamashka wrote: > On Wed, 12 Jul 2017 16:34:50 +0200 > Maxime Ripard wrote: > > > The -mno-unaligned-access flag used on ARM to prevent GCC from generating > > unaligned accesses (obviously) will only do so on packed structures. > > This statement

Re: [U-Boot] [PATCH v1 0/7] x86: acpi: Few enhancements and improvements

2017-07-21 Thread Andy Shevchenko
able checksum verification disabled [0.00] ACPI: RSDP 0x000E4500 24 (v02 U-BOOT) [0.00] ACPI: XSDT 0x000E45E0 3C (v01 U-BOOT U-BOOTBL 20170721 INTL ) [0.00] ACPI: FACP 0x000E4BA0 F4 (v06 U-BOOT U-BOOTBL 20170721 INTL ) [0.

[U-Boot] [PATCH v1 6/7] x86: acpi: Export acpi_fill_mcfg() with __weak attribute

2017-07-21 Thread Andy Shevchenko
Some platforms might require different approach when filling memory mappings configuration table. Allow them to override the common method. At the same time export acpi_create_mcfg_mmconfig(). Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 3 +++ arch/x86/lib/acpi_table

[U-Boot] [PATCH v1 1/7] Makefile: Don't shadow actual error when compile ASL

2017-07-21 Thread Andy Shevchenko
If ASL compiler failed by any reason do not produce output C file. Otherwise sequential run of make will shadow the actual error in ASL, i.e. CC board/intel/edison/dsdt.o board/intel/edison/dsdt.c:1:1: error: unterminated comment /* and user has to remove dsdt.c and run make in order to s

[U-Boot] [PATCH v1 2/7] Makefile: Export build date as integer

2017-07-21 Thread Andy Shevchenko
In some cases we would need build date as integer value. Export U_BOOT_BUILD_DATE as %Y%m%d integer value. Signed-off-by: Andy Shevchenko --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 452596485d..71de5c656c 100644 --- a/Makefile +++ b/Makefile @@ -1

[U-Boot] [PATCH v1 5/7] x86: acpi: Deduplicate acpi_fill_madt() implementation

2017-07-21 Thread Andy Shevchenko
In Baytrail and Quark support code acpi_fill_madt() is identical. Deduplicate its implementation by moving to lib/acpi_tables.c. At the same time mark acpi_fill_madt() with __weak attribute to keep a possibility to override it in platform code Signed-off-by: Andy Shevchenko --- arch/x86/cpu/ba

[U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-21 Thread Andy Shevchenko
If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware communications. Signed-off-by: Andy Shevchenko --- arch/x86/lib/acpi_table.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index da6014fb41..3eb101105b 100644

[U-Boot] [PATCH v1 4/7] x86: acpi: Name fields in FADT in accordance with specification

2017-07-21 Thread Andy Shevchenko
ACPI specification defines FADT fields marked as reserved in U-Boot. Name these fields in accordance with ACPI specification. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/acpi_t

[U-Boot] [PATCH v1 0/7] x86: acpi: Few enhancements and improvements

2017-07-21 Thread Andy Shevchenko
Patch 1 is a build improvement to have better understanding why DSDT is not compiled. Patches 2 and 3 add date of U-Boot build as OEM revision to the generated tables. Patch 4 marks fields in FADT in accordance with latest ACPI spec. Patches 5 and 6 provides a generic "fill" functions that can b

[U-Boot] [PATCH v1 3/7] x86: acpi: Fill OEM revision

2017-07-21 Thread Andy Shevchenko
Fill OEM revision field in the tables by U-Boot build date. Signed-off-by: Andy Shevchenko --- arch/x86/lib/acpi_table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 01d5b6fff0..c6f4d8941c 100644 --- a/arch/x86/lib/acpi_table.c

[U-Boot] [PATCH] mmc: fsl_esdhc: not always setting esdhc fdt status to okay

2017-07-21 Thread Li Yang
We shouldn't always change the status to okay. There could be situations that the esdhc is intentionally disabled in the device tree. Signed-off-by: Li Yang --- drivers/mmc/fsl_esdhc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 3

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-21 Thread Siarhei Siamashka
On Wed, 12 Jul 2017 16:34:50 +0200 Maxime Ripard wrote: > The -mno-unaligned-access flag used on ARM to prevent GCC from generating > unaligned accesses (obviously) will only do so on packed structures. This statement seems to be poorly worded. > It seems like gcc 7.1 is a bit stricter than pre

[U-Boot] [PATCH 1/2] usb: kbd: don't fail with iomux

2017-07-21 Thread Rob Clark
stdin might not be set, which would cause iomux_doenv() to fail therefore causing probe_usb_keyboard() to fail. Furthermore if we do have iomux enabled, the sensible thing (in terms of user experience) would be to simply add ourselves to the list of stdin devices. Signed-off-by: Rob Clark --- c

[U-Boot] [PATCH 2/2] usb: kbd: add missing \n

2017-07-21 Thread Rob Clark
Signed-off-by: Rob Clark --- common/usb_kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 72cf78abd4..615f8f88cd 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -654,7 +654,7 @@ static int usb_kbd_remove(struct udevice *dev

[U-Boot] [PATCH 5/5] db410c: config updates

2017-07-21 Thread Rob Clark
Signed-off-by: Rob Clark --- arch/arm/Kconfig | 2 +- configs/dragonboard410c_defconfig | 8 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f7b44392ac..db6a325ee1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconf

[U-Boot] [PATCH 4/5] db410c: on aarch64 the fdtfile is in per-vendor subdirectory

2017-07-21 Thread Rob Clark
Signed-off-by: Rob Clark --- include/configs/dragonboard410c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h index 11c842d952..8e742d82ce 100644 --- a/include/configs/dragonboard410c.h +++ b/include/confi

[U-Boot] [PATCH 1/5] Makefile: also build fdt for snapdragon

2017-07-21 Thread Rob Clark
Snapdragon is a bit of a funny case, where we want to build the fdt to pass to lk, which loads us, but otherwise want to treat it as OF_BOARD, since lk will patch the fdt (for example, to insert simple-framebuffer node). Signed-off-by: Rob Clark --- Makefile | 6 ++ 1 file changed, 6 inserti

[U-Boot] [PATCH 3/5] db410c: add reserved-memory node to dts

2017-07-21 Thread Rob Clark
If lk lights up display and populates simple-framebuffer node, it will also setup a reserved-memory node (needed by simplefb on linux). But it isn't clever enough to cope when the reserved-memory node is not present. Signed-off-by: Rob Clark --- arch/arm/dts/dragonboard410c.dts | 7 ++- 1 f

[U-Boot] [PATCH 2/5] db410c: use fdt passed from lk

2017-07-21 Thread Rob Clark
lk patches the fdt to set some device's MAC addresses and more importantly to patch in the simple-framebuffer node that we want u-boot to see. Signed-off-by: Rob Clark --- board/qualcomm/dragonboard410c/Makefile | 1 + board/qualcomm/dragonboard410c/dragonboard410c.c | 8 ++ board

[U-Boot] [PATCH 0/5] dragonboard 410c patches

2017-07-21 Thread Rob Clark
Rob Clark (5): Makefile: also build fdt for snapdragon db410c: use fdt passed from lk db410c: add reserved-memory node to dts db410c: on aarch64 the fdtfile is in per-vendor subdirectory db410c: config updates Makefile | 6 arch/arm/Kconfig

[U-Boot] [PATCH 2/3] video: simplefb

2017-07-21 Thread Rob Clark
Not really qcom specific, but for now qcom/lk is the one firmware that is (afaiu) setting up the appropriate dt node for pre-configured display. Uses the generic simple-framebuffer DT bindings so this should be useful on other platforms. Signed-off-by: Rob Clark --- drivers/video/Kconfig| 1

[U-Boot] [PATCH 3/3] video: add config option to skip framebuffer clear

2017-07-21 Thread Rob Clark
The use-case is that the thing that loaded u-boot already put a splash image on screen. And we want to preserve that until grub boot menu takes over. Signed-off-by: Rob Clark --- drivers/video/Kconfig| 8 drivers/video/cfb_console.c | 3 ++- drivers/video/video-uclass.c | 4 ++

[U-Boot] [PATCH 1/3] dm: core: also parse chosen node

2017-07-21 Thread Rob Clark
This is the node that would contain, for example, the framebuffer setup by an earlier stage. Signed-off-by: Rob Clark --- drivers/core/root.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/core/root.c b/drivers/core/root.c index d691d6ff94..5e6

[U-Boot] [PATCH 0/3] video patches

2017-07-21 Thread Rob Clark
1/3 unchanged, 2/3 updated to use fdtdec_get_addr_size_auto_parent() to properly parse reg node based on #address-cells and #size-cells, and 3/3 updated to change kconfig name and slight cleanup. Rob Clark (3): dm: core: also parse chosen node video: simplefb video: add config option to skip

  1   2   >