[U-Boot] [PATCH] test: Update test-imagetools.sh to match new syntax

2019-02-14 Thread Martyn Welch
The syntax of dumpimage was simplified in commit 12b831879a76 ("tools: dumpimage: Simplify arguments"), but the test (test/image/test-imagetools.sh) was not updated and is now failing. Update the test to use the new syntax. Reported-by: Vagrant Cascadian Signed-off-by: Martyn Welch ---

Re: [U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization

2019-02-14 Thread Fabio Estevam
Hi Joris, On Thu, Feb 14, 2019 at 10:15 AM Offouga Joris wrote: > > Hi Fabio > > I am preparing the next and I hope to be able to send it soon. give me the > instructions to follow and I will add them Please check the series I have just sent converting pico-mx6ul boards. If you have any

Re: [U-Boot] [PATCH v2] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Alexander Graf
On 14.02.19 13:56, Michal Simek wrote: > distro boot expects that fdtfile name is setup for alternative DTB. > Create this file based on the first platform compatible string. > This should ensure that one rootfs can store multiple DTBs for different > boards. > Reflect structure which is used in

[U-Boot] [PATCH v2] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Michal Simek
distro boot expects that fdtfile name is setup for alternative DTB. Create this file based on the first platform compatible string. This should ensure that one rootfs can store multiple DTBs for different boards. Reflect structure which is used in Linux kernel. It means dtbs are strored in xilinx

Re: [U-Boot] [PATCH 4/6] pico-imx6ul: Convert to CONFIG_DM_GPIO

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:04 AM Fabio Estevam wrote: > > Convert to CONFIG_DM_GPIO. > > Also, DM GPIO requires gpio_request() to be called explicitly before > doing any gpio operation, so do as requested. > > Signed-off-by: Fabio Estevam Acked-by: Otavio Salvador -- Otavio Salvador

Re: [U-Boot] [PATCH 5/6] pico-imx6ul: Convert to DM_PMIC

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:04 AM Fabio Estevam wrote: > > Convert to use DM_PMIC for the PFUZE3000. Since this PMIC is > under an I2C bus, conver to DM_I2C as well. > > Also, since I2C is not used in SPL, remove CONFIG_SPL_I2C_SUPPORT > to avoid build warnings. > > Signed-off-by: Fabio Estevam

Re: [U-Boot] [PATCH 6/6] pico-imx6ul: README: Adjust the binary name after DM conversion

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:04 AM Fabio Estevam wrote: > > After the conversion to DM the U-Boot binary is called u-boot-dtb.imx, > so fix the README file accordingly. > > Signed-off-by: Fabio Estevam Acked-by: Otavio Salvador -- Otavio Salvador O.S. Systems

Re: [U-Boot] [PATCH 3/6] pico-imx6ul: Convert to DM MMC

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:03 AM Fabio Estevam wrote: > > Select CONFIG_DM_MMC=y in order to support MMC driver model. > > This allows the MMC board related code to be removed. > > Signed-off-by: Fabio Estevam Acked-by: Otavio Salvador -- Otavio Salvador O.S.

Re: [U-Boot] [PATCH 2/6] pico-imx6ul: Select CONFIG_OF_CONTROL

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:03 AM Fabio Estevam wrote: > > Select CONFIG_OF_CONTROL and the appropriate device tree files > in preparation for converting to driver model. > > Signed-off-by: Fabio Estevam Acked-by: Otavio Salvador -- Otavio Salvador O.S. Systems

Re: [U-Boot] [PATCH 1/6] pico-imx6ul: Import dts files from kernel

2019-02-14 Thread Otavio Salvador
On Thu, Feb 14, 2019 at 10:02 AM Fabio Estevam wrote: > > Import the device tree files from kernel 5.0-rc6 in preparation > for driver model conversion. > > Signed-off-by: Fabio Estevam Acked-by: Otavio Salvador > --- > arch/arm/dts/imx6ul-pico-hobbit.dts | 100 ++ >

Re: [U-Boot] [PATCH] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Michal Simek
On 14. 02. 19 13:37, Alexander Graf wrote: > > > On 14.02.19 13:33, Michal Simek wrote: >> On 14. 02. 19 13:27, Alexander Graf wrote: >>> >>> >>> On 14.02.19 13:18, Michal Simek wrote: distro boot expects that fdtfile name is setup for alternative DTB. Create this file based on the

Re: [U-Boot] [PATCH] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Alexander Graf
On 14.02.19 13:33, Michal Simek wrote: > On 14. 02. 19 13:27, Alexander Graf wrote: >> >> >> On 14.02.19 13:18, Michal Simek wrote: >>> distro boot expects that fdtfile name is setup for alternative DTB. >>> Create this file based on the first platform compatible string. >>> This should ensure

[U-Boot] [PATCH v5 1/1] avb: add support for named persistent values

2019-02-14 Thread Igor Opaniuk
AVB 2.0 spec. revision 1.1 introduces support for named persistent values that must be tamper evident and allows AVB to store arbitrary key-value pairs [1]. Introduce implementation of two additional AVB operations read_persistent_value()/write_persistent_value() for retrieving/storing named

[U-Boot] [PATCH] warp7: Remove unneeded headers after DM conversion

2019-02-14 Thread Fabio Estevam
After DM conversion the I2C and MMC related board codes have been removed, so remove the corresponding header files as well. Signed-off-by: Fabio Estevam --- board/warp7/warp7.c | 4 1 file changed, 4 deletions(-) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index

Re: [U-Boot] [PATCH] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Michal Simek
On 14. 02. 19 13:27, Alexander Graf wrote: > > > On 14.02.19 13:18, Michal Simek wrote: >> distro boot expects that fdtfile name is setup for alternative DTB. >> Create this file based on the first platform compatible string. >> This should ensure that one rootfs can store multiple DTBs for

Re: [U-Boot] Antwort: Re: [PATCH] zynq: fix I2C in SPL

2019-02-14 Thread Michal Simek
On 14. 02. 19 8:52, Hannes Schmelzer wrote: >> >> Hi, > Hi Michal, > >> >> first of all I would rephrase subject a little bit. >> >> Something like: >> "ARM: zynq: Add missing i2c get_rate for fixing i2c SPL" > OK. > >> >> On 14. 02. 19 6:50, Hannes Schmelzer wrote: >>> The commit

Re: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-02-14 Thread Fabio Estevam
Hi Joris, On Sun, Jan 20, 2019 at 7:17 PM Joris Offouga wrote: > > Hi all, > > Pinctrl, GPIO, I2C, MMC, ETH are converted. The series looks good. I have sent comments for every patch and you could repost them to the list. I recommend to not convert PMIC and USB until we address the issues you

Re: [U-Boot] [PATCH] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Alexander Graf
On 14.02.19 13:18, Michal Simek wrote: > distro boot expects that fdtfile name is setup for alternative DTB. > Create this file based on the first platform compatible string. > This should ensure that one rootfs can store multiple DTBs for different > boards. > > Signed-off-by: Michal Simek >

Re: [U-Boot] [PATCH] lib/crc16: use non-C99 loop style

2019-02-14 Thread Tom Rini
On Thu, Feb 14, 2019 at 12:35:12PM +0100, Philipp Tomsich wrote: > Tom & Thomas, > > > On 14.02.2019, at 08:56, Thomas Petazzoni > > wrote: > > > > However, generally speaking is U-Boot interested in allowing this kind > > of C99 variable declaration ? For example, the Linux kernel coding > >

Re: [U-Boot] [RFC 7/9] pico-imx7d: Convert to DM PMIC

2019-02-14 Thread Fabio Estevam
On Sun, Jan 20, 2019 at 8:14 PM Joris Offouga wrote: > > This patch converts the pico-pi-imx7d to use the DM PMIC model. > > Signed-off-by: Joris Offouga > --- > board/technexion/pico-imx7d/pico-imx7d.c | 44 > > configs/pico-pi-imx7d_defconfig | 6

[U-Boot] [PATCH] arm64: zynqmp: Create fdtfile from compatible string

2019-02-14 Thread Michal Simek
distro boot expects that fdtfile name is setup for alternative DTB. Create this file based on the first platform compatible string. This should ensure that one rootfs can store multiple DTBs for different boards. Signed-off-by: Michal Simek --- How good/bad idea is this? ---

Re: [U-Boot] [RFC 6/9] pico-imx7d-pico: defconfig: Switch to DM for UART

2019-02-14 Thread Fabio Estevam
On Sun, Jan 20, 2019 at 7:56 PM Joris Offouga wrote: > > This commit switches to DM UART for pico-imx7d-pico. > > Signed-off-by: Joris Offouga > --- > arch/arm/dts/imx7d-pico-pi.dts | 4 > configs/pico-pi-imx7d_defconfig | 1 + > 2 files changed, 5 insertions(+) > > diff --git

Re: [U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization

2019-02-14 Thread Offouga Joris
Hi Fabio I am preparing the next and I hope to be able to send it soon. give me the instructions to follow and I will add them Joris > On 14 Feb 2019, at 13:14, Fabio Estevam wrote: > >> On Sun, Jan 20, 2019 at 7:52 PM Joris Offouga wrote: >> >> Furthermore this patch create un alias for

Re: [U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization

2019-02-14 Thread Fabio Estevam
On Sun, Jan 20, 2019 at 7:52 PM Joris Offouga wrote: > > Furthermore this patch create un alias for mmc0 to usdch3 because before the > convertion he was the only one described in the pico-imx7d.c. > > Signed-off-by: Joris Offouga > --- > arch/arm/dts/imx7d-pico-pi.dts | 4 >

Re: [U-Boot] [RFC 5/9] pico-pi-imx7d: defconfig: Switch to DM for I2C

2019-02-14 Thread Fabio Estevam
On Sun, Jan 20, 2019 at 7:33 PM Joris Offouga wrote: > diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig > index 0d1c56b..dd8af7f 100644 > --- a/configs/pico-pi-imx7d_defconfig > +++ b/configs/pico-pi-imx7d_defconfig > @@ -27,6 +27,7 @@ CONFIG_DM_MMC=y >

Re: [U-Boot] [PATCH v8 4/8] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-14 Thread Chee, Tien Fong
On Thu, 2019-02-14 at 11:41 +0100, Marek Vasut wrote: > On 2/14/19 7:44 AM, Chee, Tien Fong wrote: > > > > On Wed, 2019-02-13 at 17:20 +0100, Marek Vasut wrote: > > > > > > On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > Add

Re: [U-Boot] [RFC 3/9] pico-pi-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7

2019-02-14 Thread Fabio Estevam
On Sun, Jan 20, 2019 at 7:41 PM Joris Offouga wrote: > > This patch is necessary for convert pico-pi-imx7 to dm driver model > > Signed-off-by: Joris Offouga > --- > configs/pico-pi-imx7d_defconfig | 3 +++ Please also convert configs/pico-imx7d_defconfig and configs/pico-hobbit-imx7d_defconfig

[U-Boot] [PATCH 5/6] pico-imx6ul: Convert to DM_PMIC

2019-02-14 Thread Fabio Estevam
Convert to use DM_PMIC for the PFUZE3000. Since this PMIC is under an I2C bus, conver to DM_I2C as well. Also, since I2C is not used in SPL, remove CONFIG_SPL_I2C_SUPPORT to avoid build warnings. Signed-off-by: Fabio Estevam --- board/technexion/pico-imx6ul/pico-imx6ul.c | 61

[U-Boot] [PATCH 4/6] pico-imx6ul: Convert to CONFIG_DM_GPIO

2019-02-14 Thread Fabio Estevam
Convert to CONFIG_DM_GPIO. Also, DM GPIO requires gpio_request() to be called explicitly before doing any gpio operation, so do as requested. Signed-off-by: Fabio Estevam --- board/technexion/pico-imx6ul/pico-imx6ul.c | 1 + configs/pico-hobbit-imx6ul_defconfig | 3 +++

[U-Boot] [PATCH 3/6] pico-imx6ul: Convert to DM MMC

2019-02-14 Thread Fabio Estevam
Select CONFIG_DM_MMC=y in order to support MMC driver model. This allows the MMC board related code to be removed. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mx6/Kconfig | 2 ++ board/technexion/pico-imx6ul/pico-imx6ul.c | 34 --

[U-Boot] [PATCH 6/6] pico-imx6ul: README: Adjust the binary name after DM conversion

2019-02-14 Thread Fabio Estevam
After the conversion to DM the U-Boot binary is called u-boot-dtb.imx, so fix the README file accordingly. Signed-off-by: Fabio Estevam --- board/technexion/pico-imx6ul/README | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/board/technexion/pico-imx6ul/README

[U-Boot] [PATCH 2/6] pico-imx6ul: Select CONFIG_OF_CONTROL

2019-02-14 Thread Fabio Estevam
Select CONFIG_OF_CONTROL and the appropriate device tree files in preparation for converting to driver model. Signed-off-by: Fabio Estevam --- configs/pico-hobbit-imx6ul_defconfig | 3 ++- configs/pico-imx6ul_defconfig| 3 ++- configs/pico-pi-imx6ul_defconfig | 3 ++- 3 files

[U-Boot] [PATCH 1/6] pico-imx6ul: Import dts files from kernel

2019-02-14 Thread Fabio Estevam
Import the device tree files from kernel 5.0-rc6 in preparation for driver model conversion. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6ul-pico-hobbit.dts | 100 ++ arch/arm/dts/imx6ul-pico-pi.dts | 97 ++ arch/arm/dts/imx6ul-pico.dtsi | 461

Re: [U-Boot] [PATCH v8 3/8] fit: Add function declarations to the header file

2019-02-14 Thread Chee, Tien Fong
On Wed, 2019-02-13 at 17:11 +0100, Marek Vasut wrote: > On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Adding some function declarations to the header file, so these > > functions can be referred by other C files. > > > > Signed-off-by: Tien Fong Chee

Re: [U-Boot] [PATCH v8 6/8] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2019-02-14 Thread Chee, Tien Fong
On Thu, 2019-02-14 at 11:42 +0100, Marek Vasut wrote: > On 2/14/19 7:50 AM, Chee, Tien Fong wrote: > > > > On Wed, 2019-02-13 at 17:25 +0100, Marek Vasut wrote: > > > > > > On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > Add

Re: [U-Boot] [PATCH v8 4/8] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-14 Thread Chee, Tien Fong
On Thu, 2019-02-14 at 11:41 +0100, Marek Vasut wrote: > On 2/14/19 7:44 AM, Chee, Tien Fong wrote: > > > > On Wed, 2019-02-13 at 17:20 +0100, Marek Vasut wrote: > > > > > > On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > Add

Re: [U-Boot] [PATCH] lib/crc16: use non-C99 loop style

2019-02-14 Thread Philipp Tomsich
Tom & Thomas, > On 14.02.2019, at 08:56, Thomas Petazzoni > wrote: > > However, generally speaking is U-Boot interested in allowing this kind > of C99 variable declaration ? For example, the Linux kernel coding > style doesn't allow this, but perhaps U-Boot has made a difference > choice here.

[U-Boot] U-Boot port for esp32

2019-02-14 Thread kbenvin
Hi, I am new to U-Boot, and looking for a U-Boot port for esp32 soc based on xtensa. Search for esp32 in search option in this forum for any existing question didn't show up anything. Is there any U-Boot port (done/inprogress) for esp32? If not, could somebody provide any link/guide on how to

Re: [U-Boot] [PATCH v8 2/8] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-02-14 Thread Chee, Tien Fong
On Thu, 2019-02-14 at 11:35 +0100, Marek Vasut wrote: > On 2/14/19 7:04 AM, Chee, Tien Fong wrote: > > > > On Thu, 2019-02-14 at 00:04 +0100, Marek Vasut wrote: > > > > > > On 2/13/19 11:45 PM, Dalon L Westergreen wrote: > > > > > > > > > > > > On Wed, 2019-02-13 at 17:10 +0100, Marek Vasut

Re: [U-Boot] [PATCH v8 1/8] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-14 Thread Chee, Tien Fong
On Thu, 2019-02-14 at 11:34 +0100, Marek Vasut wrote: > On 2/14/19 6:55 AM, Chee, Tien Fong wrote: > > > > On Wed, 2019-02-13 at 17:07 +0100, Marek Vasut wrote: > > > > > > On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > This

Re: [U-Boot] [PATCH v8 6/8] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2019-02-14 Thread Marek Vasut
On 2/14/19 7:50 AM, Chee, Tien Fong wrote: > On Wed, 2019-02-13 at 17:25 +0100, Marek Vasut wrote: >> On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add support for loading FPGA bitstream to get DDR up running before >>> U-Boot is loaded into DDR. Boot

Re: [U-Boot] [PATCH v8 4/8] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-14 Thread Marek Vasut
On 2/14/19 7:44 AM, Chee, Tien Fong wrote: > On Wed, 2019-02-13 at 17:20 +0100, Marek Vasut wrote: >> On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Add FPGA driver to support program FPGA with FPGA bitstream loading >>> from >>> filesystem. The driver

Re: [U-Boot] [PATCH v8 2/8] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-02-14 Thread Marek Vasut
On 2/14/19 7:04 AM, Chee, Tien Fong wrote: > On Thu, 2019-02-14 at 00:04 +0100, Marek Vasut wrote: >> On 2/13/19 11:45 PM, Dalon L Westergreen wrote: >>> >>> On Wed, 2019-02-13 at 17:10 +0100, Marek Vasut wrote: On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: > > From: Tien

Re: [U-Boot] [PATCH v8 1/8] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-14 Thread Marek Vasut
On 2/14/19 6:55 AM, Chee, Tien Fong wrote: > On Wed, 2019-02-13 at 17:07 +0100, Marek Vasut wrote: >> On 2/13/19 3:18 PM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> This patch adds description on properties about file name used for >>> both >>> peripheral bitstream and

Re: [U-Boot] [PATCH v3] net: phy: add TSE PCS support to dwmac-socfpga

2019-02-14 Thread Marek Vasut
On 2/14/19 8:50 AM, Ooi, Joyce wrote: [...] CCing Chee, he's been working on the altera FPGA code recently, I hope he can give you some hints. We might need a new API for this, possibly add DM support to FPGA framework (should be easy) and then let the FPGA framework handle the

Re: [U-Boot] mx6cuboxi: Detecting wrong .dtb (v2019.01)

2019-02-14 Thread Baruch Siach
Hi Vagrant, On Thu, Feb 14 2019, Vagrant Cascadian wrote: > Thanks for taking the time to look, responses inline... > > On 2019-02-14, Baruch Siach wrote: >> On Wed, Feb 13 2019, Fabio Estevam wrote: >>> On Wed, Feb 13, 2019 at 2:52 PM Vagrant Cascadian >>> wrote: I *think* this board

Re: [U-Boot] mx6cuboxi: Detecting wrong .dtb (v2019.01)

2019-02-14 Thread Vagrant Cascadian
Thanks for taking the time to look, responses inline... On 2019-02-14, Baruch Siach wrote: > On Wed, Feb 13 2019, Fabio Estevam wrote: >> On Wed, Feb 13, 2019 at 2:52 PM Vagrant Cascadian wrote: >>> >>> I *think* this board is getting the wrong fdtfile set: > > What hardware are you running? Is

Re: [U-Boot] [PATCH v3 1/1] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-02-14 Thread Simon Goldschmidt
On Thu, Feb 14, 2019 at 7:26 AM Heinrich Schuchardt wrote: > > The SPL image for the Tinker Board has to fit into 32 KiB. This includes > up to 2 KiB for the file header. > > A new configuration variable CONFIG_SPL_WITH_DTB_SIZE_LIMIT is introduced > to define the board specific limit. > >

Re: [U-Boot] [PATCH 3/3] mmc: fsl_esdhc: clarify i.MX eSDHC specific functions

2019-02-14 Thread Peng Fan
> -Original Message- > From: Y.b. Lu > Sent: 2019年2月14日 16:21 > To: u-boot@lists.denx.de > Cc: Jaehoon Chung ; Prabhakar Kushwaha > ; Peng Fan ; Y.b. Lu > > Subject: [PATCH 3/3] mmc: fsl_esdhc: clarify i.MX eSDHC specific functions > > A previous patch had added SDR104/HS200 support

Re: [U-Boot] [PATCH 2/3] mmc: fsl_esdhc: clean up register definition

2019-02-14 Thread Peng Fan
> -Original Message- > From: Y.b. Lu > Sent: 2019年2月14日 16:21 > To: u-boot@lists.denx.de > Cc: Jaehoon Chung ; Prabhakar Kushwaha > ; Peng Fan ; Y.b. Lu > > Subject: [PATCH 2/3] mmc: fsl_esdhc: clean up register definition > > The fsl_esdhc driver was for Freescale eSDHC on

Re: [U-Boot] [PATCH 2/3] sunxi: Rename Sinovoip BPI M2 Plus to Bananapi M2 Plus H3

2019-02-14 Thread Chen-Yu Tsai
On Wed, Feb 13, 2019 at 11:33 PM Tom Rini wrote: > > On Wed, Feb 13, 2019 at 08:12:44PM +0530, Jagan Teki wrote: > > On Fri, Jan 25, 2019 at 4:09 PM Chen-Yu Tsai wrote: > > > > > > The brand Sinovoip is used for Sinovoip's original VOIP products, while > > > the Bananapi brand is for the single

Re: [U-Boot] [PATCH 1/3] mmc: fsl_esdhc: add esdhc_imx flag

2019-02-14 Thread Peng Fan
> -Original Message- > From: Y.b. Lu > Sent: 2019年2月14日 16:21 > To: u-boot@lists.denx.de > Cc: Jaehoon Chung ; Prabhakar Kushwaha > ; Peng Fan ; Y.b. Lu > > Subject: [PATCH 1/3] mmc: fsl_esdhc: add esdhc_imx flag > > The fsl_esdhc driver was for Freescale eSDHC on MPC83XX/MPC85XX

Re: [U-Boot] [PATCH v1 0/2] Allow platform specific service handling on PSCI

2019-02-14 Thread Ang, Chee Hong
Hi Tom,         Any comments on this patch ? Best Regards, Ang On Tue, 2019-02-12 at 00:27 -0800, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" > > Currently u-boot only support standard PSCI functions for power > management > and lack of convenient method to allow the users to

[U-Boot] [PATCH v2 7/8] spi: sun4: Add A31 spi controller support

2019-02-14 Thread Jagan Teki
Add A31 spi controller support for existing sun4i_spi driver via driver data, this would simply add A31 register along with proper register bits via enum sets. Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 4 +- drivers/spi/sun4i_spi.c | 95 -

[U-Boot] [PATCH v2 6/8] spi: sun4i: Add CLK support

2019-02-14 Thread Jagan Teki
Add CLK support to enable AHB and MOD SPI clocks on sun4i_spi driver. Note, that the code will enable and disable clock in claim and release calls to make proper clock and reset handling between claiming and releasing SPI bus. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 56

[U-Boot] [PATCH v2 8/8] spi: sun4i: Driver cleanup

2019-02-14 Thread Jagan Teki
- drop unused macros. - use base instead of base_addr, for better code readability - move .probe and .ofdata_to_platdata functions in required places to add platdata support in future. - use sentinel sun4i_spi_ids. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 190

[U-Boot] [PATCH v2 4/8] spi: sun4i: Access registers and bits via enum offsets

2019-02-14 Thread Jagan Teki
Allwinner support two different SPI controllers one for A10 and another for A31 with minimal changes in register offsets and respective register bits, but the logic for accessing the SPI master via SPI slave remains nearly similar. Add enum offsets for register set and register bits, so-that it

[U-Boot] [PATCH v2 3/8] spi: sun4i: Simplify reg writes using set/clrbits_le32

2019-02-14 Thread Jagan Teki
Update the existing register writes using setbits_le32 and clrbits_le32 in required places. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/spi/sun4i_spi.c b/drivers/spi/sun4i_spi.c index

[U-Boot] [PATCH v2 5/8] spi: sun4i: Support fifo_depth via drvdata

2019-02-14 Thread Jagan Teki
Support fifo_depth via drvdata instead of macro definition, this would eventually reduce another macro definition for new SPI controller fifo depth support addition. Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara --- drivers/spi/sun4i_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[U-Boot] [PATCH v2 2/8] clk: sunxi: Implement SPI clocks, resets

2019-02-14 Thread Jagan Teki
- Implement SPI AHB, MOD clocks via ccu_clk_gate for all supported Allwinner SoCs - Implement SPI resets via ccu_reset for all supported Allwinner SoCs. Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara --- drivers/clk/sunxi/clk_a10.c | 10 ++ drivers/clk/sunxi/clk_a10s.c | 7

[U-Boot] [PATCH v2 1/8] spi: sun4i: Poll for rxfifo empty

2019-02-14 Thread Jagan Teki
To drain rx fifo the fifo need to poll till the fifo count become empty. The current code is using wait_for_bit logic on control register with exchange burst mode mask, which is not a proper way of waiting for draining fifo. So, add code for polling fifo status register till rxfifo count become

[U-Boot] [PATCH v2 0/8] spi: Add Allwinner A31 SPI driver

2019-02-14 Thread Jagan Teki
This series add support for Allwinner A31 SPI controller driver. Fixed and improved conde when compared to previous series[1] Changes for v2: - use fifo_sta instead ctl reg in readl_poll - use ">=" instead of negotiation in readl_poll condition - use SPI_REG, SPI_BIT, SPI_CS macro for code

[U-Boot] [PATCH 3/3] mmc: fsl_esdhc: clarify i.MX eSDHC specific functions

2019-02-14 Thread Y.b. Lu
A previous patch had added SDR104/HS200 support for fsl_esdhc. However this was only for i.MX eSDHC, and QorIQ eSDHC used different registers and method. This patch is to clarify i.MX eSDHC specific functions defined in that patch, and to use them only for i.MX eSDHC. The QorIQ eSDHC SDR104/HS200

[U-Boot] [PATCH 2/3] mmc: fsl_esdhc: clean up register definition

2019-02-14 Thread Y.b. Lu
The fsl_esdhc driver was for Freescale eSDHC on MPC83XX/MPC85XX initially. The later QoriQ series processors (which are evolutions of MPC83XX/MPC85XX) and i.MX series processors were using this driver for their eSDHCs too. So there are two evolution directions for eSDHC now. For the two series

[U-Boot] [PATCH 1/3] mmc: fsl_esdhc: add esdhc_imx flag

2019-02-14 Thread Y.b. Lu
The fsl_esdhc driver was for Freescale eSDHC on MPC83XX/MPC85XX initially. The later QoriQ series processors (which are evolutions of MPC83XX/MPC85XX) and i.MX series processors were using this driver for their eSDHCs too. So there are two evolution directions for eSDHC now. For the two series

<    1   2