[U-Boot] [PATCH 3/8] armv7: Add workaround for USB erratum A-008997

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB3 LFPS Peak-Peak Differential Output Voltage Adjustment This patch is adding the erratum for LS1021. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv7/ls102xa/soc.c | 16 arch/arm/in

[U-Boot] [PATCH 6/8] armv8: Add workaround for USB erratum A-008997

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB3 LFPS Peak-Peak Differential Output Voltage Adjustment This patch is adding the erratum for LS1043 and LS2080 SoCs. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 29

[U-Boot] [PATCH 7/8] armv8: Add workaround for USB erratum A-009007

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB3PHY Observing Intermittent Failure in Rx This patch is adding the erratum for LS1043 and LS2080 SoCs. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 43 ++ ar

[U-Boot] [PATCH 5/8] armv8: Add workaround for USB erratum A-009798

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB High Speed Squelch Threshold Adjustment This patch is adding the erratum for LS1043 and LS2080 SoCs. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 22 ++ arc

[U-Boot] [PATCH 4/8] armv7: Add workaround for USB erratum A-009007

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB3PHY Observing Intermittent Failure in Rx This patch is adding the erratum for LS1021. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv7/ls102xa/soc.c | 12 arch/arm/include/asm/arch-ls1

[U-Boot] [PATCH 8/8] USB: config: fix compiler problem for ls1021atwr

2017-05-03 Thread yinbo . zhu
Signed-off-by: yinbo.zhu --- arch/arm/include/asm/arch-ls102xa/config.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm/include/asm/arch-ls102xa/config.h b/arch/arm/include/asm/arch-ls102xa/config.h index 20a7baf..2f7233f 100644 --- a/arch/arm/include/asm/arch-ls102xa/config.h

[U-Boot] [PATCH 2/8] armv7: Add workaround for USB erratum A-009798

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB High Speed Squelch Threshold Adjustment This patch is adding the erratum for LS1021. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv7/ls102xa/soc.c | 10 ++ arch/arm/include/asm/arch-ls102x

[U-Boot] [PATCH 1/8] armv7: Add workaround for USB erratum A-009008

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB High Speed (HS) EYE Height Adjustment This patch is adding the erratum for LS1021. Signed-off-by: Sriram Dash Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv7/ls102xa/soc.c | 12 arch/arm/include/asm/arch-ls102xa/config.h| 4 a

Re: [U-Boot] [PATCH] Convert CONFIG_SPL_BOARD_INIT to Kconfig

2017-05-03 Thread Ley Foon Tan
On Wed, May 3, 2017 at 5:13 PM, Ley Foon Tan wrote: > This converts the following to Kconfig: >CONFIG_SPL_BOARD_INIT > > Signed-off-by: Ley Foon Tan Note, this patch is rebased u-boot-socfpga.git/next branch [1] with u-boot.git/master [2]. [1] http://git.denx.de/?p=u-boot/u-boot-socfpga.git

Re: [U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-05-03 Thread Michael Heimpold
Hi Fabio, Am 03.05.2017 um 02:56 schrieb Fabio Estevam: Hi Michael, On Sat, Apr 29, 2017 at 4:21 AM, Michael Heimpold wrote: we could move the implementation in arch/arm/mach-at91/arm926ejs/cache.c to a more generic place and re-use it. However, the warning is only generated because lib/ef

[U-Boot] saveenv not working (u-boot-2017.05-rc3)

2017-05-03 Thread Teoh Choon Zone
I'm using Cypress S25FL512S QSPI, but "saveenv" is not working in u-boot-2017.05-rc3, the changes did not get stored even though the following message is printed: Saving Environment to SPI Flash... SF: Detected s25fl512s_256k with page size 512 Bytes, erase size 256 KiB, total 64 MiB Erasing SPI f

[U-Boot] [PATCH 2/4] armv7m: add MPU configuration support

2017-05-03 Thread Vikas Manocha
Cortex-M archs support option memory protection unit (MPU). MPU is used to set the memory types, attributes, access permissions for different regions, cache policies of the device. e.g. using MPU it is possible to configure memory region as device memory or strongly ordered, memory attributes like

[U-Boot] [PATCH 4/4] stm32f7: configure mpu valid for f7 family

2017-05-03 Thread Vikas Manocha
This configuration should be valid for all F7 family devices in general. Here is the regions info: - Region0 : 4GB : cacheable & executable. - Region1 : 512MB : text area : strogly ordered & executable. - Region2 : 512MB : peripherals : device memory & non-executable.

[U-Boot] [PATCH 3/4] stm32: use armv7m MPU configuration support

2017-05-03 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- arch/arm/mach-stm32/stm32f4/soc.c | 16 +- arch/arm/mach-stm32/stm32f7/soc.c | 64 --- 2 files changed, 22 insertions(+), 58 deletions(-) diff --git a/arch/arm/mach-stm32/stm32f4/soc.c b/arch/arm/mach-stm32/stm32f4/soc

[U-Boot] [PATCH 1/4] armv7m: correct mpu region size define for 8MB size

2017-05-03 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- arch/arm/include/asm/armv7m.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/armv7m.h b/arch/arm/include/asm/armv7m.h index ebf0f17..9a6224f 100644 --- a/arch/arm/include/asm/armv7m.h +++ b/arch/arm/include/asm/armv7m.h

[U-Boot] [PATCH 0/4] armv7m: add memory protection unit support

2017-05-03 Thread Vikas Manocha
This patchset adds memory protection unit support(MPU) support & configures it for stm32f4 & stm32f7. Vikas Manocha (4): armv7m: correct mpu region size define for 8MB size armv7m: add MPU configuration support stm32: use armv7m MPU configuration support stm32f7: configure mpu valid for f7

[U-Boot] [PATCH] defconfig: firefly-rk3399: fix pinctrl config option

2017-05-03 Thread Heiko Stuebner
The option is named PINCTRL_ROCKCHIP_RK3399 not ROCKCHIP_RK3399_PINCTRL. Set the correct option. Signed-off-by: Heiko Stuebner --- configs/firefly-rk3399_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/firefly-rk3399_defconfig b/configs/firefly-rk3399_defcon

[U-Boot] [PATCH 0/2] armv7m: cache: cleanup before linux booting

2017-05-03 Thread Vikas Manocha
This patchset: - add all data cache flushing & invalidation functions as declared in the common header file. - adds cleanup before linux booting. Vikas Manocha (2): armv7m: cache: add flush & invalidate all dcache arvm7m: add cleanup before linux booting arch/arm/cpu/

[U-Boot] [PATCH 2/2] arvm7m: add cleanup before linux booting

2017-05-03 Thread Vikas Manocha
Data cache memory needs to be disabled before handing over control to linux kernel. This patch populates the cleanup_before_linux stub. Signed-off-by: Vikas Manocha --- arch/arm/cpu/armv7m/cpu.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/cpu/armv7m/cpu.c b/

[U-Boot] [PATCH 1/2] armv7m: cache: add flush & invalidate all dcache

2017-05-03 Thread Vikas Manocha
Add functionality to flush & invalidate all the dcache using the prototype declared in common header file. Signed-off-by: Vikas Manocha --- arch/arm/cpu/armv7m/cache.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c i

[U-Boot] [PATCH] board/BuR/common: incorrect check of dtb

2017-05-03 Thread Heinrich Schuchardt
The logical expression to check the dtb is incorrect in load_devicetree. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- I do not have a board for testing. Please, review carefully. --- board/BuR/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH 1/1] arm64: mvebu: incorrect check of fdt address cells

2017-05-03 Thread Heinrich Schuchardt
In dram_init_banksize there seems to be a typo concerning a plausibility check of the fdt. Testing sc > 2 twice does not make any sense. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- I do not have a board for testing. So review carefully. --- arch/arm/mach-mvebu/

[U-Boot] [PATCH 1/1] lib: circbuf: avoid possible null pointer dereference

2017-05-03 Thread Heinrich Schuchardt
We should not first dereference p and afterwards assert that is was not NULL. Instead do the assert first. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- lib/circbuf.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/circbuf.c b/lib/

Re: [U-Boot] [PATCH V4 1/4] usb: rockchip: add the rockusb gadget

2017-05-03 Thread Lukasz Majewski
Hi Eddie, > this patch implement rockusb protocol on the device side. this is > based on USB download gadget infrastructure. the rockusb function > implements the rd, wl, rid commands. it can work with rkdeveloptool > > Signed-off-by: Eddie Cai I've check this code with checkpatch: lukma@jawa:

[U-Boot] [PATCH 1/1] tools: sunxi: avoid possible null pointer dereference

2017-05-03 Thread Heinrich Schuchardt
If endptr is NULL we should not dereference it. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- tools/sunxi-spl-image-builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sunxi-spl-image-builder.c b/tools/sunxi-spl-image-builder.c ind

Re: [U-Boot] [PATCH 3/3] spl: dfu: reduce spl-dfu MLO size

2017-05-03 Thread Lukasz Majewski
On Wed, 3 May 2017 12:45:10 + "B, Ravi" wrote: > Hi Tom > > >> > >> >>OK. I think we need to introduce SPL_DFU_xxx Kconfig options, > >> >>and use > >> >>CONFIG_IS_ENABLED(DFU_xxx) so that we will get things > >> >>enabled/disabled (and discarded) as needed. > >> > >> >Ok, will do. > >>

Re: [U-Boot] [PATCH 3/3] spl: dfu: reduce spl-dfu MLO size

2017-05-03 Thread Lukasz Majewski
Hi Tom, > On Wed, May 03, 2017 at 08:36:31AM +, B, Ravi wrote: > > Tom > > > > >>> > > >>> Yes you are correct. > > >>> But what is happening here is, the > > >>> CONFIG_DFU_ selected through > > >>> Kconfig/Menuconfig is applicable for both SPL and U-Boot. Hence > > >>> CONFIG_DFU_MMC/NA >

[U-Boot] [PATCH 1/1] relocate-rela: add missing va_end()

2017-05-03 Thread Heinrich Schuchardt
va_start must always be matched by va_end. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- tools/relocate-rela.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c index 3c9d134ac2..df968eb5fd 100

Re: [U-Boot] [PATCH 3/8] dm: blk: Add a function to find the next block device number

2017-05-03 Thread Andy Shevchenko
On Wed, May 3, 2017 at 5:36 AM, Simon Glass wrote: > Hi Andy, > > On 24 April 2017 at 02:04, Andy Shevchenko wrote: >> On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: >>> At present this code is inline. Move it into a function to allow it to >>> be used elsewhere. >>> >>> Signed-off-by: Simo

Re: [U-Boot] [linux-sunxi] Re: [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Icenowy Zheng
于 2017年5月4日 GMT+08:00 上午12:50:52, Jagan Teki 写到: >On Wednesday 03 May 2017 05:48 PM, Olliver Schinagl wrote: >> This patch adds support for the Olimex OLinuXino Lime2 with eMMC >flash >> storage. >> >https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ >> >> It is a assembly v

Re: [U-Boot] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Jagan Teki
On Wednesday 03 May 2017 05:48 PM, Olliver Schinagl wrote: This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed

Re: [U-Boot] [PATCH] sunxi: add support for Banana Pi M2 Plus board

2017-05-03 Thread Jagan Teki
On Wed, May 3, 2017 at 9:15 PM, Icenowy Zheng wrote: > Banana Pi M2 Plus is an Allwinner H3-based SBC by Sinovoip, which has > already mainline device tree file that have landed into U-Boot source > tree. > > Add a defconfig file for it and add the MAINTAINERS items. > > Signed-off-by: Icenowy Zhe

[U-Boot] [PATCH] sunxi: add support for Banana Pi M2 Plus board

2017-05-03 Thread Icenowy Zheng
Banana Pi M2 Plus is an Allwinner H3-based SBC by Sinovoip, which has already mainline device tree file that have landed into U-Boot source tree. Add a defconfig file for it and add the MAINTAINERS items. Signed-off-by: Icenowy Zheng --- board/sunxi/MAINTAINERS| 5 + config

Re: [U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 09:10:35PM +0530, Lokesh Vutla wrote: > > > On Wednesday 03 May 2017 08:53 PM, Tom Rini wrote: > > On Wed, May 03, 2017 at 07:36:32PM +0530, Lokesh Vutla wrote: > >> > >> > >> On Wednesday 03 May 2017 06:03 PM, Tom Rini wrote: > >>> On Tue, May 02, 2017 at 07:40:24PM +0530

Re: [U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-03 Thread Lokesh Vutla
On Wednesday 03 May 2017 08:53 PM, Tom Rini wrote: > On Wed, May 03, 2017 at 07:36:32PM +0530, Lokesh Vutla wrote: >> >> >> On Wednesday 03 May 2017 06:03 PM, Tom Rini wrote: >>> On Tue, May 02, 2017 at 07:40:24PM +0530, Lokesh Vutla wrote: Update MPU frequencies and voltages as per the late

Re: [U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 07:36:32PM +0530, Lokesh Vutla wrote: > > > On Wednesday 03 May 2017 06:03 PM, Tom Rini wrote: > > On Tue, May 02, 2017 at 07:40:24PM +0530, Lokesh Vutla wrote: > >> Update MPU frequencies and voltages as per the latest > >> DM[1] dated: OCT 2011 Revised APRIL 2016, Sectio

[U-Boot] [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl --- Jagan, I was fairly certain t

[U-Boot] [PATCH] arm64: zynqmp: Remove CPU_RELEASE_ADDR macro

2017-05-03 Thread Michal Simek
CPU_RELEASE_ADDR is used only when CONFIG_ARMV8_MULTIENTRY is enabled. ZynqMP is running ATF which takes care about this that's why no need to have this macro. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/x

Re: [U-Boot] [PATCH] Add support for Microchip LAN75xx and LAN78xx

2017-05-03 Thread Yuiko.Oshino
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Tuesday, April 18, 2017 12:47 PM >To: u-boot@lists.denx.de >Cc: Yuiko Oshino - C18177; Simon Glass; Joe Hershberger >Subject: Re: [PATCH] Add support for Microchip LAN75xx and LAN78xx > >On 04/18/2017 05:58 PM, yuiko.osh..

Re: [U-Boot] [PATCH 3/3] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-05-03 Thread Lokesh Vutla
On Wednesday 03 May 2017 06:09 PM, Tom Rini wrote: > On Tue, May 02, 2017 at 07:40:26PM +0530, Lokesh Vutla wrote: > >> am335x supports various sysclk frequencies which can be determined >> using sysboot pins. PLLs should be configures based on this >> sysclk frequency. Add PLL configurations fo

Re: [U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-03 Thread Lokesh Vutla
On Wednesday 03 May 2017 06:03 PM, Tom Rini wrote: > On Tue, May 02, 2017 at 07:40:24PM +0530, Lokesh Vutla wrote: >> Update MPU frequencies and voltages as per the latest >> DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4. >> Below is the consolidated data: >> >> MPU values for PG 2.0 and

Re: [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable

2017-05-03 Thread Tom Rini
On Tue, May 02, 2017 at 10:43:07PM +, Vikas MANOCHA wrote: > Hi Tom, > > > -Original Message- > > From: Vikas MANOCHA > > Sent: Wednesday, April 12, 2017 12:47 PM > > To: 'Tom Rini' > > Cc: u-boot@lists.denx.de; Marek Vasut ; Stefan Agner > > ; Jeremy Hunt > > > > Subject: RE: [U-Bo

Re: [U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-05-03 Thread Fabio Estevam
On Wed, May 3, 2017 at 4:19 AM, Michael Heimpold wrote: > I don't think this is a good idea since this limits EFI support for x86 > only? > Maybe we should just adjust the default value for MXS-based boards, > something like > default y if !ARCH_MXS Or what about this one instead? diff --git a/

Re: [U-Boot] [PATCH 1/2] ARM: k2g: Add support for dynamic programming of PLL based on SYSCLK

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 04:58:25PM +0530, Lokesh Vutla wrote: > K2G supports various sysclk frequencies which can be > determined using sysboot pins. PLLs should be configured > based on this sysclock frequency. Add PLL configurations > for all supported sysclk frequencies. > > Signed-off-by: Lok

[U-Boot] [PATCH 0/5] dm: clk: add BCM6345 gated clock controller support

2017-05-03 Thread Álvaro Fernández Rojas
Broadcom MIPS SoCs have gated clock controllers which only allow enabling and disabling each peripheral clock. Changing clock rates is not possible on these SoCs. Álvaro Fernández Rojas (5): dm: clk: add BCM6345 clock driver mips: bmips: add bcm6345-clk driver support for BCM6358 mips: bmips

[U-Boot] [PATCH 2/5] mips: bmips: add bcm6345-clk driver support for BCM6358

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6358.dtsi | 7 +++ include/dt-bindings/clock/bcm6358-clock.h | 24 2 files changed, 31 insertions(+) create mode 100644 include/dt-bindings/clock/bcm6

[U-Boot] [PATCH 4/5] mips: bmips: add bcm6345-clk driver support for BCM63268

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm63268.dtsi | 13 include/dt-bindings/clock/bcm63268-clock.h | 52 ++ 2 files changed, 65 insertions(+) create mode 100644 include/dt-bindings/c

Re: [U-Boot] [PATCH 2/2] ARM: keystone2: Add support for getting external clock dynamically

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 04:58:26PM +0530, Lokesh Vutla wrote: > One some keystone2 platforms like K2G ICE, there is an option > to switch between 24MHz or 25MHz as sysclk. But the existing > driver assumes it is always 24MHz. Add support for getting > all reference clocks dynamically by reading bo

[U-Boot] [PATCH 5/5] mips: bmips: enable bcm6345-reset driver for all BMIPS boards

2017-05-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- configs/comtrend_ar5387un_ram_defconfig | 3 +++ configs/comtrend_vr3032u_ram_defconfig | 3 +++ configs/huawei_hg556a_ram_defconfig | 3 +++ configs/sfr_nb4-ser_ram_defconfig | 3 +++ 4 files changed, 12 insertions(+) diff --git a/configs/com

[U-Boot] [PATCH 5/5] mips: bmips: enable bcm6345-clk driver for all BMIPS boards

2017-05-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- configs/comtrend_ar5387un_ram_defconfig | 1 + configs/comtrend_vr3032u_ram_defconfig | 1 + configs/huawei_hg556a_ram_defconfig | 1 + configs/sfr_nb4-ser_ram_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/configs/comtrend_ar5

[U-Boot] [PATCH 3/3] mips: bmips: add NeufBox 4 (Sercomm) board

2017-05-03 Thread Álvaro Fernández Rojas
This serves as an example for bcm6358-leds. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/sfr,nb4-ser.dts | 93 +++ board/sfr/nb4_ser/Kconfig | 12 + board/sfr/nb4_ser/MAINTAINERS | 6 +++ board/sfr/nb4_ser/Makefile| 5 +

[U-Boot] [PATCH 1/3] dm: led: add BCM6358 led driver

2017-05-03 Thread Álvaro Fernández Rojas
This driver is a simplified version of linux/drivers/leds/leds-bcm6358.c Signed-off-by: Álvaro Fernández Rojas --- drivers/led/Kconfig | 7 ++ drivers/led/Makefile | 1 + drivers/led/led_bcm6358.c | 227 ++ 3 files changed, 235 insertion

[U-Boot] [PATCH 2/5] mips: bmips: add bcm6345-rst driver support for BCM6358

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 resets. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6358.dtsi | 7 +++ include/dt-bindings/reset/bcm6358-reset.h | 21 + 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/reset/bcm6358

[U-Boot] [PATCH 1/5] dm: led: add BCM6328 led driver

2017-05-03 Thread Álvaro Fernández Rojas
This driver is a simplified version of linux/drivers/leds/leds-bcm6328.c, simplified to remove HW leds and blink fallbacks. Signed-off-by: Álvaro Fernández Rojas --- drivers/led/Kconfig | 7 ++ drivers/led/Makefile | 1 + drivers/led/led_bcm6328.c | 262 +++

[U-Boot] [PATCH 2/3] mips: bmips: add bcm6358-led driver support for BCM6358

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 serial leds. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6358.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6358.dtsi b/arch/mips/dts/brcm,bcm6358.dtsi index 4c94555..edd0002 100644 --- a/arch/mips/dts

[U-Boot] [PATCH 4/5] mips: bmips: add Comtrend AR-5387un bcm6328-leds

2017-05-03 Thread Álvaro Fernández Rojas
This board has several LEDs attached to its BCM6328 led controller. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/comtrend,ar-5387un.dts| 30 ++ configs/comtrend_ar5387un_ram_defconfig | 4 2 files changed, 34 insertions(+) diff --git a/arch/mips/

[U-Boot] [PATCH 1/5] dm: clk: add BCM6345 clock driver

2017-05-03 Thread Álvaro Fernández Rojas
This is a simplified version of linux/arch/mips/bcm63xx/clk.c Signed-off-by: Álvaro Fernández Rojas --- drivers/clk/Kconfig | 8 + drivers/clk/Makefile | 1 + drivers/clk/clk_bcm6345.c | 78 +++ 3 files changed, 87 insertions(+) creat

[U-Boot] [PATCH 4/5] mips: bmips: add bcm6345-rst driver support for BCM63268

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm63268.dtsi | 7 +++ include/dt-bindings/reset/bcm63268-reset.h | 32 ++ 2 files changed, 39 insertions(+) create mode 100644 include/dt-bindings/re

[U-Boot] [PATCH 0/5] dm: led: add BCM6328 led support

2017-05-03 Thread Álvaro Fernández Rojas
BCM6328 supports controlling LEDs both by using the GPIO controller and the LED controller. However, LED controller allows HW blinking and supports serial LEDs. Álvaro Fernández Rojas (5): dm: led: add BCM6328 led driver mips: bmips: add bcm6328-led driver support for BCM6328 mips: bmips: ad

[U-Boot] [PATCH 3/5] mips: bmips: add bcm6345-clk driver support for BCM6328

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6328.dtsi | 7 +++ include/dt-bindings/clock/bcm6328-clock.h | 25 + 2 files changed, 32 insertions(+) create mode 100644 include/dt-bindings/clock/bcm

[U-Boot] [PATCH 5/5] mips: bmips: add Comtrend VR-3032u bcm6328-leds

2017-05-03 Thread Álvaro Fernández Rojas
This board has several LEDs attached to its BCM6328 led controller. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/comtrend,vr-3032u.dts| 43 ++ configs/comtrend_vr3032u_ram_defconfig | 4 2 files changed, 47 insertions(+) diff --git a/arch/mip

[U-Boot] [PATCH 0/5] dm: rst: add BCM6345 reset controller support

2017-05-03 Thread Álvaro Fernández Rojas
Broadcom MIPS SoCs have reset controllers which supports asserting and deasserting each peripheral controller. Checking reset status is not supported, which is why delays are used. Álvaro Fernández Rojas (5): dm: reset: add BCM6345 reset driver mips: bmips: add bcm6345-rst driver support for B

[U-Boot] [PATCH 3/5] mips: bmips: add bcm6345-rst driver support for BCM6328

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 32 clocks. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6328.dtsi | 7 +++ include/dt-bindings/reset/bcm6328-reset.h | 24 2 files changed, 31 insertions(+) create mode 100644 include/dt-bindings/reset/bcm6

[U-Boot] [PATCH 0/3] dm: led: add BCM6358 serial leds support

2017-05-03 Thread Álvaro Fernández Rojas
BCM6358 supports controlling serial LEDs (74x164) both by using spi-gpio or its LEDs controller. Álvaro Fernández Rojas (3): dm: led: add BCM6358 led driver mips: bmips: add bcm6358-led driver support for BCM6358 mips: bmips: add NeufBox 4 (Sercomm) board arch/mips/dts/brcm,bcm6358.dtsi

[U-Boot] [PATCH 2/5] mips: bmips: add bcm6328-led driver support for BCM6328

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 24 LEDs and supports HW blinking and serial leds. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6328.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6328.dtsi b/arch/mips/dts/brcm,bcm6328.dtsi index 30c2ee8..

[U-Boot] [PATCH 1/5] dm: reset: add BCM6345 reset driver

2017-05-03 Thread Álvaro Fernández Rojas
This is a simplified version of linux/arch/mips/bcm63xx/reset.c Signed-off-by: Álvaro Fernández Rojas --- drivers/reset/Kconfig | 6 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-bcm6345.c | 89 +++ 3 files changed, 96 insertions(+

[U-Boot] [PATCH 3/5] mips: bmips: add bcm6328-led driver support for BCM63268

2017-05-03 Thread Álvaro Fernández Rojas
This driver can control up to 24 LEDs and supports HW blinking and serial leds. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm63268.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/brcm,bcm63268.dtsi b/arch/mips/dts/brcm,bcm63268.dtsi index 3eda77

[U-Boot] [PATCH 5/5] mips: bmips: add Huawei HG556a gpio-leds

2017-05-03 Thread Álvaro Fernández Rojas
This board has several LEDs attached to gpio0. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/huawei,hg556a.dts | 73 + configs/huawei_hg556a_ram_defconfig | 4 ++ 2 files changed, 77 insertions(+) diff --git a/arch/mips/dts/huawei,hg556a.dts b/

[U-Boot] [PATCH 4/5] mips: bmips: add bcm6345-gpio driver support for BCM63268

2017-05-03 Thread Álvaro Fernández Rojas
This SoC has one gpio bank divided into two 32 bit registers, with a total of 52 GPIOs. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm63268.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/dts/brcm,bcm63268.dtsi b/arch/mips/dts/brcm,bcm632

[U-Boot] [PATCH 1/5] dm: gpio: add BCM6345 gpio driver

2017-05-03 Thread Álvaro Fernández Rojas
This driver is based on linux/arch/mips/bcm63xx/gpio.c, simplified to allow defining one or two independent banks for each Broadcom SoC. Signed-off-by: Álvaro Fernández Rojas --- drivers/gpio/Kconfig| 6 +++ drivers/gpio/Makefile | 1 + drivers/gpio/bcm6345_gpio.c | 125 +++

[U-Boot] [PATCH 0/5] dm: gpio: add BMIPS gpio support

2017-05-03 Thread Álvaro Fernández Rojas
Broadcom MIPS SoCs have one or two GPIO banks, depending on the number of gpios present: BCM6345 => 16 GPIOs / 1 bank BCM6328 => 32 GPIOs / 1 bank BCM6358 => 40 GPIOs / 2 banks BCM63268 => 52 GPIOs / 2 banks typedef struct GpioControl { uint32 GPIODirHi; /* 0 */ uint32 GPIODi

[U-Boot] [PATCH 3/5] mips: bmips: add bcm6345-gpio driver support for BCM6328

2017-05-03 Thread Álvaro Fernández Rojas
This SoC has one gpio bank with a total of 32 GPIOs. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6328.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6328.dtsi b/arch/mips/dts/brcm,bcm6328.dtsi index b287239..30c2ee8 100644 --- a/arch/m

[U-Boot] [PATCH 2/5] mips: bmips: add bcm6345-gpio driver support for BCM6358

2017-05-03 Thread Álvaro Fernández Rojas
This SoC has one gpio bank divided into two 32 bit registers, with a total of 40 GPIOs. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6358.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6358.dtsi b/arch/mips/dts/brcm,bcm6358.

Re: [U-Boot] [PATCH 1/8] dm: mmc: Don't re-init when accessing environment

2017-05-03 Thread Jean-Jacques Hiblot
Hi Simon, On 03/05/2017 04:35, Simon Glass wrote: Hi, On 28 April 2017 at 18:27, Simon Glass wrote: Hi Jean-Jacques, On 24 April 2017 at 02:55, Jean-Jacques Hiblot wrote: Hi Simon, On 24/04/2017 04:02, Simon Glass wrote: With driver model MMC is probed automatically when needed. We shou

Re: [U-Boot] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Jagan Teki
On Wed, May 3, 2017 at 5:48 PM, Olliver Schinagl wrote: > This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash > storage. > https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ > > It is a assembly variant of the regular Lime2 but featuring eMMC for > storage.

Re: [U-Boot] [PATCH 3/3] spl: dfu: reduce spl-dfu MLO size

2017-05-03 Thread B, Ravi
Hi Tom >> >> >>OK. I think we need to introduce SPL_DFU_xxx Kconfig options, and >> >>use >> >>CONFIG_IS_ENABLED(DFU_xxx) so that we will get things enabled/disabled >> >>(and discarded) as needed. >> >> >Ok, will do. >> >> Correct me if I am wrong, I need understand if we introduce say >>

Re: [U-Boot] [PATCH 3/3] spl: dfu: reduce spl-dfu MLO size

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 08:36:31AM +, B, Ravi wrote: > Tom > > >>> > >>> Yes you are correct. > >>> But what is happening here is, the CONFIG_DFU_ selected > >>> through Kconfig/Menuconfig is applicable for both SPL and U-Boot. > >>> Hence CONFIG_DFU_MMC/NA > >ND/SF gets compiled for SPL as

Re: [U-Boot] [PATCH 3/3] arm: am33xx: Add support for mulitiple PLL input frequencies

2017-05-03 Thread Tom Rini
On Tue, May 02, 2017 at 07:40:26PM +0530, Lokesh Vutla wrote: > am335x supports various sysclk frequencies which can be determined > using sysboot pins. PLLs should be configures based on this > sysclk frequency. Add PLL configurations for all supported > frequencies. > > Signed-off-by: Lokesh Vu

Re: [U-Boot] [PATCH 2/3] board: am335x: Introduce scale_vcores

2017-05-03 Thread Tom Rini
On Tue, May 02, 2017 at 07:40:25PM +0530, Lokesh Vutla wrote: > Update voltages before programming plls. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 1/3] arm: am33xx: Fix MPU opp selection

2017-05-03 Thread Tom Rini
On Tue, May 02, 2017 at 07:40:24PM +0530, Lokesh Vutla wrote: > Update MPU frequencies and voltages as per the latest > DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4. > Below is the consolidated data: > > MPU values for PG 2.0 and later(Package ZCZ and ZCE): > > -

[U-Boot] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl --- Note: for the board to work p

[U-Boot] Pull request: u-boot-spi/master

2017-05-03 Thread Jagan Teki
Hi Tom, Please take this PR. thanks! Jagan. The following changes since commit a63d800196ebee59b0f8ff924f67843cd597a8c1: Prepare v2017.05-rc3 (2017-05-01 19:54:41 -0400) are available in the git repository at: git://git.denx.de/u-boot-spi.git master for you to fetch changes up to 2f54205

Re: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2017-05-03 Thread Matthew Gorski
Great Simon! That would be very appreciated! I look forward to your​ results. Thanks for all the guidance. If I have a servo board with serial I'm sure I could see what's going on behind the scenes ;) On May 2, 2017 10:40 PM, "Simon Glass" wrote: Hi Matthew, On 2 May 2017 at 18:51, Matthew

Re: [U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support

2017-05-03 Thread Tom Rini
On Wed, May 03, 2017 at 12:23:49PM +0530, Jagan Teki wrote: > On Wed, Apr 26, 2017 at 12:57 AM, Fabio Estevam wrote: > > Hi Jagan, > > > > On Tue, Apr 25, 2017 at 3:35 PM, Jagan Teki > > wrote: > >> > >>> This isn't a limitation, all the defconfigs on various boards follows > >>> the same but ex

[U-Boot] [PATCH 1/2] ARM: k2g: Add support for dynamic programming of PLL based on SYSCLK

2017-05-03 Thread Lokesh Vutla
K2G supports various sysclk frequencies which can be determined using sysboot pins. PLLs should be configured based on this sysclock frequency. Add PLL configurations for all supported sysclk frequencies. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/include/mach/clock-k2g.h| 4 +-

[U-Boot] [PATCH 2/2] ARM: keystone2: Add support for getting external clock dynamically

2017-05-03 Thread Lokesh Vutla
One some keystone2 platforms like K2G ICE, there is an option to switch between 24MHz or 25MHz as sysclk. But the existing driver assumes it is always 24MHz. Add support for getting all reference clocks dynamically by reading boot pins. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/cloc

[U-Boot] [PATCH 0/2] ARM: k2g: Add support for dynamic programming of PLL

2017-05-03 Thread Lokesh Vutla
As k2g supports various sysclk frequencies, this series support PLL configuration for all supported sysclk frequencies. This series depends on Franklin's K2G ICE support series[1] [1] https://lists.denx.de/pipermail/u-boot/2017-March/282913.html Lokesh Vutla (2): ARM: k2g: Add support for dyna

[U-Boot] [PATCH 4/5] armv8: Add workaround for USB erratum A-009008

2017-05-03 Thread yinbo . zhu
From: Suresh Gupta USB High Speed (HS) EYE Height Adjustment This patch is adding the erratum for LS1043 and LS2080 SoCs. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo.zhu --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 26 ++ arch/

[U-Boot] [PATCH 5/5] armv8/fsl-layerscape: add dwc3 gadget driver support

2017-05-03 Thread yinbo . zhu
From: Rajat Srivastava Implements the dwc3 gadget driver support for LS1043 platform, and performs below operations: 1. Enables snooping support for DWC3 controller. 2. Enables cache coherency in LS1043 platform. Signed-off-by: Rajat Srivastava Signed-off-by: Rajesh Bhagat Signed-off-by: yinbo

[U-Boot] [PATCH 3/5] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-05-03 Thread yinbo . zhu
From: Rajesh Bhagat Add USB EHCI support for ls1012aqds platform Signed-off-by: Rajat Srivastava Signed-off-by: Rajesh Bhagat --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 1 + include/configs/ls1012aqds.h | 2 ++ include/usb/ehci-ci.h

[U-Boot] [PATCH 2/5] usb: ums: support multiple controllers using controller_index

2017-05-03 Thread yinbo . zhu
From: Rajesh Bhagat Adds a new field in fsg_common namely controller_index to support multiple controllers usb gadget support. Signed-off-by: Rajat Srivastava Signed-off-by: Rajesh Bhagat Acked-by: Lukasz Majewski --- cmd/usb_mass_storage.c | 2 +- drivers/usb/gadget/f_mass_sto

[U-Boot] [PATCH 1/5] usb: dwc3: Add helper functions to enable snooping and burst settings

2017-05-03 Thread yinbo . zhu
From: Rajat Srivastava Adds helper functions to enable snooping and outstanding burst beat settings. Signed-off-by: Rajat Srivastava Signed-off-by: Rajesh Bhagat --- drivers/usb/dwc3/core.c | 45 + drivers/usb/dwc3/core.h | 7 +++ 2 files chang

Re: [U-Boot] [PATCH v2 2/5] rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block

2017-05-03 Thread Dr. Philipp Tomsich
> On 03 May 2017, at 12:06, Simon Glass wrote: > > Hi Philipp, > > On 29 April 2017 at 21:48, Simon Glass > wrote: >> >> Hi Philipp, >> >> On 28 April 2017 at 09:11, Philipp Tomsich >> wrote: >>> This adds a simple driver for reading the efuse block of the RK3399.

Re: [U-Boot] [U-Boot 3/3] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-05-03 Thread Simon Glass
Hi Eddie, On 2 May 2017 at 04:37, Eddie Cai wrote: > Hi Simon > 2017-03-20 10:30 GMT+08:00 Simon Glass : >> Hi Eddie. >> >> On 15 March 2017 at 01:56, Eddie Cai wrote: >>> this patch enable rockusb support on rk3288 based device. >>> >>> Signed-off-by: Eddie Cai >>> --- >>> include/configs/rk3

Re: [U-Boot] [PATCH v2 2/5] rockchip: efuse: add (misc) driver for RK3399 non-secure efuse block

2017-05-03 Thread Simon Glass
Hi Philipp, On 29 April 2017 at 21:48, Simon Glass wrote: > > Hi Philipp, > > On 28 April 2017 at 09:11, Philipp Tomsich > wrote: > > This adds a simple driver for reading the efuse block of the RK3399. > > It should be easy enough to add drivers for other devices (e.g. the > > RK3328, RK3368, e

[U-Boot] [PATCH 4/4] mx25pdk: Set the eSDHC PER clock to 48 MHz

2017-05-03 Thread Benoît Thébaudeau
The maximum SD clock frequency in High Speed mode is 50 MHz. This change makes it possible to get 48 MHz from the USB PLL (240 MHz / 5 / 1) instead of the previous 33.25 MHz from the AHB clock (133 MHz / 2 / 2). Signed-off-by: Benoît Thébaudeau --- board/freescale/mx25pdk/mx25pdk.c | 6 ++ 1

[U-Boot] [PATCH 2/4] mx25: Fix imx_get_perclk()

2017-05-03 Thread Benoît Thébaudeau
imx_get_perclk() used the AHB clock as the clock source for all PER clocks, but the USB PLL output can also be a PER clock source if the corresponding PER CLK MUX bit is set in CCM.MCR. Signed-off-by: Benoît Thébaudeau --- arch/arm/cpu/arm926ejs/mx25/generic.c | 11 ++- 1 file changed, 1

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: Allow all supported prescaler values

2017-05-03 Thread Benoît Thébaudeau
On i.MX, SYSCTL.SDCLKFS may be set to 0 in order to make the SD clock frequency prescaler divide by 1 in SDR mode. In DDR mode, the prescaler can divide by up to 512. Allow both of these settings. The maximum SD clock frequency in High Speed mode is 50 MHz. On i.MX25, this change makes it possible

[U-Boot] [PATCH 3/4] mx25: Add function to set PER clocks

2017-05-03 Thread Benoît Thébaudeau
Introduce the imx_set_perclk() function to make it possible to set the PER clocks. Signed-off-by: Benoît Thébaudeau --- arch/arm/cpu/arm926ejs/mx25/generic.c | 19 +++ arch/arm/include/asm/arch-mx25/clock.h | 1 + 2 files changed, 20 insertions(+) diff --git a/arch/arm/cpu/arm

Re: [U-Boot] [PATCH 3/3] spl: dfu: reduce spl-dfu MLO size

2017-05-03 Thread B, Ravi
Tom >>> >>> Yes you are correct. >>> But what is happening here is, the CONFIG_DFU_ selected >>> through Kconfig/Menuconfig is applicable for both SPL and U-Boot. >>> Hence CONFIG_DFU_MMC/NA >ND/SF gets compiled for SPL as well, which needs run_command(). Actually >CONFIG_DFU_MMC/NAND/etc is n

  1   2   >