[U-Boot] How to support ATF on u-boot

2016-06-20 Thread Kever Yang
Hi U-boot Maintainers, I want to upstream a new SoC named RK3399 from Rockchip which is AARCH64/ARMv8, we need to support Arm Trust Firmware base on U-boot. Right now we are using a miniloader(just like SPL in U-boot) to load ATF/U-boot, and PC jump from miniloader to ATF and then to

[U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
size. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- cmd/gpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 3d9706b..897596a 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -298,8 +298,8 @@ static int set_gpt_info(struct

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
Hi Michael, On 07/26/2016 04:37 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang <kever.y...@rock-chips.com> wrote: The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-14 Thread Kever Yang
Hi Andreas, On 07/14/2016 12:26 PM, Andreas Färber wrote: Am 14.07.2016 um 05:51 schrieb Kever Yang: Add support for rockchip rk33 series Soc like rk3368 and rk3399 Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [U-Boot] How to support ATF on u-boot

2016-07-14 Thread Kever Yang
Hi Andre, On 07/13/2016 08:45 PM, Andre Przywara wrote: Hi, On 13/07/16 13:27, Andreas Färber wrote: Hi Kever, Am 20.06.2016 um 04:59 schrieb Kever Yang: I want to upstream a new SoC named RK3399 from Rockchip which is AARCH64/ARMv8, we need to support Arm Trust Firmware base on U-boot

Re: [U-Boot] [PATCH v2] rockchip: rk3288: Fix pinctrl for GPIO bank 0

2016-07-25 Thread Kever Yang
+ value = readl(addr); + value &= ~(mask << shift); + value |= (3 << (shift + 16)) | (val << shift); + writel(value, addr); } return 0; Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Than

Re: [U-Boot] [PATCH] rk3399: reseve space for trust

2016-07-24 Thread Kever Yang
Hi Simon, On 07/23/2016 11:03 AM, Simon Glass wrote: Hi again, On 22 July 2016 at 20:57, Simon Glass <s...@chromium.org> wrote: Hi Kever, On 22 July 2016 at 03:34, Kever Yang <kever.y...@rock-chips.com> wrote: For the commit message, you have "rk3399: reseve space for

[U-Boot] [PATCH v2] rk3399: Reserve space for ARM Trust Firmware

2016-07-24 Thread Kever Yang
RK3399 needs reserve 0x20 at the beginning of DRAM, for ATF bl31. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - correct some typo on commit message and comment board/rockchip/evb_rk3399/evb-rk3399.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH 1/2] rk3399: add basic soc driver

2016-07-24 Thread Kever Yang
This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 93 +++ arch/arm/mach-rockchip/rk3399/Makefile

[U-Boot] [PATCH 2/2] mmc: rockchip: add clock init

2016-07-24 Thread Kever Yang
Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/rockchip_sdhci.c| 10 +- include/configs/rk3399_common.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 023c29b..a

[U-Boot] [PATCH 0/2] rk3399: add soc basic driver support

2016-07-24 Thread Kever Yang
This patchset add basic driver like clock, grf, sysreset for rk3399, and enable clock init in emmc driver. This patchset has tested on rk3399 evb. Kever Yang (2): rk3399: add basic soc driver mmc: rockchip: add clock init arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 93 +++ arch

Re: [U-Boot] [PATCH] pwm: add MACRO to limit some code which only for rk3288

2016-07-28 Thread Kever Yang
Hi Simon, On 07/12/2016 09:12 PM, Simon Glass wrote: Hi Kever, On 11 July 2016 at 20:45, Kever Yang <kever.y...@rock-chips.com> wrote: Hi Simon, CC Doug for this topic. On 07/12/2016 07:54 AM, Simon Glass wrote: Hi Kever, On 11 July 2016 at 00:58, Kever Yang <kever.y...@rock-

[U-Boot] [PATCH v2 1/2] rk3399: add basic soc driver

2016-07-28 Thread Kever Yang
This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - include '_SHIFT_' in '_MASK' MACRO - fix comment style - use DIV_ROUND_UP instead of div_ro

[U-Boot] [PATCH v2 0/2] rk3399: add soc basic driver support

2016-07-28 Thread Kever Yang
in rockchip_get_cru - implement ofdata_to_platdata for priv->cru init - update base on comments from Jaehoon Chung Kever Yang (2): rk3399: add basic soc driver mmc: rockchip: add clock init arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 93 +++ arch/arm/mach-rockchip/rk3399/Makef

[U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-07-28 Thread Kever Yang
size. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - fix gpt verify error, do not check the extend partition size cmd/gpt.c | 4 ++-- disk/part_efi.c | 4 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/gpt.c b/cmd/gpt.c index 3d97

[U-Boot] [PATCH v2 2/2] mmc: rockchip: add clock init

2016-07-29 Thread Kever Yang
Init clock for eMMC controller. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - update base on comments from Jaehoon Chung drivers/mmc/rockchip_sdhci.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/rockchip_sdh

[U-Boot] [PATCH v3 1/2] rk3399: add basic soc driver

2016-07-31 Thread Kever Yang
This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: - use EINVAL instead of -1 for return val

[U-Boot] [PATCH v3 2/2] mmc: rockchip_sdhci: add clock init

2016-07-31 Thread Kever Yang
Initialize the maximum clock with CMU, before setting the rockchip sdhci host controller. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Jaehoon Chung <jh80.ch...@samsung.com> --- Changes in v3: - update commit message Changes in v2: - update base on comments

[U-Boot] [PATCH v3 0/2] rk3399: add soc basic driver support

2016-07-31 Thread Kever Yang
comment style - use DIV_ROUND_UP instead of div_round_up - use uclass_get_device_by_driver in rockchip_get_cru - implement ofdata_to_platdata for priv->cru init - update base on comments from Jaehoon Chung Kever Yang (2): rk3399: add basic soc driver mmc: rockchip_sdhci: add clock init arch/

Re: [U-Boot] [PATCH v2 1/2] rk3399: add basic soc driver

2016-07-31 Thread Kever Yang
Hi Jaehoon Chung, On 07/29/2016 04:00 PM, Jaehoon Chung wrote: Hi Kever, On 07/29/2016 11:35 AM, Kever Yang wrote: This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by: Kever Yang <kever.y...@rock-chips.

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
Hi Michael, On 07/26/2016 05:08 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 10:59 AM, Kever Yang <kever.y...@rock-chips.com> wrote: Hi Michael, On 07/26/2016 04:37 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang <kever.y...@rock-chips.c

Re: [U-Boot] [PATCH 1/2] rk3399: add basic soc driver

2016-07-25 Thread Kever Yang
On 07/25/2016 12:50 PM, Kever Yang wrote: This patch add driver for: [snip] ... + +static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate) +{ + struct rk3399_clk_priv *priv = dev_get_priv(clk->dev); + + switch (clk->id) { + case 0 ... 63: + re

Re: [U-Boot] [PATCH 2/2] mmc: rockchip: add clock init

2016-07-25 Thread Kever Yang
Hi Jaehoon Chung, Thanks for your review comment. On 07/25/2016 01:09 PM, Jaehoon Chung wrote: Hi Kever, On 07/25/2016 01:50 PM, Kever Yang wrote: Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/rockchip_sdhci.c| 10 +- include/c

[U-Boot] [PATCH 0/5] add pinctrl driver for rk3399

2016-08-11 Thread Kever Yang
API manually. Kever Yang (5): rk3399: syscon: add support for pmugrf pinctrl: add driver for rk3399 config: evb-rk3399: enable pinctrl driver rk3399: enable the pwm2/3 pinctrl in board init dts: rk3399: add pinctrl for sdmmc arch/arm/dts/rk3399.dtsi| 37

[U-Boot] [PATCH 1/5] rk3399: syscon: add support for pmugrf

2016-08-11 Thread Kever Yang
pmugrf is a module like grf which contain some of the iomux registers and other registers. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/clock.h| 1 + arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 1 + 2 files changed, 2 insertions(+)

[U-Boot] [PATCH 5/5] dts: rk3399: add pinctrl for sdmmc

2016-08-11 Thread Kever Yang
This patch add pinctrl for sdcard which may not be initialized before uboot. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3399.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/dts/rk3399.dtsi b/arch/a

[U-Boot] [PATCH 3/5] config: evb-rk3399: enable pinctrl driver

2016-08-11 Thread Kever Yang
This patch enable rk3399 pinctrl driver and gpio driver which is sub-node of pinctrl. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig

[U-Boot] [PATCH 4/5] rk3399: enable the pwm2/3 pinctrl in board init

2016-08-11 Thread Kever Yang
There is no interrupt line for each PWM which used by pinctrl to get the periph_id, so it's not able to enable the default pinctrl setting by pinctrl framework, let's enable it at board_init(). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/evb-rk3399.

[U-Boot] [PATCH 2/5] pinctrl: add driver for rk3399

2016-08-11 Thread Kever Yang
This patch add pinctrl driver for rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 365 drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/rockchip/Makefile

[U-Boot] [PATCH v2 1/3] clock: rk3399: add support for dwmmc 400K

2016-08-03 Thread Kever Yang
MMC core will use 400KHz for card initialize first and then switch to higher frequency like 50MHz, we need to support both 400KHz and about 50MHz for dwmmc controller. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes

[U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support

2016-08-03 Thread Kever Yang
To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - remove some re-defined MACRO, comments fr

Re: [U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-08-03 Thread Kever Yang
Hi Michael, Do you think this patch is necessary? Thanks, -Kever On 07/29/2016 11:12 AM, Kever Yang wrote: The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34 sectors. We can

[U-Boot] [PATCH v2 2/3] dts: rk3399: enable dwmmc for sdcard

2016-08-03 Thread Kever Yang
rk3399 sdcard is using dwmmc controller, enable it for sdcard. SCLK_SDMMC is the clock for controller operation clock, move it to the first place. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: - add commit me

[U-Boot] [PATCH v2 3/3] config: rk3399: enable dwmmc controller

2016-08-03 Thread Kever Yang
Enable the rockchip dwmmc driver for rk3399 and its evb. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: - add commit message configs/evb-rk3399_defconfig| 1 + include/configs/rk3399_common.h | 1 + 2 file

[U-Boot] [PATCH v2 0/3] rk3399: enable dwmmc controller for sdcard

2016-08-03 Thread Kever Yang
rk3399 using dwmmc controller for sdcard, let's enable it. this patch set has been test on rk3399 evb. Changes in v2: - add commit message - move the SCLK_SDMMC and its name to the first place - add commit message Kever Yang (3): clock: rk3399: add support for dwmmc 400K dts: rk3399

[U-Boot] [PATCH v2 0/5] add pinctrl driver for rk3399

2016-08-15 Thread Kever Yang
API manually. Changes in v2: - move and reg value MACRO in C source, and use MASK/SHIFT Kever Yang (5): rk3399: syscon: add support for pmugrf pinctrl: add driver for rk3399 config: evb-rk3399: enable pinctrl driver rk3399: enable the pwm2/3 pinctrl in board init dts: rk3399: add

[U-Boot] [PATCH v2 1/5] rk3399: syscon: add support for pmugrf

2016-08-15 Thread Kever Yang
pmugrf is a module like grf which contain some of the iomux registers and other registers. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/include/asm/arch-rockchip/clock.h| 1 + arch/arm/mach-roc

[U-Boot] [PATCH 1/5] clk: rk3399: add pmucru controller support

2016-08-12 Thread Kever Yang
pmucru is a module like cru which is a clock controller manage some PLL and module clocks. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3399.c | 177 +- 1 file changed, 173 insertions(+), 4 deletions(-) diff

[U-Boot] [PATCH 2/5] clk: rk3288: add PWM clock get rate

2016-08-12 Thread Kever Yang
This patch add clk_get_rate for PWM device. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3288.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index c07203d..bd71a96

[U-Boot] [PATCH 0/5] clean rkpwm driver

2016-08-12 Thread Kever Yang
This patch set clean the rkpwm driver by using clock API for module clock instead of hardcode, move the grf setting to soc level init. Kever Yang (5): clk: rk3399: add pmucru controller support clk: rk3288: add PWM clock get rate rk_pwm: use clock framework API to get module clock

[U-Boot] [PATCH 3/5] rk_pwm: use clock framework API to get module clock

2016-08-12 Thread Kever Yang
This patch use clock API instead of hardcode for get pwm clock. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/pwm/rk_pwm.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 2

[U-Boot] [PATCH 4/5] rk_pwm: remove grf setting code from driver

2016-08-12 Thread Kever Yang
We consider the grf setting for pwm controller select as the system operation instead of driver operation, move it to soc init, let's remove it from pwm driver first. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/pwm/rk_pwm.c | 11 --- 1 file changed, 11 del

[U-Boot] [PATCH 5/5] rk3288: add arch_cpu_init for rk3288

2016-08-12 Thread Kever Yang
We do some SoC level one time setting initialization in arch_cpu_init. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/Makefile | 1 + arch/arm/mach-rockchip/rk3288/rk3288.c | 19 +++ 2 files changed, 20 insertions(+) create mode

Re: [U-Boot] How to support ATF on u-boot

2016-07-13 Thread Kever Yang
Hi Andreas, On 07/13/2016 08:27 PM, Andreas Färber wrote: Hi Kever, Am 20.06.2016 um 04:59 schrieb Kever Yang: I want to upstream a new SoC named RK3399 from Rockchip which is AARCH64/ARMv8, we need to support Arm Trust Firmware base on U-boot. Right now we are using a miniloader

[U-Boot] [PATCH 1/5] dts: add support for rkchichip rk3399 soc

2016-07-13 Thread Kever Yang
These files are from kernel upstream with some modification need by uboot: - chosen with stdout-path to uart2. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/Makefile |3 +- arch/arm/dts/rk3399-evb.dts| 104 arch/arm/dts/rk339

[U-Boot] [PATCH 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-13 Thread Kever Yang
RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and qual-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very like RK3288, the DRAM are 32bit width address and support address from 0 to 4GB-128MB range. Signed-off-by: Kever Yang

[U-Boot] [PATCH 0/5]

2016-07-13 Thread Kever Yang
which is u-boot here. Pls reference board/rockchip/evb_rk3399/README to setup the board. Will migrate to SPL once its ready for ATF. This patch set is based on below patch: "board: move all the rockchip board in one folder" This patch set has been test on rk3399 evb board. Kev

[U-Boot] [PATCH 3/5] config: add config file for evb-rk3399

2016-07-13 Thread Kever Yang
This patch add basic config option for evb-rk3399 board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig | 32 1 file changed, 32 insertions(+) create mode 100644 configs/evb-rk3399_defconfig diff --git a/confi

[U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-13 Thread Kever Yang
Add support for rockchip rk33 series Soc like rk3368 and rk3399 Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 72621fd..9ec7eb2 100644 --- a/tools/rkcommon.c +++ b

[U-Boot] [PATCH 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-13 Thread Kever Yang
Rockchip rk3399 using arasan sdhci-5.1 controller. This patch add the controller support to enable mmc device and tested on rk3399 evb board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/Kconfig | 6 + drivers/mmc/Makefile | 1 + drive

Re: [U-Boot] [PATCH] rockchip: fix rk3036 SPL build

2016-07-20 Thread Kever Yang
Hi Heiko, Simon apply my V4 patch which still have some problem, he said that he will rebase with a new patch set either if I send a new version or send fixes, but he won't be available till next week. I have send out my V5 patch which including the code of this patch. Thanks, -

[U-Boot] [PATCH v3 3/5] config: add config file for evb-rk3399

2016-07-15 Thread Kever Yang
This patch add basic config option for evb-rk3399 board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: None Changes in v2: None configs/evb-rk3399_defconfig | 32 1 file changed, 32 insertions(+) create mode 100644 confi

[U-Boot] [PATCH v3 0/5] add support for rk3399 soc and evb

2016-07-15 Thread Kever Yang
nges in v3: Rebase on patch from Andreas: [PATCH] rockchip: Exclude rk_timer for ARM64 [PATCH] rockchip: Clean up CPU selection Changes in v2: fix description error on board Kconfig fix a binary path error Kever Yang (5): dts: add support for rkchichip rk3399 soc ARM64: rockchip: add support for

[U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-15 Thread Kever Yang
RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and qual-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very like RK3288, the DRAM are 32bit width address and support address from 0 to 4GB-128MB range. Signed-off-by: Kever Yang

[U-Boot] [PATCH v3 1/5] dts: add support for rkchichip rk3399 soc

2016-07-15 Thread Kever Yang
These files are from kernel upstream with some modification need by uboot: - chosen with stdout-path to uart2. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: None Changes in v2: None arch/arm/dts/Makefile |3 +- arch/arm/dts/rk3399-e

[U-Boot] [PATCH v3 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-15 Thread Kever Yang
Rockchip rk3399 using arasan sdhci-5.1 controller. This patch add the controller support to enable mmc device and tested on rk3399 evb board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/mmc/Kconfig | 6 + drive

[U-Boot] [PATCH v2] mkimage: rockchip: add suport for rk33 serial

2016-07-17 Thread Kever Yang
Add support for rockchip rk33 series Soc like rk3368 and rk3399 Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: Using rk3399 instead of rk33xx tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 7

Re: [U-Boot] [PATCH 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-17 Thread Kever Yang
Hi Simon, On 07/15/2016 11:20 AM, Simon Glass wrote: Hi Kever, On 13 July 2016 at 23:08, Kever Yang <kever.y...@rock-chips.com> wrote: Rockchip rk3399 using arasan sdhci-5.1 controller. This patch add the controller support to enable mmc device and tested on rk3399 evb board. Sign

Re: [U-Boot] [PATCH v3 0/5] add support for rk3399 soc and evb

2016-07-17 Thread Kever Yang
Hi Heiko, On 07/16/2016 06:15 AM, Heiko Stübner wrote: Hi Kever, Am Freitag, 15. Juli 2016, 16:42:08 schrieb Kever Yang: This patchset add support for rk3399 with ATF based on Rockchip miniloader as secondary bootloader instead of u-boot SPL. Rockchip miniloader init the DRAM and load

[U-Boot] [PATCH v2] mmc-uclass: correct the device number

2016-07-19 Thread Kever Yang
Not like the mmc-legacy which the devnum starts from 1, it starts from 0 in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num(). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - add comment for get_mmc_num() in mmc.h - update mmc_get_next_

Re: [U-Boot] [PATCH] mmc-uclass: correct the device number

2016-07-19 Thread Kever Yang
Hi Simon, On 07/18/2016 07:55 PM, Simon Glass wrote: Hi Kever, On 18 July 2016 at 03:52, Kever Yang <kever.y...@rock-chips.com> wrote: The devnum in is start from 0, so the device number should be (devnum+1). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- dri

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-19 Thread Kever Yang
Hi Andreas, On 07/18/2016 10:13 PM, Andreas Färber wrote: Hi Kever, Am 18.07.2016 um 06:54 schrieb Kever Yang: Hi Andreas, Thanks for you comments, I will apply them one by one except some confuse below. On 07/18/2016 07:26 AM, Andreas Färber wrote: Hi, Isn't evb short for evaluation

[U-Boot] [PATCH v5 4/4] ARM64: evb-rk3399: add a README for this board setup

2016-07-19 Thread Kever Yang
Add a README to guide people flash the ATF and U-Boot with Rockchip tools to bring up to board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v5: - fix for comments from Simon, correct some typo; Changes in v4: None Changes in v3: None Changes in v2: - fix a binar

[U-Boot] [PATCH v3] mmc-uclass: correct the device number

2016-07-19 Thread Kever Yang
Not like the mmc-legacy which the devnum starts from 1, it starts from 0 in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num(). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - apply comments from Jaehoon Chung Changes in v2: - add c

[U-Boot] [PATCH v5 1/4] dts: add support for Rockchip rk3399 soc

2016-07-19 Thread Kever Yang
These files are from kernel upstream: "649a371 Add linux-next specific files for 20160616" with some modification need by U-Boot: - chosen with stdout-path to uart2. - add clock-frequency for uart2 Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass &l

Re: [U-Boot] [PATCH v4 2/4] ARM64: rockchip: add support for rk3399 SoC based evb

2016-07-19 Thread Kever Yang
Hi Andreas, On 07/18/2016 09:34 PM, Andreas Färber wrote: Am 18.07.2016 um 10:46 schrieb Kever Yang: RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and quad-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very much like RK3288

[U-Boot] [PATCH v5 0/4] add support for rk3399 soc and evb

2016-07-19 Thread Kever Yang
g Changes in v3: - Rebase on patch from Andreas: - [PATCH] rockchip: Exclude rk_timer for ARM64 - [PATCH] rockchip: Clean up CPU selection Changes in v2: - fix description error on board Kconfig - fix a binary path error Kever Yang (4): dts: add support for Rockchip rk3399 soc ARM64: rockchip: a

[U-Boot] [PATCH v5 3/4] config: add config file for evb-rk3399

2016-07-19 Thread Kever Yang
This patch add basic config option for evb-rk3399 board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v5: None Changes in v4: - move config CONFIG_SYS_NS16550 from chip common to defconfig Changes in v3: None Changes in v2: None configs/evb-rk3399_defconfi

[U-Boot] [PATCH v5 2/4] ARM64: rockchip: add support for rk3399 SoC based evb

2016-07-19 Thread Kever Yang
RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and quad-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very much like RK3288, the DRAM are 32bit width address and support address from 0 to 4GB-128MB range. Signed-off-by: Kever

[U-Boot] [PATCH] configs: rockchip: remove CONFIG_ROCKCHIP_COMMON

2016-07-19 Thread Kever Yang
The CONFIG_ROCKCHIP_COMMON is no use now, remove it. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- include/configs/rk3036_common.h | 2 -- include/configs/rk3288_common.h | 1 - 2 files changed, 3 deletions(-) diff --git a/include/configs/rk3036_common.h b/include/c

[U-Boot] [PATCH v2 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-15 Thread Kever Yang
Rockchip rk3399 using arasan sdhci-5.1 controller. This patch add the controller support to enable mmc device and tested on rk3399 evb board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None drivers/mmc/Kconfig | 6 + drivers/mmc/Makefile

Re: [U-Boot] [PATCH] pwm: add MACRO to limit some code which only for rk3288

2016-07-11 Thread Kever Yang
Hi Simon, CC Doug for this topic. On 07/12/2016 07:54 AM, Simon Glass wrote: Hi Kever, On 11 July 2016 at 00:58, Kever Yang <kever.y...@rock-chips.com> wrote: Hi Simon, On 07/09/2016 10:39 PM, Simon Glass wrote: Hi Kever, On 7 July 2016 at 20:45, Kever Yang <kever.y...@rock-

[U-Boot] [PATCH v4 4/4] ARM64: evb-rk3399: add a README for this board setup

2016-07-18 Thread Kever Yang
Add a README to guide people flash the ATF and U-Boot with rockchip tools to bring up to board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v4: None Changes in v3: None Changes in v2: fix a binary path error board/rockchip/evb_rk3399/READM

[U-Boot] [PATCH v4 1/4] dts: add support for Rockchip rk3399 soc

2016-07-18 Thread Kever Yang
These files are from kernel upstream with some modification need by U-Boot: - chosen with stdout-path to uart2. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/

[U-Boot] [PATCH v4 2/4] ARM64: rockchip: add support for rk3399 SoC based evb

2016-07-18 Thread Kever Yang
RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and quad-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very much like RK3288, the DRAM are 32bit width address and support address from 0 to 4GB-128MB range. Signed-off-by: Kever

[U-Boot] [PATCH v4 0/4] add support for rk3399 soc and evb

2016-07-18 Thread Kever Yang
inary path error Kever Yang (4): dts: add support for Rockchip rk3399 soc ARM64: rockchip: add support for rk3399 SoC based evb config: add config file for evb-rk3399 ARM64: evb-rk3399: add a README for this board setup arch/arm/Kconfig |2 - arch/arm/dt

[U-Boot] [PATCH v4 3/4] config: add config file for evb-rk3399

2016-07-18 Thread Kever Yang
This patch add basic config option for evb-rk3399 board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v4: move config CONFIG_SYS_NS16550 from chip common to defconfig Changes in v3: None Changes in v2: None configs/evb-rk3399_defconfi

[U-Boot] [PATCH] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-18 Thread Kever Yang
t, but all the mmc command failed like this: => mmc info No MMC device available Command failed, result=1 The result of get_mmc_num in cmd/mmc.c is always 0? Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/Kconfig | 6 +++ d

Re: [U-Boot] [PATCH v3 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-17 Thread Kever Yang
Hi Andreas, Thanks for you comments, I will apply them one by one except some confuse below. On 07/18/2016 07:26 AM, Andreas Färber wrote: Hi, Isn't evb short for evaluation board? That makes board board then. ;) Am 15.07.2016 um 10:42 schrieb Kever Yang: RK3399 is a SoC from Rockchip

[U-Boot] [PATCH] mmc-uclass: correct the device number

2016-07-18 Thread Kever Yang
The devnum in is start from 0, so the device number should be (devnum+1). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/mmc-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 3

[U-Boot] [PATCH v2 1/5] dts: add support for rkchichip rk3399 soc

2016-07-15 Thread Kever Yang
These files are from kernel upstream with some modification need by uboot: - chosen with stdout-path to uart2. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None arch/arm/dts/Makefile |3 +- arch/arm/dts/rk3399-evb.dts

[U-Boot] [PATCH v2 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-15 Thread Kever Yang
RK3399 is a SoC from Rockchip with dual-core Cortex-A72 and qual-core Cortex-A53 CPU. It supports two USB3.0 type-C ports and two USB2.0 EHCI ports. Other interfaces are very like RK3288, the DRAM are 32bit width address and support address from 0 to 4GB-128MB range. Signed-off-by: Kever Yang

[U-Boot] [PATCH v2 0/5] add support for rk3399 soc and evb

2016-07-15 Thread Kever Yang
in v2: fix description error on board Kconfig fix a binary path error Kever Yang (5): dts: add support for rkchichip rk3399 soc ARM64: rockchip: add support for rk3399 SoC based evb-board config: add config file for evb-rk3399 mmc: rockchip: add SDHCI driver support for rockchip soc ARM64:

[U-Boot] [PATCH v2 3/5] config: add config file for evb-rk3399

2016-07-15 Thread Kever Yang
This patch add basic config option for evb-rk3399 board. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None configs/evb-rk3399_defconfig | 32 1 file changed, 32 insertions(+) create mode 100644 configs/evb-rk3399_defconfig

[U-Boot] [RESEND PATCH] board: move all the rockchip board in one folder

2016-07-10 Thread Kever Yang
The 'evb_rk3036' and 'kylin' is not a vendor name, let's replace them to 'rockchip' which is a real _vendor_ name, and meet the architecure 'board///'. More boards from rockchip like evb_rk3288, evb_rk3399 will comes later. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- ar

Re: [U-Boot] [PATCH] board: move all the rockchip board in one folder

2016-07-10 Thread Kever Yang
Hi Simon, On 07/09/2016 10:38 PM, Simon Glass wrote: Hi Kevin, On 7 July 2016 at 21:49, Eddie Cai <eddie.cai.ker...@gmail.com> wrote: 2016-07-08 11:30 GMT+08:00 Kever Yang <kever.y...@rock-chips.com>: The 'evb_rk3036' and 'kylin' is not a vendor name, let's replace them to 'roc

Re: [U-Boot] [PATCH] pwm: add MACRO to limit some code which only for rk3288

2016-07-11 Thread Kever Yang
Hi Simon, On 07/09/2016 10:39 PM, Simon Glass wrote: Hi Kever, On 7 July 2016 at 20:45, Kever Yang <kever.y...@rock-chips.com> wrote: The grf setting for rkpwm is only need in rk3288, other SoCs like RK3399 which also use rkpwm do not need set the grf, let's add a MACRO to make the cod

[U-Boot] [PATCH] board: move all the rockchip board in one folder

2016-07-07 Thread Kever Yang
The 'evb_rk3036' and 'kylin' is not a vendor name, let's replace them to 'rockchip' which is a real _vendor_ name, and meet the architecure 'board///'. More boards from rockchip like evb_rk3288, evb_rk3399 will comes later. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/ar

Re: [U-Boot] [RESEND PATCH] rockchip: add basic support for evb-rk3288 board

2016-07-07 Thread Kever Yang
Hi Simon, Pls hold this patch for a moment, I have a patch to clean the board files which vendor is rockchip, I will send it later today. Thanks, - Kever On 07/05/2016 06:06 PM, Ziyuan Xu wrote: evb-3288 board RK3288-based development board with 2 USB ports, HDMI, VGA, micro-SD card,

[U-Boot] [PATCH] pwm: add MACRO to limit some code which only for rk3288

2016-07-07 Thread Kever Yang
The grf setting for rkpwm is only need in rk3288, other SoCs like RK3399 which also use rkpwm do not need set the grf, let's add a MACRO to make the code only for RK3288. Change-Id: I167a4e8cf925e840d4bbbcfb1437aaed52b81477 Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drive

[U-Boot] [PATCH] rockchip: rk3399: update MAINTAINER file

2016-08-09 Thread Kever Yang
This patch add maintainer information for rk3399 evb. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/rockchip/evb_rk3399/MAINTAINERS b/board/rockchip/evb_rk3399/MAINTAINERS

[U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Kever Yang
To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- include/configs/rk3399_common.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/c

[U-Boot] [PATCH 2/3] dts: rk3399: enable dwmmc for sdcard

2016-08-01 Thread Kever Yang
Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3399-evb.dts | 4 arch/arm/dts/rk3399.dtsi| 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index bbcfcd0..e92a492 100644 --- a/ar

[U-Boot] [PATCH 0/3] rk3399: enable dwmmc controller for sdcard

2016-08-01 Thread Kever Yang
rk3399 using dwmmc controller for sdcard, let's enable it. this patch set has been test on rk3399 evb. Kever Yang (3): clock: rk3399: add support for dwmmc 400K dts: rk3399: enable dwmmc for sdcard config: rk3399: enable dwmmc controller arch/arm/dts/rk3399-evb.dts | 4 arch

[U-Boot] [PATCH 1/3] clock: rk3399: add support for dwmmc 400K

2016-08-01 Thread Kever Yang
MMC core will use 400KHz for card initialize first and then switch to higher frequency like 50MHz, we need to support both 400KHz and about 50MHz for dwmmc controller. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/clk/clk_rk3399.c | 29 +

Re: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support

2016-08-01 Thread Kever Yang
On 08/02/2016 10:29 AM, Kever Yang wrote: To compatible with distro boot, we need to add gpt and fs support, including gpt table and vfat, ext2, ext4 support. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- include/configs/rk3399_common.h | 19 +++ 1 file c

[U-Boot] [PATCH 3/3] config: rk3399: enable dwmmc controller

2016-08-01 Thread Kever Yang
Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig| 1 + include/configs/rk3399_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 3f9b47e..18f6ae6 100644 --- a/confi

[U-Boot] [PATCH v4] mmc-uclass: correct the device number

2016-07-22 Thread Kever Yang
Not like the mmc-legacy which the devnum starts from 1, it starts from 0 in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num(). Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v4: - call blk_find_max_devnum() in mmc_get_next_devnum for error

[U-Boot] [PATCH v2] configs: rockchip: remove no use MACRO

2016-07-22 Thread Kever Yang
The CONFIG_ROCKCHIP_COMMON and CONFIG_SPL_ROCKCHIP_COMMON are no use now, remove them. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - remove ROCKCHIP_COMMON in Kconfig - remvoe SPL_ROCKCHIP_COMMON at the same time arch/arm/mach-rockchip/rk3036/Kconf

[U-Boot] [PATCH] rk3399: reseve space for trust

2016-07-22 Thread Kever Yang
rk3399 need reserve 0x20 at the begining of DRAM, for ATF usage. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/evb-rk3399.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/ro

  1   2   3   4   5   6   7   8   9   10   >