Re: [U-Boot] [PATCH resend v2 00/13] sunxi: Add support for R40 SoC

2017-04-20 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 10:20:16AM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This is a resend of my Allwinner R40 SoC support series v2. > This is rebased on v2017.05-rc2. Maxime's ack for the first > two patches have been added, and the defconfig has been > regenerated which moved the CONFIG_

Re: [U-Boot] [PATCH v2 00/14] STiH410-B2260: add reset, usb and fastboot support

2017-04-20 Thread Patrice CHOTARD
fyi , a v3 has been send On 03/22/2017 10:54 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > This series adds : > _ add reset driver > _ update existing sdhci driver to use reset framework > _ add usb phy driver > _ add ehci support > _ add ohci support

Re: [U-Boot] [PATCH 5/7] rockchip: rk3368: Add initial support for RK3368 based GeekBox

2017-04-20 Thread Andy Yan
Hi Andreas: On 2017年04月21日 10:59, Andreas Färber wrote: Hi Andy, Sorry for forgetting about this, and thank you for picking it up. Am 21.04.2017 um 04:32 schrieb Andy Yan: From: Andreas Färber The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with bas

Re: [U-Boot] AM335x Falcon Mode

2017-04-20 Thread Heiko Schocher
Hello Ayoub, Am 20.04.2017 um 16:35 schrieb ayoub.z...@embexus.com: Hi Andy, Thanks for the answer, I figured out what the problem is, in the fact I was using a zImage, using an uImage format solve the problem :-) It should maybe added to the documentation ;-) Patches are welcome! ;-) bye,

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Am 21.04.2017 um 01:23 schrieb Andreas Färber: > Hi, > > Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but > not into full U-Boot. I am using the old documented way of dd'ing to > sector 256 on SD (doc/README.rockchip). > > Looking at include/configs/rk3288_common.h I also tri

Re: [U-Boot] [PATCH v2 0/8] drivers: i2c: davinci_i2c: Convert driver to DM

2017-04-20 Thread Vignesh R
Hi Franklin, On Thursday 20 April 2017 08:55 PM, Franklin S Cooper Jr wrote: > This patch series converts the davinci i2c driver to use device model. > This updated driver has been verified on both Keystone K2G and Keystone > K2L evms by performing several i2c operations in U-boot prompt. > > Som

Re: [U-Boot] [PATCH 0/4] Add Basic support for RK808

2017-04-20 Thread Jacob Chen
ok - -wrong title.. It's Add Basic support for RK818 2017-04-21 11:34 GMT+08:00 Jacob Chen : > > The RK818 chip is a power management IC for multimedia and handheld > devices. It contains the following components: > > - Regulators > - RTC > - Clkout > - battery support > > This series patch just

[U-Boot] [PATCH 4/4] power: regulator: rk808: add rk818 support

2017-04-20 Thread Jacob Chen
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. TODO: I don't know how to deal with BOOST and LDO9, so just ignore them now. Signed-off-by: Jacob Chen --- drivers/power/regulator/rk808

[U-Boot] [PATCH 2/4] power: pmic: rk808: add RK818 support

2017-04-20 Thread Jacob Chen
The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld devices. For boards use rk818, the input current should be set in the early stage, before ddr initialization. To use rk818,below configs should be enabled: CONFIG_SPL_I2C_SUPPORT=y CONFIG_SPL_POWER_SUPPORT=

[U-Boot] [PATCH 1/4] power: pmic: append rk818 regs to rk808

2017-04-20 Thread Jacob Chen
Both RK808 and RK818 chips are using a similar register map, so we can reuse them. I have also add reg prefix to exist registers, to keep them same style. Signed-off-by: Jacob Chen --- drivers/power/regulator/rk808.c | 18 ++--- include/power/rk808_pmic.h | 164 +

[U-Boot] [PATCH 3/4] power: regulator: rk808: replace vsel_bits with vsel_mask

2017-04-20 Thread Jacob Chen
Using mask is more flexible than bits. Signed-off-by: Jacob Chen --- drivers/power/regulator/rk808.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/drivers/power/regulator/rk808.c b/drivers/power/regulator/rk808.c index f1a00c5..441

[U-Boot] [PATCH 0/4] Add Basic support for RK808

2017-04-20 Thread Jacob Chen
The RK818 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clkout - battery support This series patch just give it a basic support, to make rk818 board work. Jacob Chen (4): power: pmic: append rk818 regs to rk808

[U-Boot] [RFC,v2 2/2] NVMe: add nvme commands

2017-04-20 Thread Zhikang Zhang
Add nvme commands in U-Boot command line. 1. "nvme list" - show all available NVMe blk devices 2. "nvme info" - show current or a specific NVMe blk device 3. "nvme device" - show or set current device 4. "nvme part" - print partition table 5. "nvme read" - read data from NVMe blk device 6. "nvme w

[U-Boot] [RFC,v2 1/2] NVMe: add NVMe driver support

2017-04-20 Thread Zhikang Zhang
Add Support of devices that follow the NVM Express standard basic functions: nvme Read/Write Signed-off-by: Zhikang Zhang Signed-off-by: Wenbin Song --- Changes for v2: - add UCLASS_NVME (drivers/block/nvme-uclasss.c) - remove the support of non-BLK - remove common/nvme.

[U-Boot] (no subject)

2017-04-20 Thread Zhikang Zhang
Test for NVMe driver: platform: LS1046AQDS NVMe SSD: Intel P3700 400G The test logs are as follow: => nvme list Device 0: Vendor: 0x8086 Rev: 8DV10131 Prod: CVFT535600LS400BGN Type: Hard Disk Capacity: 381554.0 MB = 372.6 GB (781422768 x

Re: [U-Boot] [PATCH v4 00/11] Add mipi dsi display support for rockchip soc.

2017-04-20 Thread Simon Glass
Hi Eric, On 19 April 2017 at 22:45, Eric Gao wrote: > Add mipi dsi display support for rockchip soc. > > Changes in v4: > -Clear irrelevant change > -Clear irrelevant change. > -Move this patch to an early stage. > > Changes in v3: > -Split GRF changes as a single patch > -Split mipi dsi driver

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Simon Glass
Hi Andreas, On 20 April 2017 at 20:54, Andreas Färber wrote: > Am 21.04.2017 um 04:43 schrieb Andreas Färber: >> Am 21.04.2017 um 04:24 schrieb Andreas Färber: >>> Hi Simon, >>> >>> Am 21.04.2017 um 04:10 schrieb Simon Glass: I just tested mainline with those two changes and it works for me.

Re: [U-Boot] [PATCH 5/7] rockchip: rk3368: Add initial support for RK3368 based GeekBox

2017-04-20 Thread Andreas Färber
Hi Andy, Sorry for forgetting about this, and thank you for picking it up. Am 21.04.2017 um 04:32 schrieb Andy Yan: > From: Andreas Färber > > The GeekBox is a TV box from GeekBuying, based on an MXM3 module. > The module can be used with base boards such as the GeekBox Landingship. > > This a

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Am 21.04.2017 um 04:43 schrieb Andreas Färber: > Am 21.04.2017 um 04:24 schrieb Andreas Färber: >> Hi Simon, >> >> Am 21.04.2017 um 04:10 schrieb Simon Glass: >>> I just tested mainline with those two changes and it works for me. I >>> pushed my patch to u-boot-rockchip/firefly-working. Can you try

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Am 21.04.2017 um 04:24 schrieb Andreas Färber: > Hi Simon, > > Am 21.04.2017 um 04:10 schrieb Simon Glass: >> On 20 April 2017 at 18:47, Andreas Färber wrote: >>> Am 21.04.2017 um 02:34 schrieb Andreas Färber: Am 21.04.2017 um 01:44 schrieb Simon Glass: > On 20 April 2017 at 17:23, Andre

[U-Boot] [PATCH 7/7] rockchip: rk3368: add Sheep board

2017-04-20 Thread Andy Yan
Sheep board is designed by Rockchip as a EVB for rk3368. Currently it is able to boot a linux kernel and system to console with the miniloader run as fist level loader. Signed-off-by: Andy Yan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3368-sheep.dts | 2

[U-Boot] [PATCH 6/7] rockchip: rk3368: Add PX5 Evaluation board

2017-04-20 Thread Andy Yan
PX5 EVB is designed by Rockchip for automotive field with integrated CVBS (TP2825) / MIPI DSI / CSI / LVDS HDMI video input/output interface, audio codec ES8396, WIFI / BT (on RTL8723BS), Gsensor BMA250E and light&proximity sensor STK3410. Signed-off-by: Andy Yan --- arch/arm/dts/Makefile

[U-Boot] [PATCH 5/7] rockchip: rk3368: Add initial support for RK3368 based GeekBox

2017-04-20 Thread Andy Yan
From: Andreas Färber The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship. This adds basic support to chain-load U-Boot from Rockchip's miniloader. $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot

[U-Boot] [PATCH 4/7] rockchip: rk3368: Add sysreset driver

2017-04-20 Thread Andy Yan
Add sysreset driver to reset rk3368 SOC. Signed-off-by: Andy Yan --- drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_rk3368.c | 58 ++ 2 files changed, 59 insertions(+) create mode 100644 drivers/sysreset/sysreset_rk3368.c diff --git a/

[U-Boot] [PATCH 3/7] rockchip: rk3368: Add core start-up code for RK3368

2017-04-20 Thread Andy Yan
From: Andreas Färber The RK3368 is an octa-core Cortex-A53 SoC from Rockchip. This adds basic support to chain-load U-Boot from Rockchip's miniloader. Signed-off-by: Andreas Färber Signed-off-by: Andy Yan --- arch/arm/dts/rk3368.dtsi | 1090 + arc

[U-Boot] [PATCH 2/7] rockchip: rk3368: Add pinctrl driver

2017-04-20 Thread Andy Yan
Add driver to support iomux setup for the most commonly used peripherals on rk3368. Signed-off-by: Andy Yan --- arch/arm/include/asm/arch-rockchip/grf_rk3368.h | 443 drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/rockchip/Makefile

[U-Boot] [PATCH 1/7] rockchip: rk3368: Add clok drvier

2017-04-20 Thread Andy Yan
Add driver to setup the various PLLs and peripheral clocks on the RK3368. Signed-off-by: Andy Yan --- arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 110 + drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk_rk3368.c | 296 +

[U-Boot] [PATCH 0/7] Add basic support for Rockchip RK3368 SOC

2017-04-20 Thread Andy Yan
The RK3368 is an octa-core Cortex-A53 SoC from Rockchip. This adds basic support to chain-load U-Boot from Rockchip's miniloader. Andreas Färber (2): rockchip: rk3368: Add core start-up code for RK3368 rockchip: rk3368: Add initial support for RK3368 based GeekBox Andy Yan (5): rockchip:

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Hi Simon, Am 21.04.2017 um 04:10 schrieb Simon Glass: > On 20 April 2017 at 18:47, Andreas Färber wrote: >> Am 21.04.2017 um 02:34 schrieb Andreas Färber: >>> Am 21.04.2017 um 01:44 schrieb Simon Glass: On 20 April 2017 at 17:23, Andreas Färber wrote: > Using -rc2 with firefly-rk3288 de

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Simon Glass
Hi Andreas, On 20 April 2017 at 18:47, Andreas Färber wrote: > Am 21.04.2017 um 02:34 schrieb Andreas Färber: >> Hi Simon, >> >> Am 21.04.2017 um 01:44 schrieb Simon Glass: >>> On 20 April 2017 at 17:23, Andreas Färber wrote: Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Simon Glass
Hi Andreas, On Apr 20, 2017 18:34, "Andreas Färber" wrote: Hi Simon, Am 21.04.2017 um 01:44 schrieb Simon Glass: > On 20 April 2017 at 17:23, Andreas Färber wrote: >> Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but >> not into full U-Boot. I am using the old documented wa

[U-Boot] [PATCH v2] QE: add QE support on SD boot

2017-04-20 Thread Zhao Qiang
modify u_qe_init to upload QE firmware from SD card when it is SD boot Signed-off-by: Zhao Qiang --- Changes for v2: - fix issue of memory leak drivers/qe/qe.c | 37 - include/configs/ls1043a_common.h | 2 ++ include/configs/ls1043ar

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Am 21.04.2017 um 02:34 schrieb Andreas Färber: > Hi Simon, > > Am 21.04.2017 um 01:44 schrieb Simon Glass: >> On 20 April 2017 at 17:23, Andreas Färber wrote: >>> Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but >>> not into full U-Boot. I am using the old documented way of d

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Hi Simon, Am 21.04.2017 um 01:44 schrieb Simon Glass: > On 20 April 2017 at 17:23, Andreas Färber wrote: >> Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but >> not into full U-Boot. I am using the old documented way of dd'ing to >> sector 256 on SD (doc/README.rockchip). >> >

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Simon Glass
Hi Andreas, On 20 April 2017 at 17:23, Andreas Färber wrote: > Hi, > > Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but > not into full U-Boot. I am using the old documented way of dd'ing to > sector 256 on SD (doc/README.rockchip). > > Looking at include/configs/rk3288_commo

Re: [U-Boot] [ANN] U-Boot v2017.05-rc2 released

2017-04-20 Thread Andreas Färber
Hi, Using -rc2 with firefly-rk3288 defconfig I can only boot into SPL but not into full U-Boot. I am using the old documented way of dd'ing to sector 256 on SD (doc/README.rockchip). Looking at include/configs/rk3288_common.h I also tried putting u-boot.img on a FAT partition, to no effect. v201

[U-Boot] [PATCH] armv8: layerscape: Fix DDR size calcuation for SPL build

2017-04-20 Thread York Sun
Commit 088454cd dropped return value from initram(), setting gd->ram_size directly. Three boards were missed for SPL boot. Signed-off-by: York Sun --- board/freescale/ls1043aqds/ddr.c | 4 +++- board/freescale/ls1046aqds/ddr.c | 4 +++- board/freescale/ls1046ardb/ddr.c | 4 +++- 3 files changed

Re: [U-Boot] [PATCH v1 1/2] rockchip: dts: Clean up graffiti in rk3399-sdram-ddr3-1333.dtsi

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:01, Simon Glass wrote: > On 17 April 2017 at 09:50, Philipp Tomsich > wrote: >> The DDR3-1333 timings for the RK3399-Q7 (Puma) has some unintended >> left-over comments in them. This change cleans the file up. >> >> Signed-off-by: Philipp Tomsich >> --- >> >> arch/arm/dts/

Re: [U-Boot] rockchip: enable debug uart

2017-04-20 Thread Simon Glass
On 18 April 2017 at 18:12, Simon Glass wrote: > On 18 April 2017 at 05:17, Eddie Cai wrote: >> enable debug uart for rk3288 and print something to let people know >> where we are >> >> Signed-off-by: Eddie Cai >> --- >> arch/arm/mach-rockchip/rk3288-board-spl.c | 6 ++ >> 1 file changed, 2

Re: [U-Boot] [PATCH v4 4/7] rockchip: spi: rewrite rkspi_set_clk for a more conservative baudrate setting

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > The baudrate in rkspi was calculated by using an integer division > (which implicitly discarded any fractional result), then rounding to > an even number and finally clamping to 0xfffe using a bitwise AND > operator. This introduced two issues:

Re: [U-Boot] [PATCH 3/5] rockchip: clk: rk3188: add ciu_clk entry for eMMC/SDMMC/SDIO

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:34, Simon Glass wrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> The genunie bus clock is sclk_x for eMMC/SDMMC/SDIO, add support for >> it. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> drivers/clk/rockchip/clk_rk3188.c | 12 >> 1 file changed, 12 inser

Re: [U-Boot] [PATCH v4 5/7] rockchip: pinctrl: rk3399: add support for the SPI5 controller

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > This commit adds support for the pin-configuration of the SPI5 > controller of the RK3399 through the following changes: > * grf_rk3399.h: adds definition for configuring the SPI5 pins > in the GPIO2C group > * periph.h: define

Re: [U-Boot] [PATCH v1 7/8] rockchip: mkimage: remove placeholder functions from rkimage

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: >> The imagetool framework checks whether function pointer for the verify, >> print and extract actions are available and will will handle their >> absence appropriately. >> >> This change removes

Re: [U-Boot] [PATCH v2] rockchip: dts: evb-rk3399: correct pwm3 polarity

2017-04-20 Thread Simon Glass
On 18 April 2017 at 03:06, Kever Yang wrote: > The pwm3 on evb-rk3399 is used for pwm regulator, need to invert > the polarity to make it work correctly. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- > > Changes in v2: > - commit message description fix > > arch/arm/dts/rk3399-evb

Re: [U-Boot] [PATCH v1 1/8] rockchip: mkimage: rkspi: include the header sector in the SPI size calculation

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: >> >> Our earlier change broke the generation of SPI images, by excluding the >> 2K used for header0 from the size-calculation. >> >> This commit makes sure that these are included before calculati

Re: [U-Boot] [PATCH v1 2/2] rockchip: dts: rk3399-puma: Add DDR3-1600 timings and use for Puma

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:01, Simon Glass wrote: > On 17 April 2017 at 09:50, Philipp Tomsich > wrote: >> With the validation done for DDR3-1600 (i.e. 800 MHz bus clock), we >> add the timings (rk3399-sdram-ddr3-1600.dtsi) and change rk3399-puma.dts >> to use these by default. >> >> Signed-off-by: P

Re: [U-Boot] [PATCH v1 4/8] rockchip: mkimage: rksd: pad SD/MMC images to a full blocksize

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: > > Commit message? > >> Signed-off-by: Philipp Tomsich >> --- >> >> tools/rksd.c | 7 +-- >> 1 file changed, 5 insertions(+), 2 deletions(-) >> > > Acked-by: Simon Glass Applied to u-boot-ro

Re: [U-Boot] [PATCH v4 6/7] rockchip: spi: enable support for the rk_spi driver for the RK3399

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > From: Jakob Unterwurzacher > > The existing Rockchip SPI (rk_spi.c) driver also matches the hardware > block found in the RK3399. This has been confirmed both with SPI NOR > flashes and general SPI transfers on the RK3399-Q7 for SPI1 and SPI5.

Re: [U-Boot] [PATCH v1 3/8] rockchip: mkimage: Update comments for header size

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: >> The calculation of the variable header size in rkcommon_vrec_header >> had been update twice in the earlier series (introducing boot0-style >> images to deal with the alignment of the first inst

Re: [U-Boot] [PATCH v3 2/2] rockchip: video: Makefile: Modify Makefile for rockchip video driver

2017-04-20 Thread Simon Glass
On 17 April 2017 at 21:59, Simon Glass wrote: > On 17 April 2017 at 08:24, Eric Gao wrote: >> Modify Makefile for rockchip video driver according to Kconfig, so that >> source code will not be compiled if not needed. >> >> Signed-off-by: Eric Gao >> --- >> >> drivers/video/rockchip/Makefile | 7

Re: [U-Boot] [PATCH 2/5] rockchip: clk: rk3036: add ciu_clk entry for eMMC/SDIO

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:34, Simon Glass wrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> The genunie bus clock is sclk_x for eMMC/SDIO, add support for it. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> drivers/clk/rockchip/clk_rk3036.c | 5 + >> 1 file changed, 5 insertions(+) > > Acked

Re: [U-Boot] [PATCH v4 7/7] rockchip: spl: rk3399: spi: enable SPL_SPI_LOAD if SPI is enabled for SPL

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > To include the ability to load from an SPI flash in SPL, it's not > sufficient to define SPL_SPI_SUPPORT and SPL_SPI_FLASH_SUPPORT via > Kconfig... so we conditionally define SPL_SPI_LOAD if SPI support > is already enabled for SPL via Kconfig. >

Re: [U-Boot] [PATCH 4/5] rockchip: clk: rk3288: add ciu_clk entry for eMMC/SDMMC/SDIO

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:34, Simon Glass wrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> The genunie bus clock is sclk_x for eMMC/SDMMC/SDIO, add support for >> it. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> drivers/clk/rockchip/clk_rk3288.c | 12 >> 1 file changed, 12 inser

Re: [U-Boot] [PATCH] rockchip: rk3399: correct memory region

2017-04-20 Thread Simon Glass
On 17 April 2017 at 21:58, Simon Glass wrote: > On 17 April 2017 at 02:42, Kever Yang wrote: >> RK3399 device memory region is 0xf800~0x. >> >> Signed-off-by: Kever Yang >> --- >> >> arch/arm/mach-rockchip/rk3399/rk3399.c | 8 >> 1 file changed, 4 insertions(+), 4 deletions(-

Re: [U-Boot] [PATCH v1 5/8] rockchip: mkimage: clarify header0 initialisation

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: >> This change set adds documentation to the header0 initialisation and >> improves readability for the calculations of various offsets/lengths. >> >> As the U-Boot SPL stage doesn't use any payloa

Re: [U-Boot] [PATCH v2] rockchip: rk3399: use actual dram size

2017-04-20 Thread Simon Glass
On 19 April 2017 at 02:01, Kever Yang wrote: > Since our sdram driver is ready, we can use the actual size > instead of hard code. > > Signed-off-by: Kever Yang > Acked-by: Simon Glass > --- > > Changes in v2: > - fix compile warning of print type not match > > arch/arm/mach-rockchip/rk3399/sdr

Re: [U-Boot] [PATCH v3 1/2] rockchip: video: Kconfig: Add Kconfig for rockchip video driver

2017-04-20 Thread Simon Glass
On 17 April 2017 at 21:59, Simon Glass wrote: > On 17 April 2017 at 08:24, Eric Gao wrote: >> 1. add Kconfig for rockchip video driver, so that video port can be >> selected as needed. >> 2. move VIDEO_ROCKCHIP option to new Kconfig for concision. >> >> Signed-off-by: Eric Gao >> >> --- >> >> co

Re: [U-Boot] [PATCH v4 3/7] rockchip: spi: rk_spi: dynamically select an module input rate

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > The original clock/bitrate selection code for the rk_spi driver was a > bit limited, as it always selected a 99MHz input clock rate (which > would allow for a maximum bitrate of 49.5MBit/s), but returned -EINVAL > if a bitrate higher than 48MHz w

Re: [U-Boot] [PATCH v4 1/7] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > This change adds support for configuring the module clocks for SPI1 and > SPI5 from the 594MHz GPLL. > > Note that the driver (rk_spi.c) always sets this to 99MHz, but the > implemented functionality is more general and will also support > differ

Re: [U-Boot] [PATCH v1 2/8] rockchip: mkimage: rewrite padding calculation for SD/MMC and SPI images

2017-04-20 Thread Simon Glass
On 17 April 2017 at 22:00, Simon Glass wrote: > On 17 April 2017 at 09:48, Philipp Tomsich > wrote: >> In (first) breaking and (then) fixing the rkspi tool, I realised that >> the calculation of the required padding (for the header-size and the >> 2K-in-every-4K SPI layout) was not as self-explai

Re: [U-Boot] [PATCH v4 2/7] rockchip: clk: rk3399: fix off-by one during rate calculation in i2c/spi_set_rate

2017-04-20 Thread Simon Glass
On 20 April 2017 at 14:05, Philipp Tomsich wrote: > For the RK3399, i2c_set_rate (and by extension: our spi_set_rate, > which had been mindlessly following the template of the i2c_set_rate > implementation) miscalculates the rate returned due to a off-by-one > error resulting from the following se

Re: [U-Boot] [PATCH 5/5] rockchip: clk: rk3328: add ciu_clk entry for eMMC/SDMMC

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:34, Simon Glass wrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> The genunie bus clock is sclk_x for eMMC/SDMMC, add support for it. >> >> Signed-off-by: Ziyuan Xu >> --- >> >> drivers/clk/rockchip/clk_rk3328.c | 8 >> 1 file changed, 8 insertions(+) > > A

Re: [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:30, Simon Glass wrote: > On 11 April 2017 at 22:00, Kever Yang wrote: >> Use regulators_enable_boot_on() instead of init regulators one by one, >> the interface can init all the regulators with regulator-boot-on property. >> >> Signed-off-by: Kever Yang >> --- >> >> board

Re: [U-Boot] [PATCH v3 1/7] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-04-20 Thread Simon Glass
On 17 April 2017 at 21:59, Simon Glass wrote: > On 17 April 2017 at 09:43, Philipp Tomsich > wrote: >> This change adds support for configuring the module clocks for SPI1 and >> SPI5 from the 594MHz GPLL. >> >> Note that the driver (rk_spi.c) always sets this to 99MHz, but the >> implemented func

Re: [U-Boot] [PATCH 1/5] mmc: dw_mmc: rockchip: select proper card clock

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:34, Simon Glass wrote: > On 16 April 2017 at 03:44, Ziyuan Xu wrote: >> As you know, biu_clk is used for AMBA AHB/APB interface, ciu_clk is >> used for communication between host and card devices. The real bus clock >> is ciu, so let's rectify it. >> >> Signed-off-by: Ziyua

Re: [U-Boot] [PATCH] mkimage: rockchip: add support for rk3328

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:33, Simon Glass wrote: > On 14 April 2017 at 00:55, Kever Yang wrote: >> Add support for rk3328 package header in mkimage tool. >> >> Signed-off-by: Kever Yang >> --- >> >> tools/rkcommon.c | 1 + >> 1 file changed, 1 insertion(+) >> > > Reviewed-by: Simon Glass Applied

Re: [U-Boot] [PATCH v2] rockchip: tinker: set ethaddr in late init

2017-04-20 Thread Simon Glass
Hi Jonas, On 20 April 2017 at 12:23, Jonas Karlman wrote: > Set ethernet mac address in late init for Tinker Board, > prevents getting a random mac address each boot. > > Read mac address from eeprom, first 6 bytes from m24c08@50. > Same as /etc/init.d/rockchip.sh on Tinker OS. > > Signed-off-by:

Re: [U-Boot] [PATCH 1/2] rockchip: config: rk3399: clean with make savedefconfig

2017-04-20 Thread Simon Glass
On 16 April 2017 at 13:30, Simon Glass wrote: > On 11 April 2017 at 21:54, Kever Yang wrote: >> Clean the evb-rk3399_defconfig with make savedefconfig. >> >> Signed-off-by: Kever Yang >> --- >> >> configs/evb-rk3399_defconfig | 14 +- >> 1 file changed, 5 insertions(+), 9 deletions(

[U-Boot] [PATCH v4 5/7] rockchip: pinctrl: rk3399: add support for the SPI5 controller

2017-04-20 Thread Philipp Tomsich
This commit adds support for the pin-configuration of the SPI5 controller of the RK3399 through the following changes: * grf_rk3399.h: adds definition for configuring the SPI5 pins in the GPIO2C group * periph.h: defines PERIPH_ID_SPI3 through PERIPH_ID_SPI5 * pinctrl_rk3399.c:

[U-Boot] [PATCH v4 7/7] rockchip: spl: rk3399: spi: enable SPL_SPI_LOAD if SPI is enabled for SPL

2017-04-20 Thread Philipp Tomsich
To include the ability to load from an SPI flash in SPL, it's not sufficient to define SPL_SPI_SUPPORT and SPL_SPI_FLASH_SUPPORT via Kconfig... so we conditionally define SPL_SPI_LOAD if SPI support is already enabled for SPL via Kconfig. Signed-off-by: Philipp Tomsich Acked-by: Simon Glass ---

[U-Boot] [PATCH v4 4/7] rockchip: spi: rewrite rkspi_set_clk for a more conservative baudrate setting

2017-04-20 Thread Philipp Tomsich
The baudrate in rkspi was calculated by using an integer division (which implicitly discarded any fractional result), then rounding to an even number and finally clamping to 0xfffe using a bitwise AND operator. This introduced two issues: 1) for very small baudrates (overflowing the 0xfffe range),

[U-Boot] [PATCH v4 3/7] rockchip: spi: rk_spi: dynamically select an module input rate

2017-04-20 Thread Philipp Tomsich
The original clock/bitrate selection code for the rk_spi driver was a bit limited, as it always selected a 99MHz input clock rate (which would allow for a maximum bitrate of 49.5MBit/s), but returned -EINVAL if a bitrate higher than 48MHz was requested. To give us better control over the bitrate (

[U-Boot] [PATCH v4 0/7] rockchip: spi: rk3399: add SPI support for the RK3399

2017-04-20 Thread Philipp Tomsich
This series adds SPI support for the RK3399 (SPI1 and SPI5). This consists of the following individual changes: - clock support for the SPI blocks clocked from GRF (i.e. SPI1, SPI2, SPI 4 and SPI5) - pinctrl for SPI1 and SPI5 - changes the SPI module input clock to 198MHz (instead of 99MHz) for

[U-Boot] [PATCH v4 6/7] rockchip: spi: enable support for the rk_spi driver for the RK3399

2017-04-20 Thread Philipp Tomsich
From: Jakob Unterwurzacher The existing Rockchip SPI (rk_spi.c) driver also matches the hardware block found in the RK3399. This has been confirmed both with SPI NOR flashes and general SPI transfers on the RK3399-Q7 for SPI1 and SPI5. This change adds the 'rockchip,rk3399-spi' string to its co

[U-Boot] [PATCH v4 2/7] rockchip: clk: rk3399: fix off-by one during rate calculation in i2c/spi_set_rate

2017-04-20 Thread Philipp Tomsich
For the RK3399, i2c_set_rate (and by extension: our spi_set_rate, which had been mindlessly following the template of the i2c_set_rate implementation) miscalculates the rate returned due to a off-by-one error resulting from the following sequence of events: 1. calculates 'src_div := src_freq / ta

[U-Boot] [PATCH v4 1/7] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-04-20 Thread Philipp Tomsich
This change adds support for configuring the module clocks for SPI1 and SPI5 from the 594MHz GPLL. Note that the driver (rk_spi.c) always sets this to 99MHz, but the implemented functionality is more general and will also support different clock configurations. X-AffectedPlatforms: RK3399-Q7 Sign

Re: [U-Boot] [PATCH v3 01/15] cmd: cpu: fix NULL cpu feature prints

2017-04-20 Thread Tom Rini
On Tue, Apr 18, 2017 at 10:38:30PM +0200, Álvaro Fernández Rojas wrote: > Commit 740d5d3 added two new features but only one feature name, > which results in NULL prints when device_id feature is selected. > > Before: > HG556a # cpu detail >-1: cpu@0 BCM6358A1 > I

Re: [U-Boot] [PATCH v4 4/4] u-boot.elf: add quiet_cmd_u-boot-elf and cmd_u-boot-elf

2017-04-20 Thread Tom Rini
On Thu, Apr 20, 2017 at 08:36:28PM +0200, Álvaro Fernández Rojas wrote: > This way we can see output about u-boot.elf being built or not. > > Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-20 Thread Dalon Westergreen
On Thu, 2017-04-20 at 07:12 -0700, Dalon Westergreen wrote: > On Wed, 2017-04-19 at 23:58 -0500, Dinh Nguyen wrote: > > > > On Wed, Apr 19, 2017 at 6:21 PM, Dalon Westergreen > > wrote: > > > > > > > > > On Wed, 2017-04-19 at 13:54 -0700, Dalon Westergreen wrote: > > > > > > > > > > > > On We

Re: [U-Boot] [PATCH v4 2/4] u-boot.elf: allow overriding entry symbol

2017-04-20 Thread Tom Rini
On Thu, Apr 20, 2017 at 08:36:26PM +0200, Álvaro Fernández Rojas wrote: > LD gives the following warning when trying to process u-boot-elf.o > warning: cannot find entry symbol __start; defaulting to 8001 > According to gnu-libc the entry symbol for mips is __start and not _start: > ht

[U-Boot] [PATCH v4 09/14] MIPS: add support for Broadcom MIPS BCM6358 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: Add cfi-flash defines. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. - Merge with "fix ioremap for BCM6358" patch. - Add a custom ioremap.h instead of modifying

[U-Boot] [PATCH v4 11/14] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm6328.dtsi | 88 + arch/mips/mach-bmips/Kco

[U-Boot] [PATCH v4 05/14] cmd: cpu: refactor to ensure devices are probed and improve code style

2017-04-20 Thread Álvaro Fernández Rojas
Use uclass_first_device and uclass_next_device in order to avoid exceptions for drivers that aren't probed when cpu ops are requested. Improve code style and fix indentations. Fix incorrect line break when cpu info is not available. Remove unneeded brackets. Signed-off-by: Álvaro Fernández Rojas

[U-Boot] [PATCH v4 10/14] MIPS: add BMIPS Huawei HG556a board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: Add cfi-flash support. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/huawei,hg556a.dts |

[U-Boot] [PATCH v4 13/14] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm63268.dtsi | 88 arch/mips/mach-bmips/Kco

[U-Boot] [PATCH v4 12/14] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,ar-5387un.dts| 27

[U-Boot] [PATCH v4 14/14] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,vr-3032u.dts| 27 ++

[U-Boot] [PATCH v4 03/14] MIPS: allow using generic sysreset drivers

2017-04-20 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: No changes. v3: No changes. v2: No changes. arch/mips/cpu/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/cpu/cpu.c b/arch/mips/

[U-Boot] [PATCH v4 08/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas --- v4: No changes. v3: Select CONFIG_REMAKE

[U-Boot] [PATCH v4 06/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: No changes. v3: Several improvements: - Probe driver correctly. - Allocate size for priv struct. - Cosmetic fixes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Get regist

[U-Boot] [PATCH v4 04/14] serial: add serial driver for BCM6345

2017-04-20 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas --- v4: Add more missing register configurations based on CFE. v3: Several improvements: - Add missing register configurations based on CFE. - Replace tabs with whitespaces. - Cosmetic fixes. v2:

[U-Boot] [PATCH v4 01/14] cmd: cpu: fix NULL cpu feature prints

2017-04-20 Thread Álvaro Fernández Rojas
Commit 740d5d3 added two new features but only one feature name, which results in NULL prints when device_id feature is selected. Before: HG556a # cpu detail -1: cpu@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010

[U-Boot] [PATCH v4 07/14] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: No changes. v3: Rename of_match to ids. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. drivers/ram/Makefile| 2 + drivers/ram/bmips_ram.c | 126 ++

[U-Boot] [PATCH v4 02/14] sysreset: add syscon-reboot driver

2017-04-20 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: Rebased. v3: Introduce changes suggested by Si

[U-Boot] [PATCH v4 00/14] Add support for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
This adds support for some of the xDSL Broadcom MIPS SoCs: - BCM6358 - BCM6328 - BCM63268 However, support for other SoCs could be added in the future: - Other BCM63xx - BCM33xx - BCM71xx v4: Introduce changes suggested by Simon Glass: - Refactor cmd/cpu. - Remove device_probe patch for sy

[U-Boot] [PATCH v4 2/4] u-boot.elf: allow overriding entry symbol

2017-04-20 Thread Álvaro Fernández Rojas
LD gives the following warning when trying to process u-boot-elf.o warning: cannot find entry symbol __start; defaulting to 8001 According to gnu-libc the entry symbol for mips is __start and not _start: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/dl-machine.h;h=ed4751

[U-Boot] [PATCH v4 4/4] u-boot.elf: add quiet_cmd_u-boot-elf and cmd_u-boot-elf

2017-04-20 Thread Álvaro Fernández Rojas
This way we can see output about u-boot.elf being built or not. Signed-off-by: Álvaro Fernández Rojas --- v4: Introduce changes suggested by Tom Rini: - Add new patch to output u-boot.elf build. Makefile | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile

[U-Boot] [PATCH v4 3/4] MIPS: add support for generating u-boot.elf

2017-04-20 Thread Álvaro Fernández Rojas
Define PLATFORM_ELFFLAGS for MIPS in order to be able to generate u-boot.elf Signed-off-by: Álvaro Fernández Rojas --- v4: Introduce changes suggested by Tom Rini: - __start is the standard for MIPS, not ARM. v3: Introduce changes suggested by Daniel Schwierzeck: - Add new patch. arch/mip

[U-Boot] [PATCH v4 1/4] u-boot.elf: remove hard-coded arm64 flags

2017-04-20 Thread Álvaro Fernández Rojas
This is needed in order to allow building it for other archs. Move relocation comment to a better place. Remove no longer needed dts FIXME. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Tom Rini --- v4: no changes v3: Introduce changes suggested by Daniel Schwierzeck: - Split patches.

[U-Boot] [PATCH v4 0/4] u-boot.elf: support other archs

2017-04-20 Thread Álvaro Fernández Rojas
Provide an u-boot.elf binary for Broadcom MIPS platforms by re-using the already existing Makefile target for aarch64. This u-boot.elf binary should be used as a stage 2 loader until U-Boot can be replace the original Broadcom boot loader. Split patches from main BMIPS support. Álvaro Fernández R

  1   2   >