Re: [U-Boot] [U-Boot, 2/2] rockchip: rk3288: Revert MAC_TXCLK in pinctrl for GMAC

2017-07-26 Thread Philipp Tomsich
nabled > (!PINTRL_FULL). > > Fixes: 2454b719fb87 ("rockchip: rk3288: Add pinctrl support for the...") > Signed-off-by: Romain Perier > Acked-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 > 1 file c

Re: [U-Boot] [U-Boot, 1/2] rockchip: phycore: Add ID page of M24C32-D EEPROM

2017-07-26 Thread Philipp Tomsich
th a different amount of EEPROMs. To make > this more transparent let's add an alias for the eeprom which stores the > module variant. > > Signed-off-by: Wadim Egorov > Acked-by: Philipp Tomsich > --- > arch/arm/dts/rk3288-phycore-som.dtsi | 8 > 1 file

Re: [U-Boot] rockchip: dts: rk3229: add dwc2 node for fastboot

2017-07-26 Thread Philipp Tomsich
> Add dwc2 node for fastboot to init dwc2 controller. > > Signed-off-by: Meng Dongyang > Acked-by: Philipp Tomsich > --- > arch/arm/dts/rk3229-evb.dts | 4 > arch/arm/dts/rk322x.dtsi| 10 ++ > 2 files changed, 14 insertions(+) > R

Re: [U-Boot] [U-Boot, 2/4] power: pwm_regulator: fix the pwm_set_config parameter order

2017-07-26 Thread Philipp Tomsich
> The rkpwm reg order has fixed by below patch: > e3ef41d rockchip: pwm: fix the register layout for the PWM controller > > We need to correct the parameter order for pwm_set_config() to make > the pwm regulator works correctly. > > Signed-off-by: Kever Yang > A

Re: [U-Boot] [U-Boot, 4/4] rockchip: pwm: add mask for config setting

2017-07-26 Thread Philipp Tomsich
> Use mask to clear old setting before direct set the new config, > or else there it will mess up the config when it's not the same > with default value. > Fixs: 3851059 rockchip: Setup default PWM flags > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > -

Re: [U-Boot] rockchip: dts: firefly using ddr3 1600

2017-07-26 Thread Philipp Tomsich
> According to my test, some of firefly-rk3399 hang after dram init > when using ddr3-1333 config, while using ddr3-1600 config works > for all the board I have test. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/dts/rk3399-firefly.d

Re: [U-Boot] [U-Boot,1/5] rockchip: rk322x: update dram bank size

2017-07-26 Thread Philipp Tomsich
> The DRAM start address is not 0, so need to update the last bank size > as: > DRAM start addr + DRAM_SIZE - last bank start addr > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/mach-rockchip/rk322x-board.c | 10 ++ > 1 fi

Re: [U-Boot] [U-Boot, 3/4] power: pwm_regulator: remove redundance code

2017-07-26 Thread Philipp Tomsich
> The regulator_enable() should be called from upper layer like > regulators_enable_boot_on(), remove it from pwm regulator driver. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > drivers/power/regulator/pwm_regulator.c | 8 +--- > 1 file

Re: [U-Boot] [U-Boot, 5/5] rockchip: dts: rk3229: remove dram channel info

2017-07-26 Thread Philipp Tomsich
> The dram channel info will be auto detect by the driver, > we do not need it. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/dts/rk3229-evb.dts | 1 - > 1 file changed, 1 deletion(-) >

Re: [U-Boot] rockchip: rk3288: Add support for drive-strength in PINCTRL

2017-07-26 Thread Philipp Tomsich
ps typically. > > This commit adds support for handling drive-strength of 12ma, when it's > defined in the DT. > > Signed-off-by: Romain Perier > Acked-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 10 +- > 1 file changed, 9

Re: [U-Boot] [U-Boot, v6, 2/3] rockchip: firefly: Set the environment variable 'usbkbd' to the stdin

2017-07-26 Thread Philipp Tomsich
> Add the 'usbkbd' environment variable to the 'stdin', the contents of > the keyboard input can be auto-displayed on the serial terminal,so > you don't need to manually set the environment variable 'stdin'. > > Signed-off-by: Leo Wen > Acked-

Re: [U-Boot] [U-Boot, 1/4] rockchip: dts: correct vdd_log setting for firefly-rk3399

2017-07-26 Thread Philipp Tomsich
off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/dts/rk3399-firefly.dts | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] rockchip: use UUID for root partitions

2017-07-26 Thread Philipp Tomsich
iki/Specifications/DiscoverablePartitionsSpec/ > ARM 32bit: 69dad710-2ce4-4e3c-b16c-21a1d49abed3 > ARM 64bit: b921b045-1df0-41c3-af44-4c6f280d3fae > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > include/configs/rockchip-common.h | 8 +++- >

Re: [U-Boot] [U-Boot, 3/5] rockchip: dts: rk322x: add sdmmc device node

2017-07-26 Thread Philipp Tomsich
> add node for sdmmc in dts and rk3229-evb. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/dts/rk3229-evb.dts | 12 + > arch/arm/dts/rk322x.dtsi| 62 > + > 2 files changed, 74

Re: [U-Boot] [U-Boot, v6, 1/3] rockchip: firefly: Add some macros to enable the usb keyboard

2017-07-26 Thread Philipp Tomsich
> Add four macros of CONFIG_USB_KEYBOARD,CONFIG_DM_KEYBOARD,etc in the > firefly-rk3288_defconfig,can support usb keyboard device when these four > macros are enabled. > > Signed-off-by: Leo Wen > Acked-by: Philipp Tomsich > --- > configs/firefly-rk3288_defconfig | 4 +

Re: [U-Boot] [U-Boot, v6, 3/3] rockchip: firefly: Add "usb start" to auto-start USB device

2017-07-26 Thread Philipp Tomsich
> Add "preboot=usb start" to ROCKCHIP_DEVICE_SETTINGS,you don't > need to input "usb start" in command line of u-boot console,it > can auto-start the USB device,after that usb keyboard can work. > > Signed-off-by: Leo Wen > Acked-by: Philipp Tomsich &g

Re: [U-Boot] [U-Boot, 2/4] rockchip: rk322x: update dts node for mmc

2017-07-26 Thread Philipp Tomsich
(which is my guess)? Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- arch/arm/dts/rk3229-evb.dts | 2 -- arch/arm/dts/rk322x.dtsi| 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts index 1eac37d..ae0b0a4

Re: [U-Boot] [U-Boot, 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL

2017-07-26 Thread Philipp Tomsich
Kever, On Wed, 26 Jul 2017, Kever Yang wrote: Lets set the all the DDR region as non secure in SPL, the trust like OPTEE should have the correct setting for it if there is one. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- arch/arm/mach-rockchip/rk322x-board-spl.c | 3 +++ 1 file

Re: [U-Boot] [U-Boot, 4/5] rockchip: rk322x: pinctrl: using compatible name same with dts

2017-07-26 Thread Philipp Tomsich
: Philipp Tomsich --- drivers/pinctrl/rockchip/pinctrl_rk322x.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/rockchip/pinctrl_rk322x.c b/drivers/pinctrl/rockchip/pinctrl_rk322x.c index 7aaf4b5..576b037 100644 --- a/drivers/pinctrl/rockchip/pinctrl_rk322x.c

Re: [U-Boot] [U-Boot,4/4] rockchip: clk: remove RATE_TO_DIV

2017-07-26 Thread Philipp Tomsich
On Wed, 26 Jul 2017, Kever Yang wrote: Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC clock driver. I think nobody is happier than me to see this go ;-) However, there's a few comments below. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- drivers/clk/roc

Re: [U-Boot] [U-Boot,3/4] rockchip: clk: update dwmmc clock div

2017-07-26 Thread Philipp Tomsich
treat this a a div-2 between the CRU and the DWMMC or capture the fact that the SDMMC_CLKDIV of 0 does not mean 'bypass' (in which case we should double-check that the generic designware MMC driver does not make assumptions that do not apply to us). Signed-off-by: Kever Yang

Re: [U-Boot] [U-Boot, 1/2] rockchip: rk3288: Remove phy reset GPIO pull up

2017-07-27 Thread Philipp Tomsich
ff-by: Romain Perier > Acked-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL

2017-07-27 Thread Philipp Tomsich
v2: > - add comment for the change and update the commit message > > arch/arm/mach-rockchip/rk322x-board-spl.c | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 2/4] rockchip: rk322x: update max-frequency for mmc node

2017-07-27 Thread Philipp Tomsich
h > - update commit message to explain why this patch needed. > > arch/arm/dts/rk3229-evb.dts | 1 - > arch/arm/dts/rk322x.dtsi| 4 ++-- > 2 files changed, 2 insertions(+), 3 deletions(-) > Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, RESENT, v2, 3/4] rockchip: clk: update dwmmc clock div

2017-07-27 Thread Philipp Tomsich
| 1 + > drivers/clk/rockchip/clk_rk3328.c | 9 + > drivers/clk/rockchip/clk_rk3399.c | 12 > 6 files changed, 24 insertions(+), 17 deletions(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 2/4] rockchip: rk322x: update max-frequency for mmc node

2017-07-27 Thread Philipp Tomsich
h > - update commit message to explain why this patch needed. > > arch/arm/dts/rk3229-evb.dts | 1 - > arch/arm/dts/rk322x.dtsi| 4 ++-- > 2 files changed, 2 insertions(+), 3 deletions(-) > Acked-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-07-27 Thread Philipp Tomsich
ivers/clk/rockchip/clk_rv1108.c | 3 --- > 7 files changed, 21 insertions(+), 29 deletions(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL

2017-07-27 Thread Philipp Tomsich
v2: > - add comment for the change and update the commit message > > arch/arm/mach-rockchip/rk322x-board-spl.c | 4 > 1 file changed, 4 insertions(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-07-27 Thread Philipp Tomsich
ivers/clk/rockchip/clk_rv1108.c | 3 --- > 7 files changed, 21 insertions(+), 29 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, RESENT, v2, 3/4] rockchip: clk: update dwmmc clock div

2017-07-27 Thread Philipp Tomsich
| 1 + > drivers/clk/rockchip/clk_rk3328.c | 9 + > drivers/clk/rockchip/clk_rk3399.c | 12 > 6 files changed, 24 insertions(+), 17 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] rockchip: efuse: dm: change to use dev_read_addr

2017-07-27 Thread Philipp Tomsich
> This changes the rockchip-efuse driver to use dev_read_addr instead of > devfdt_get_addr. > > Signed-off-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > > drivers/misc/rockchip-efuse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Appl

Re: [U-Boot] rockchip: timer: make register sizes explicit

2017-07-27 Thread Philipp Tomsich
> We are about to reuse the rockchip timer (header file) for 64bit ARMv8 > chips, so it seems a good time to make the register sizes explicit by > changing from 'unsigned int' to 'u32'. > > Signed-off-by: Philipp Tomsich > Acked-by: Philipp Tomsich > ---

Re: [U-Boot] [U-Boot, 1/2] rockchip: rk3288: Remove phy reset GPIO pull up

2017-07-27 Thread Philipp Tomsich
ff-by: Romain Perier > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Applied to u-boot-rockchip, thanks! ___

Re: [U-Boot] [U-Boot, 2/2] rockchip: rk3288: Revert MAC_TXCLK in pinctrl for GMAC

2017-07-27 Thread Philipp Tomsich
nabled > (!PINTRL_FULL). > > Fixes: 2454b719fb87 ("rockchip: rk3288: Add pinctrl support for the...") > Signed-off-by: Romain Perier > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 > 1 f

Re: [U-Boot] [U-Boot, 1/2] rockchip: phycore: Add ID page of M24C32-D EEPROM

2017-07-27 Thread Philipp Tomsich
th a different amount of EEPROMs. To make > this more transparent let's add an alias for the eeprom which stores the > module variant. > > Signed-off-by: Wadim Egorov > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > arch/arm/dts/rk3288-phycore-som

Re: [U-Boot] rockchip: dts: firefly using ddr3 1600

2017-07-27 Thread Philipp Tomsich
> According to my test, some of firefly-rk3399 hang after dram init > when using ddr3-1333 config, while using ddr3-1600 config works > for all the board I have test. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- &

Re: [U-Boot] [U-Boot, 1/4] rockchip: dts: correct vdd_log setting for firefly-rk3399

2017-07-27 Thread Philipp Tomsich
off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > arch/arm/dts/rk3399-firefly.dts | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Applied to u-boot-rockchip, thanks! ___ U-Boot

Re: [U-Boot] [U-Boot, 3/4] power: pwm_regulator: remove redundance code

2017-07-27 Thread Philipp Tomsich
> The regulator_enable() should be called from upper layer like > regulators_enable_boot_on(), remove it from pwm regulator driver. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > drivers/power/regulator/pwm_re

Re: [U-Boot] [U-Boot, 4/4] rockchip: pwm: add mask for config setting

2017-07-27 Thread Philipp Tomsich
> Use mask to clear old setting before direct set the new config, > or else there it will mess up the config when it's not the same > with default value. > Fixs: 3851059 rockchip: Setup default PWM flags > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich >

Re: [U-Boot] [U-Boot, 2/4] power: pwm_regulator: fix the pwm_set_config parameter order

2017-07-27 Thread Philipp Tomsich
> The rkpwm reg order has fixed by below patch: > e3ef41d rockchip: pwm: fix the register layout for the PWM controller > > We need to correct the parameter order for pwm_set_config() to make > the pwm regulator works correctly. > > Signed-off-by: Kever Yang > A

Re: [U-Boot] rockchip: dts: rk3229: add dwc2 node for fastboot

2017-07-27 Thread Philipp Tomsich
> Add dwc2 node for fastboot to init dwc2 controller. > > Signed-off-by: Meng Dongyang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > arch/arm/dts/rk3229-evb.dts | 4 > arch/arm/dts/rk322x.dtsi| 10 ++ > 2 files changed, 14 ins

Re: [U-Boot] [U-Boot, v3, 06/10] rockchip: set malloc pool size to 0 before relocation in spl state on rk3036 based board

2017-07-27 Thread Philipp Tomsich
dy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > 2 files changed, 2 insertions(+) > Reviewed-by: Philipp Toms

Re: [U-Boot] [U-Boot, v3, 10/10] rockchip: add u-boot specific dts for rk3036 sdk

2017-07-27 Thread Philipp Tomsich
> Add this dts to enable debug uart releated devices > before relocation. > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/dts/rk3036-sdk-u-boot.dtsi |

Re: [U-Boot] [U-Boot, v3, 07/10] rockchip: disable SPL_ARCH_MEMCPY/MEMSET for rk3036

2017-07-27 Thread Philipp Tomsich
> RK3036 has no enough sapce use ARCH_MEMCPY/MEMSET in spl stage > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 2 ++ > config

Re: [U-Boot] [U-Boot, v3, 08/10] rockchip: enable SPL_LIBGENERIC for rk3036 based boards

2017-07-27 Thread Philipp Tomsich
here is no need to run DM, so disable > SPL_DM_SERIAL. > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > --- > > Changes in v3: > - disable SPL_DM_SERIAL > > Changes in v2: None > > arch/arm/mach-rockchip/rk30

Re: [U-Boot] [U-Boot, v3, 09/10] rockchip: use puts instead of printf when back to bootrom

2017-07-27 Thread Philipp Tomsich
> printf will increase the code size more than 1kb, but platform > like rk3036 has no enough space for it. > > Signed-off-by: Andy Yan > Acked-by: Philipp Tomsich > --- > > Changes in v3: > - use puts instead of printf, which suggested by Simon > > Change

Re: [U-Boot] [U-Boot, v3, 01/10] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN

2017-07-27 Thread Philipp Tomsich
ion malloc pool according to > the memory space indepently. > > Signed-off-by: Andy Yan > Reviewed-by: Tom Rini > Acked-by: Philipp Tomsich > --- > > Changes in v3: > - use CONFIG_VAL(), which suggested by Simon > > Changes in v2: > - introduce a new control CONFIG_S

Re: [U-Boot] [U-Boot, v3, 02/10] mips: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
: Daniel Schwierzeck Acked-by: Philipp Tomsich --- Changes in v3: - use CONFIG_VAL(), which suggested by Simon Changes in v2: None arch/mips/cpu/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S index d01ee9f..aa07654

Re: [U-Boot] [U-Boot, v3, 03/10] powerpc: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
: Philipp Tomsich --- Changes in v3: - use CONFIG_VAL(), which suggested by Simon Changes in v2: None arch/powerpc/cpu/mpc83xx/start.S | 8 arch/powerpc/cpu/mpc85xx/start.S | 11 +-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/start.S

Re: [U-Boot] [U-Boot, v3, 04/10] microblaze: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
n. Signed-off-by: Andy Yan Acked-by: Philipp Tomsich --- Changes in v3: - use CONFIG_VAL(), which suggested by Simon Changes in v2: None arch/microblaze/cpu/start.S | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/sta

Re: [U-Boot] [U-Boot, v3, 05/10] sandbox: use CONFIG_VAL(SYS_MALLOC_F_LEN) to distinguish malloc pool size before relocation

2017-07-27 Thread Philipp Tomsich
ested by Simon > > Changes in v2: None > > arch/sandbox/cpu/start.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, v6, 2/3] rockchip: firefly: Set the environment variable 'usbkbd' to the stdin

2017-07-27 Thread Philipp Tomsich
> Add the 'usbkbd' environment variable to the 'stdin', the contents of > the keyboard input can be auto-displayed on the serial terminal,so > you don't need to manually set the environment variable 'stdin'. > > Signed-off-by: Leo Wen > Acke

Re: [U-Boot] [U-Boot, v6, 1/3] rockchip: firefly: Add some macros to enable the usb keyboard

2017-07-27 Thread Philipp Tomsich
> Add four macros of CONFIG_USB_KEYBOARD,CONFIG_DM_KEYBOARD,etc in the > firefly-rk3288_defconfig,can support usb keyboard device when these four > macros are enabled. > > Signed-off-by: Leo Wen > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich >

Re: [U-Boot] [U-Boot, v6, 3/3] rockchip: firefly: Add "usb start" to auto-start USB device

2017-07-27 Thread Philipp Tomsich
> Add "preboot=usb start" to ROCKCHIP_DEVICE_SETTINGS,you don't > need to input "usb start" in command line of u-boot console,it > can auto-start the USB device,after that usb keyboard can work. > > Signed-off-by: Leo Wen > Acked-by: Phil

Re: [U-Boot] rockchip: use UUID for root partitions

2017-07-27 Thread Philipp Tomsich
iki/Specifications/DiscoverablePartitionsSpec/ > ARM 32bit: 69dad710-2ce4-4e3c-b16c-21a1d49abed3 > ARM 64bit: b921b045-1df0-41c3-af44-4c6f280d3fae > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > include/configs/rockch

Re: [U-Boot] rockchip: rk3288: Add support for drive-strength in PINCTRL

2017-07-27 Thread Philipp Tomsich
ps typically. > > This commit adds support for handling drive-strength of 12ma, when it's > defined in the DT. > > Signed-off-by: Romain Perier > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 10

Re: [U-Boot] [U-Boot, v2] rockchip: rk3399: enable SPL_SERIAL_SUPPORT and SPL_DRIVERS_MISC_SUPPORT via Kconfig

2017-07-27 Thread Philipp Tomsich
pass the SPL build > - SPL_DRIVERS_MISC_SUPPORT is needed to pass the SPL build > > Signed-off-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > > Changes in v2: > - fixes the naming of SPL_DRIVERS_MISC_SUPPORT (shortened to > SPL_DRIVERS_MISC in v1 of this patch) > > arch/a

Re: [U-Boot] [U-Boot, v3, 02/10] mips: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
y: Daniel Schwierzeck > Acked-by: Philipp Tomsich > --- > > Changes in v3: > - use CONFIG_VAL(), which suggested by Simon > > Changes in v2: None > > arch/mips/cpu/start.S | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v3, 04/10] microblaze: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
> Some platforms has very small sram to run spl code, so > it may have no enough sapce for so much malloc pool before > relocation in spl stage as the normal u-boot stage. > Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition. > > Signed-off-by: Andy Yan > Acke

Re: [U-Boot] [U-Boot, v3, 03/10] powerpc: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
> Some platforms has very small sram to run spl code, so > it may have no enough sapce for so much malloc pool before > relocation in spl stage as the normal u-boot stage. > Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition. > > Signed-off-by: Andy Yan > Acke

Re: [U-Boot] [U-Boot, v3, 05/10] sandbox: use CONFIG_VAL(SYS_MALLOC_F_LEN) to distinguish malloc pool size before relocation

2017-07-27 Thread Philipp Tomsich
ested by Simon > > Changes in v2: None > > arch/sandbox/cpu/start.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > Applied to u-boot-rockchip, thanks!

Re: [U-Boot] [U-Boot, v3, 01/10] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN

2017-07-27 Thread Philipp Tomsich
ion malloc pool according to > the memory space indepently. > > Signed-off-by: Andy Yan > Reviewed-by: Tom Rini > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - use CONFIG_VAL(), which suggested by Simon > > Changes in v2: >

Re: [U-Boot] [U-Boot, v3, 02/10] mips: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
y: Daniel Schwierzeck > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - use CONFIG_VAL(), which suggested by Simon > > Changes in v2: None > > arch/mips/cpu/start.S | 6 +++--- > 1 file changed, 3 insertions(+),

Re: [U-Boot] [U-Boot, v3, 07/10] rockchip: disable SPL_ARCH_MEMCPY/MEMSET for rk3036

2017-07-27 Thread Philipp Tomsich
> RK3036 has no enough sapce use ARCH_MEMCPY/MEMSET in spl stage > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036

Re: [U-Boot] [U-Boot, v3, 10/10] rockchip: add u-boot specific dts for rk3036 sdk

2017-07-27 Thread Philipp Tomsich
> Add this dts to enable debug uart releated devices > before relocation. > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > a

Re: [U-Boot] [U-Boot, v3, 06/10] rockchip: set malloc pool size to 0 before relocation in spl state on rk3036 based board

2017-07-27 Thread Philipp Tomsich
dy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > 2 files changed,

Re: [U-Boot] [U-Boot, v3, 09/10] rockchip: use puts instead of printf when back to bootrom

2017-07-27 Thread Philipp Tomsich
> printf will increase the code size more than 1kb, but platform > like rk3036 has no enough space for it. > > Signed-off-by: Andy Yan > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - use puts instead of printf, which sugg

Re: [U-Boot] [U-Boot, v3, 04/10] microblaze: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
> Some platforms has very small sram to run spl code, so > it may have no enough sapce for so much malloc pool before > relocation in spl stage as the normal u-boot stage. > Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition. > > Signed-off-by: Andy Yan > Acke

Re: [U-Boot] [U-Boot, v3, 08/10] rockchip: enable SPL_LIBGENERIC for rk3036 based boards

2017-07-27 Thread Philipp Tomsich
here is no need to run DM, so disable > SPL_DM_SERIAL. > > Signed-off-by: Andy Yan > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - disable SPL_DM_SERIAL > > Changes in v2: No

Re: [U-Boot] [U-Boot, v3, 03/10] powerpc: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently

2017-07-27 Thread Philipp Tomsich
> Some platforms has very small sram to run spl code, so > it may have no enough sapce for so much malloc pool before > relocation in spl stage as the normal u-boot stage. > Use CONFIG_VAL(SYS_MALLOC_F_LEN) to fit this condition. > > Signed-off-by: Andy Yan > Acke

[U-Boot] [PATCH v3 2/2] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-06 Thread Philipp Tomsich
USB mass storage emulation on our RK3399-Q7 with data-caches on. Signed-off-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/core.c | 2 ++ drivers/usb/dwc3/gadget.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dw

[U-Boot] [PATCH v3 1/2] usb: dwc3: ensure consistent types for dwc3_flush_cache

2017-04-06 Thread Philipp Tomsich
age of this function consistently uses 'uintptr_t' for correct behaviour even when the allocated buffers (to be flushed) reside outside of the lower 32bits of memory. Signed-off-by: Philipp Tomsich --- Changes in v3: - split into two separate patches Changes in v2: - consistently use uintp

[U-Boot] [PATCH] dts: rk3399-puma: make the DTS dual-licensed

2017-04-07 Thread Philipp Tomsich
The RK3399-Q7 (Puma) DTS should (of course) be dual-licensed. This updates the licensing info in the rk3399-puma.dts. Signed-off-by: Philipp Tomsich --- arch/arm/dts/rk3399-puma.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts

[U-Boot] [PATCH v2] ARM64: rockchip: split RK3399-Q7 board off the RK3399-EVB board

2017-04-07 Thread Philipp Tomsich
to the SRAM region that ATF expects it in. Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- Changes in v2: - fixes dram_init_banksize() to have the correct return type and to return 0 (success) unconditionally arch/arm/mach-rockchip/rk3399/Kconfig | 19 ++

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

2017-04-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich Tested-by: Jakob Unterwurzacher Tested-by: Klaus Goger Cover-Letter: rockchip: spi: rk3399: add SPI support for the RK3399 This series adds SPI support for the RK3399 (SPI1 and SPI5). This consists of the following individual changes: - clock support for the SPI

[U-Boot] [PATCH v3 3/7] rockchip: spi: rk_spi: select 198MHz input to the SPI module for the RK3399

2017-04-17 Thread Philipp Tomsich
To provide more (runtime) configuration points for the SPI data rate at higher speeds (e.g. above 9MHz), we increase the module input rate to 198MHz (from 99MHz) for the RK3399. Signed-off-by: Philipp Tomsich --- Changes in v3: - increase the module input clock from 99MHz to 198MHz for the

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

2017-04-17 Thread Philipp Tomsich
ing to its compatible list to allow reuse of the existing driver. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich Tested-by: Jakob Unterwurzacher --- Changes in v3: None Changes in v2: None drivers/spi/rk_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/

[U-Boot] [PATCH v3 4/7] rockchip: spi: rk_spi: improve clocking code for the RK3399

2017-04-17 Thread Philipp Tomsich
and then clamps to whatever the DTS allows as a maximum (board-specific) frequency. Signed-off-by: Philipp Tomsich --- Changes in v3: - change the top bitrate permissible (without generating a -EINVAL) from 48MHz/MBit to half the input clockrate (i.e. 49.5MHz/MBit for a 99MHz module input

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

2017-04-17 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 --- Changes in v3:

[U-Boot] [PATCH v3 0/7] rockchip: spl: rk3399: prepare to have SPI config per-board

2017-04-17 Thread Philipp Tomsich
MHz ... 49.5 MHz - fixes an off-by-one for the RK3399 that cause the SPI module input clock to be misstated as 84MHz (even though it was running at 99MHz) Jakob Unterwurzacher (1): rockchip: spi: enable support for the rk_spi driver for the RK3399 Philipp Tomsich (6): rockchip: clk: rk3399

[U-Boot] [PATCH 3/3] spl: Makefile: include /config in the (reduced) FDT used by the SPL stage

2017-04-17 Thread Philipp Tomsich
27;/config' to the list of nodes to be retained for the SPL stage. Signed-off-by: Philipp Tomsich --- scripts/Makefile.spl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index eb24292..182b300 100644 --- a/scripts/Makefile.sp

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

2017-04-17 Thread Philipp Tomsich
er-read), which reads the divider from the register and then passes it through the DIV_RATE macro Given that this code is not time-critical, the more readable solution (i.e. calling the appropriate get_rate function) is implemented in this change. Signed-off-by: Philipp Tomsich Tested-by: Klaus G

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

2017-04-17 Thread Philipp Tomsich
-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich Tested-by: Jakob Unterwurzacher --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12 arch/arm/include/asm/arch-rockchip/periph.h | 3 +++ drivers/pinctrl/rockchip

[U-Boot] [PATCH 2/3] doc: document /config/u-boot, spl-payload-offset property

2017-04-17 Thread Philipp Tomsich
This adds documentation on the u-boot,spl-payload-offset property (which overrides CONFIG_SYS_SPI_U_BOOT_OFFS during the SPI loading in the SPL stage, if present). Signed-off-by: Philipp Tomsich --- doc/device-tree-bindings/config.txt | 5 + 1 file changed, 5 insertions(+) diff --git a

[U-Boot] [PATCH 1/3] spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-property

2017-04-17 Thread Philipp Tomsich
U-Boot images, we introduce a the '/config/u-boot,spl-payload-offset' property node allow it to override the default setting. Signed-off-by: Philipp Tomsich --- common/spl/spl_spi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/common/spl/s

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

2017-04-17 Thread Philipp Tomsich
adds verbose in-line comments to ensure that we won't fall into the same pit in the future... Tested on the RK3399 (with has a boot0-style payload) with SD/MMC and SPI. Signed-off-by: Philipp Tomsich --- tools/rkcommon.c | 20 ++-- tools/rkcommon.h | 10 -- tools/r

[U-Boot] [PATCH v1 0/8] rockchip: mkimage: refactor rksd/rkspi padding calculation and add dumpimage support

2017-04-17 Thread Philipp Tomsich
ader) had to be added to quickly check the image type being handled Note that with the refactored calculation of the image-size, we don't pad the image to the maximum SPL size any longer, but pad SD/MMC to the next 512 byte block (RK_BLK_SIZE) and SPI to the next 2K boundary. Philipp Tom

[U-Boot] [PATCH v1 6/8] rockchip: mkimage: play nice with dumpimage

2017-04-17 Thread Philipp Tomsich
Dumpimage (it invoked with "-T rkspi" or "-T rksd") would not work due to check_params failing. These changes ensure that we can both be called with an empty imagename. Signed-off-by: Philipp Tomsich --- tools/rkcommon.c | 16 +--- 1 file changed, 13 insert

[U-Boot] [PATCH v1 8/8] rockchip: mkimage: add support for verify_header/print_header

2017-04-17 Thread Philipp Tomsich
f the image: $ ./tools/dumpimage -l ./spl.img Image Type: Rockchip RK33 (SD/MMC) boot image ^^ SD/MMC vs. SPI indication spl_hdr indicated by the image Data Size:79872 bytes Signed-off-by: Philipp Tomsich --- tools/rkcom

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

2017-04-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich --- tools/rksd.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/rksd.c b/tools/rksd.c index 6dafedf..8627b6d 100644 --- a/tools/rksd.c +++ b/tools/rksd.c @@ -62,8 +62,11 @@ static int rksd_check_image_type(uint8_t type) static

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

2017-04-17 Thread Philipp Tomsich
-date). This change brings the comment back in-sync with what the code is doing. Signed-off-by: Philipp Tomsich --- tools/rkcommon.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 1311d65..cfd40ac 100644 --- a/

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

2017-04-17 Thread Philipp Tomsich
ff-by: Philipp Tomsich --- tools/rkcommon.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index cfd40ac..ed29ef9 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -13,6 +13,8 @@ #include "mkimage.h" #incl

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

2017-04-17 Thread Philipp Tomsich
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 calculating the required total size (including the padding from the 2K-from-every-4K conversion). Signed-off-by: Philipp

[U-Boot] [PATCH v1 0/2] rockchip: dts: rk3399-puma: Update to use DDR3-1600 timings

2017-04-17 Thread Philipp Tomsich
- cleans up some graffiti (i.e. unwanted source edits) from the DDR3-1333 timing we had submitted earlier Philipp Tomsich (2): rockchip: dts: Clean up graffiti in rk3399-sdram-ddr3-1333.dtsi rockchip: dts: rk3399-puma: Add DDR3-1600 timings and use for Puma arch/arm/dts/rk3399-puma.dts

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

2017-04-17 Thread Philipp Tomsich
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/rk3399-sdram-ddr3-1333.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts

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

2017-04-17 Thread Philipp Tomsich
fact better than having verify just return 0 (which previously broke dumpimage, as dumpimage assumed that we had handled the image and did not continue to probe further). Signed-off-by: Philipp Tomsich --- tools/rkimage.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions

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

2017-04-17 Thread Philipp Tomsich
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: Philipp Tomsich --- arch/arm/dts/rk3399-puma.dts |6 +- arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi

[U-Boot] [PATCH] rockchip: mkimage: remove (left-over) assignment w/o effect [coverity]

2017-04-19 Thread Philipp Tomsich
An assignment (of a value to itself) was left over (after removing and addition from the line) from moving the common padding code into rkcommon_vrec_header. This change removes this to avoid a spurious warning in static code analysis (i.e. Coverity). Signed-off-by: Philipp Tomsich --- tools

[U-Boot] [PATCH] patman: encode CC list to UTF-8

2017-04-19 Thread Philipp Tomsich
not in range(128) from Heiko's email address: [..., u'"Heiko St\xfcbner" ', ...] While with this change added this encodes to: "=?UTF-8?q?Heiko=20St=C3=BCbner?= " Signed-off-by: Philipp Tomsich --- tools/patman/series.py | 4 ++-- 1 file changed, 2 inserti

[U-Boot] [PATCH v2] pinctrl: Kconfig: sort pinctrl config options to prevent future clutter

2017-04-19 Thread Philipp Tomsich
to related Makefiles) and sort those alphabetically. And as this already means touching most of the file, we also reformat the help text to not exceed 80 characters (but make full use of those 80 characters). Signed-off-by: Philipp Tomsich --- Changes in v2: - sort options alphabetically and use a com

<    4   5   6   7   8   9   10   11   12   13   >