[U-Boot] [PATCH 2/2] mmc: dw_mmc: fix data starvation by host timeout under FIFO mode

2016-07-27 Thread Ziyuan Xu
data request interrupt. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/mmc/dw_mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 38d4a64..41b7035 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -120,6

[U-Boot] [PATCH 1/2] mmc: dw_mmc: transfer proper bytes to FIFO

2016-07-27 Thread Ziyuan Xu
The former implement, dw_mmc will push and pop the redundant data to FIFO, we should transfer it according to the real size. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/mmc/dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/dw_mmc.c b/drive

Re: [U-Boot] [PATCH] mmc: send CMD0 before CMD1 for some MMC cards

2016-07-27 Thread Ziyuan Xu
On 2016年07月27日 19:15, Jaehoon Chung wrote: On 07/27/2016 04:28 PM, Yangbo Lu wrote: Hi Tom, Could you help to assign this mmc patch reviewing to right person? It seems no one had reviewed it for almost half year. And another my mmc patch also needs to be reviewed. I submitted in May. Please

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
Hi Sandy, I'm pleased to learn that it does fix for you. On 2016年07月26日 21:16, Sandy Patterson wrote: Hi Ziyuan, good work! This does in fact fix it for me. I followed through your notes. What is isr() supposed to do? it looks like it just tells the compiler that the memory cache has been

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
+ Simon and heiko On 2016年07月26日 14:30, Ziyuan Xu wrote: Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b

[U-Boot] [PATCH v2 10/10] rockchip: add support for rk3288 PopMetal board

2016-07-26 Thread Ziyuan Xu
PopMetal is a rockchip rk3288 based board made by ChipSpark, which has many interface such as HDMI, VGA, USB, micro-SD card, WiFi, Audio and Gigabit Ethernet. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v2: None arch/arm/dts/Makefile

[U-Boot] [PATCH v2 08/10] rockchip: rk3036: update MAINTAINER file

2016-07-26 Thread Ziyuan Xu
Update MAINTAINER files for kylin_rk3036, evb_rk3036. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None board/rockchip/evb_rk3036/MAINTAINERS | 4 ++-- board/rockchip/kylin_rk3036/MAINTAINERS | 4 ++-- 2 file

[U-Boot] [PATCH v2 09/10] rockchip: add basic support for fennec-rk3288 board

2016-07-26 Thread Ziyuan Xu
Fennec is a RK3288-based development board with 2 USB ports, HDMI, micro-SD card, audio and WiFi and Gigabit Ethernet. It also includes on-board 8GB eMMC and 2GB of SDRAM. Expansion connectors provides access to display pins, I2C, SPI, UART and GPIOs. Signed-off-by: Ziyuan Xu <xzy...@r

[U-Boot] [PATCH v2 06/10] rockchip: rk3288: revise CONFIG_FASTBOOT_BUF_ADDR

2016-07-26 Thread Ziyuan Xu
CONFIG_SYS_LOAD_ADDR is absolutely safe to store image for fastboot. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None include/configs/rk3288_common.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --g

[U-Boot] [PATCH v2 07/10] rockchip: rk3288: move evb board to rockchip folder

2016-07-26 Thread Ziyuan Xu
The 'evb-rk3288' is not a vendor name, change it to 'rockchip' which is the real vendor name. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/mach-rockchip/rk3288/Kconfig | 2 +-

[U-Boot] [PATCH v2 05/10] rockchip: remove the duplicated macro config

2016-07-26 Thread Ziyuan Xu
CONFIG_DOS_PARTITION and CONFIG_EFI_PARTITION are already included in config_distro_defaults.h, and we don't need them in SPL stage. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None include/configs/kylin_rk3036.h |

[U-Boot] [PATCH v2 04/10] rockchip: rk3288: disable fastboot in SPL stage

2016-07-26 Thread Ziyuan Xu
Reduce compilation time for SPL. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v2: None include/configs/rk3288_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index 2a36c17..7

[U-Boot] [PATCH v2 01/10] rockchip: add a dummy byte for the sdram-channel property

2016-07-26 Thread Ziyuan Xu
Add an extra byte so that this data is not byteswapped. Signed-off-by: Ziyuan Xu <jk.ker...@gmail.com> Acked-by: Simon Glass <s...@chromium.org> Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v2: None arch/arm/dts/rk3288-evb.dts | 3 ++- 1 file changed,

[U-Boot] [PATCH v2 03/10] Revert "rockchip: Move the MMC setup check earlier"

2016-07-26 Thread Ziyuan Xu
out on data busy dwmci_send_cmd: Timeout on data busy This reverts commit 6efeeea79c880d3dd262e0dca9da2687f0ab68c9. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> Tested-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm

[U-Boot] [PATCH v2 02/10] cosmetic: rockchip: rk3288: pinctrl: fix config symbol naming

2016-07-26 Thread Ziyuan Xu
Revise config to CONFIG_ROCKCHIP_RK3288_PINCTRL. Signed-off-by: Ziyuan Xu <jk.ker...@gmail.com> Acked-by: Simon Glass <s...@chromium.org> Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v2: None configs/evb-rk3288_defconfig | 2 +- 1 file changed, 1 insert

[U-Boot] [PATCH v2 00/10] rockchip: some code optimization and new rk3288 board support

2016-07-26 Thread Ziyuan Xu
This patchset was rebase to commit c482c60 'rockchip: sdram: Fix register layout for Linux'. Changes in v2: - Combine multiple patches to a patchset - Disable fastboot in SPL - Add support for PopMetal rk3288 board Ziyuan Xu (10): rockchip: add a dummy byte for the sdram-channel property

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
+Simon and heiko On 2016年07月26日 14:30, Ziyuan Xu wrote: Dear All, I add the ISB operation after dcache_disable(), and I can jump to linux kernel entry.:-) diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c index 6eac5ef..5cc09ba 100644 --- a/arch/arm/cpu/armv7/cpu.c +++ b/arch

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-26 Thread Ziyuan Xu
:-) On 2016年07月25日 23:00, Sandy Patterson wrote: Ah, thanks. Your debugging looks the same as what I've seen from printf debugging. I'll try to verify though. On Mon, Jul 25, 2016 at 10:58 AM, Ziyuan Xu <xzy...@rock-chips.com <mailto:xzy...@rock-chips.com>> wrote: hi Stany,

Re: [U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
) { printf("Boot reached stage %d\n", progress); } On 2016年07月25日 22:12, Ziyuan Xu wrote: Hi All, I'm sorry to tell you that I failed to boot linux kernel with the mainline u-boot on rk3288 board(both evb-rk3288 & fennec-rk3288). It was stuck in cleanup_before_linux()

[U-Boot] [issue report] mainline u-boot was stuck before booting kernel

2016-07-25 Thread Ziyuan Xu
Hi All, I'm sorry to tell you that I failed to boot linux kernel with the mainline u-boot on rk3288 board(both evb-rk3288 & fennec-rk3288). It was stuck in cleanup_before_linux() before jumping to linux, and the boot_stage_flag is BOOTSTAGE_ID_BOOTM_HANDOFF. ## Current stack ends at

Re: [U-Boot] [PATCH] Revert "rockchip: Move the MMC setup check earlier"

2016-07-24 Thread Ziyuan Xu
Hi Simon, On 2016年07月25日 10:07, Simon Glass wrote: Hi Ziyuan, On 22 July 2016 at 21:45, Ziyuan Xu <xzy...@rock-chips.com> wrote: Hi Simon, On 2016年07月23日 10:57, Simon Glass wrote: On 18 July 2016 at 20:13, Ziyuan Xu <xzy...@rock-chips.com> wrote: Boot Rom wouldn't initialize

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

2016-07-23 Thread Ziyuan Xu
Update MAINTAINER files for kylin_rk3036, evb_rk3036. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- board/rockchip/evb_rk3036/MAINTAINERS | 4 ++-- board/rockchip/kylin_rk3036/MAINTAINERS | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/rockchip/evb_

[U-Boot] [PATCH] rockchip: rk3288: move evb board to rockchip folder

2016-07-23 Thread Ziyuan Xu
The 'evb-rk3288' is not a vendor name, change it to 'rockchip' which is the real vendor name. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/Kconfig | 2 +- board/{evb-rk3288/evb-rk3288 => rockchip/evb_rk3288}/Kconfig

[U-Boot] [PATCH] rockchip: rk3288: revise CONFIG_FASTBOOT_BUF_ADDR

2016-07-23 Thread Ziyuan Xu
CONFIG_SYS_LOAD_ADDR is absolutely safe to store image for fastboot. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- This commit is base on commit 170479c "rockchip: remove the duplicated macro config". include/configs/rk3288_common.h | 4 +--- 1 file changed, 1 insertion

[U-Boot] [PATCH] rockchip: remove the duplicated macro config

2016-07-23 Thread Ziyuan Xu
CONFIG_DOS_PARTITION and CONFIG_EFI_PARTITION are already included in config_distro_defaults.h, and we don't need them in SPL stage. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- This commit is base on commit 7ec0b02 "mmc: rockchip add SDHCI dirver support for rockchip s

Re: [U-Boot] [PATCH] Revert "rockchip: Move the MMC setup check earlier"

2016-07-22 Thread Ziyuan Xu
Hi Simon, On 2016年07月23日 10:57, Simon Glass wrote: On 18 July 2016 at 20:13, Ziyuan Xu <xzy...@rock-chips.com> wrote: Boot Rom wouldn't initialize sdmmc while booting from eMMC. We need to setup sdmmc gpio, otherwise we will hit an error below: =>mmc info blk_get_device: if_type=6,

Re: [U-Boot] [PATCH v2] mmc: display mmc list information like mmc_legacy type

2016-07-22 Thread Ziyuan Xu
Hi Simon, On 2016年07月23日 10:57, Simon Glass wrote: Hi, On 21 July 2016 at 21:21, Simon Glass <s...@chromium.org> wrote: On 19 July 2016 at 08:21, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.com> It's nicer to see this: => mmc list dw

Re: [U-Boot] [PATCH v2] mmc: display mmc list information like mmc_legacy type

2016-07-22 Thread Ziyuan Xu
Hi Jaehoon, Thanks for your catch, fix it in v3. On 2016年07月21日 10:11, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 11:21 PM, Ziyuan Xu wrote: From: Xu Ziyuan <xzy...@rock-chips.com> It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: =&

[U-Boot] [PATCH v3] mmc: display mmc list information like mmc_legacy type

2016-07-22 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) With the former, it's much clearer which mmc devices are on. Signed-off-by: Ziyuan Xu <xzy...

Re: [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288

2016-07-22 Thread Ziyuan Xu
+Alexander Graf On 2016年07月22日 21:49, Sandy Patterson wrote: Ziyuan, I retested the kernel loading. I'm using 3.14 kernel. I also tested with linux-4.7-rc6. I still require both the cache reverts and disabling efi_loader on u-boot/master and u-boot-rockchip/master. (see below for testing

Re: [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288

2016-07-21 Thread Ziyuan Xu
Hi Standy, On 2016年07月14日 01:51, Sandy Patterson wrote: I did a little more on this, and talked to someone else here. It seems that my problem with loading the kernel including these patches is specific to our kernel and after applying a local patch we have, it appears to load fine. So this

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

2016-07-19 Thread Ziyuan Xu
Hi kever, If you intend to remove CONFIG_ROCKCHIP_COMMON, please also remove it in Kconfig.(arch/arm/mach-rockchip/rk3036/Kconfig) And CONFIG_SPL_ROCKCHIP_COMMON? On 2016年07月20日 11:31, Kever Yang wrote: The CONFIG_ROCKCHIP_COMMON is no use now, remove it. Signed-off-by: Kever Yang

[U-Boot] [PATCH v2] mmc: display mmc list information like mmc_legacy type

2016-07-19 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) With the latter, it's much clearer which mmc devices are on. Signed-off-by: Ziyuan Xu <xzy...

Re: [U-Boot] [PATCH] mmc: fix the output format

2016-07-19 Thread Ziyuan Xu
Hi Jaehoon, On 2016年07月19日 18:35, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 07:14 PM, Ziyuan Xu wrote: It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) With the latter, it's much c

[U-Boot] [PATCH] mmc: fix the output format

2016-07-19 Thread Ziyuan Xu
It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) With the latter, it's much clearer which mmc devices are on. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/mmc/mmc-

[U-Boot] [PATCH] rockchip: add basic support for fennec-rk3288 board

2016-07-19 Thread Ziyuan Xu
Fennec is a RK3288-based development board with 2 USB ports, HDMI, micro-SD card, audio and WiFi and Gigabit Ethernet. It also includes on-board 8GB eMMC and 2GB of SDRAM. Expansion connectors provides access to display pins, I2C, SPI, UART and GPIOs. Signed-off-by: Ziyuan Xu <xzy...@r

Re: [U-Boot] [PATCH] mmc: dw_mmc: reduce timeout detection cycle

2016-07-19 Thread Ziyuan Xu
Hi Jaehoon, On 2016年07月19日 15:51, Jaehoon Chung wrote: Hi, On 07/19/2016 04:40 PM, Ziyuan Xu wrote: Hi Jaehoon, On 2016年07月19日 12:22, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 11:33 AM, Ziyuan Xu wrote: Hi Jaehoon, On 2016年07月19日 10:03, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016

Re: [U-Boot] [PATCH] mmc: dw_mmc: reduce timeout detection cycle

2016-07-19 Thread Ziyuan Xu
Hi Jaehoon, On 2016年07月19日 12:22, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 11:33 AM, Ziyuan Xu wrote: Hi Jaehoon, On 2016年07月19日 10:03, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 10:38 AM, Ziyuan Xu wrote: It's no need to speed 10 seconds to wait the mmc device out from busy

Re: [U-Boot] [PATCH] mmc: dw_mmc: reduce timeout detection cycle

2016-07-18 Thread Ziyuan Xu
Hi Jaehoon, On 2016年07月19日 10:03, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 10:38 AM, Ziyuan Xu wrote: It's no need to speed 10 seconds to wait the mmc device out from busy status. 500 milliseconds enough. I agreed that 10 seconds is too big.. Could you explain more how you get 500ms

[U-Boot] [PATCH] Revert "rockchip: Move the MMC setup check earlier"

2016-07-18 Thread Ziyuan Xu
out on data busy dwmci_send_cmd: Timeout on data busy This reverts commit 6efeeea79c880d3dd262e0dca9da2687f0ab68c9. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288-board-spl.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions

[U-Boot] [PATCH] mmc: dw_mmc: reduce timeout detection cycle

2016-07-18 Thread Ziyuan Xu
It's no need to speed 10 seconds to wait the mmc device out from busy status. 500 milliseconds enough. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c

[U-Boot] [PATCH] cosmetic: rockchip: rk3288: pinctrl: fix config symbol naming

2016-07-18 Thread Ziyuan Xu
Revise config to CONFIG_ROCKCHIP_RK3288_PINCTRL. Signed-off-by: Ziyuan Xu <jk.ker...@gmail.com> --- configs/evb-rk3288_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 41cfedd..93be4a5

[U-Boot] [PATCH] rockchip: add a dummy byte for the sdram-channel property

2016-07-18 Thread Ziyuan Xu
Add an extra byte so that this data is not byteswapped. Signed-off-by: Ziyuan Xu <jk.ker...@gmail.com> --- arch/arm/dts/rk3288-evb.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288-evb.dts b/arch/arm/dts/rk3288-evb.dts index caf24ee..3e1ee58

[U-Boot] [PATCH] rockchip: update fastboot usage

2016-07-17 Thread Ziyuan Xu
Introduce how to use fastboot feature on rk3288. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- doc/README.rockchip | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/README.rockchip b/doc/README.rockchip index 3fc2582..c218a8b 100644 ---

Re: [U-Boot] [PATCH v4.1 3/4] rockchip: rk3288: add fastboot support

2016-07-15 Thread Ziyuan Xu
Hi Simon, On 2016年07月15日 11:20, Simon Glass wrote: On 14 July 2016 at 10:26, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. patch?

[U-Boot] [PATCH v4.1 3/4] rockchip: rk3288: add fastboot support

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board

Re: [U-Boot] [PATCH v4 3/4] rockchip: rk3288: add fastboot support

2016-07-14 Thread Ziyuan Xu
Hi William, On 2016年07月14日 19:06, William.wu wrote: Hi Ziyuan Xu, On 2016/7/14 14:52, Ziyuan Xu wrote: From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot fin

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Ziyuan Xu
Hi Simon, On 2016年07月14日 23:00, Simon Glass wrote: On 12 July 2016 at 19:06, Ziyuan Xu <xzy...@rock-chips.com> wrote: On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.c

[U-Boot] [PATCH v4 4/4] usb: dwc2 : invalidate dcache before starting DMA

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Invalidate dcache before starting the DMA to ensure coherency. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt the buffer in memory while the DMA is still going on. Cache-line repla

[U-Boot] [PATCH v4 3/4] rockchip: rk3288: add fastboot support

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board

[U-Boot] [PATCH v4 1/4] usb: rockchip-phy: implement USB2.0 phy control

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two kinds of USB2.0 phy, such as Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement phy_init() and phy_off() methods for Synopsys phy on Rockchip platform. Signed-off-by: Ziyuan Xu <xz

[U-Boot] [PATCH v4 2/4] usb: dwc2-otg: adjust fifo size via platform data

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> The total FIFO size of some SoCs may be different from the existen, this patch supports fifo size setting from platform data. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v4: - Rework fifo size getting and setting - U

[U-Boot] [PATCH v4 0/4] rockchip: rk3288: add fastboot support

2016-07-14 Thread Ziyuan Xu
fix the coherence issue between memory and cache Changes in v2: - Rename rk3288_usb_phy.c to rockchip_usb_syno_phy.c - Rework the behaviour in otg_phy_init() and otg_phy_off() - Update detailed commit message - Modify the macro's values - Achieve the regs_phy from DT - Update comments a little Xu Ziyua

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-12 Thread Ziyuan Xu
On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.com> Invalidate dcache before starting the DMA to ensure coherency. In case there are any dirty lines from the DMA buffer

Re: [U-Boot] [PATCH v5] rockchip: add option to change method of loading u-boot

2016-07-12 Thread Ziyuan Xu
hi Simon, On 2016年07月12日 21:28, Simon Glass wrote: On 12 July 2016 at 05:09, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large SPL bina

[U-Boot] [PATCH v5] rockchip: add option to change method of loading u-boot

2016-07-12 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large SPL binary. Rockchip SoC's bootrom code has the ability to load spl and u-boot, then boot. If CONFIG_ROCKCHIP_SPL_BACK_TO_BROM is enabled, t

Re: [U-Boot] [PATCH v4] rockchip: add option to change method of loading u-boot

2016-07-11 Thread Ziyuan Xu
hi Andreas, Thanks for your catch. I will revise the typos. On 2016年07月12日 12:30, Andreas Färber wrote: Am 12.07.2016 um 05:18 schrieb Ziyuan Xu: From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a sl

[U-Boot] [PATCH v4] rockchip: add option to change method of loading u-boot

2016-07-11 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large SPL binrary. Rockchip SoC's bootrom code has the ability to load spl and u-boot, then boot. If CONFIG_ROCKCHIP_SPL_BACK_TO_BROM is e

Re: [U-Boot] [PATCH v3] rockchip: rk3288: Change method of loading u-boot

2016-07-11 Thread Ziyuan Xu
hi Simon, On 2016年07月12日 07:29, Simon Glass wrote: Hi Ziyuan, On 27 June 2016 at 02:30, Ziyuan Xu <xzy...@rock-chips.com> wrote: From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large

Re: [U-Boot] [PATCH v3 0/4] rockchip: rk3288: add fastboot support

2016-07-11 Thread Ziyuan Xu
hi Simon, On 2016年07月12日 07:54, Simon Glass wrote: Hi, On 6 July 2016 at 03:34, Ziyuan Xu <xzy...@rock-chips.com> wrote: This patchset add the fastboot support for rk3288, and I have tested on firefly-rk3288 board. Fix an issue which was mentioned in V1's cover-letter: The DMA

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

2016-07-11 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> evb-3288 board RK3288-based development board with 2 USB ports, HDMI, VGA, micro-SD card, audio, WiFi and Gigabit Ethernet. It also includes on-board 8G eMMC and 2GB of SDRAM. Expansion connector provide access to display pins, I2C, SPI, UART and

Re: [U-Boot] [PATCH] rockchip: disable CONFIG_EFI_LOADER[Involving remittance information, please pay attention to the safety of property]

2016-07-10 Thread Ziyuan Xu
take a view on? Thanks! On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:28, Ziyuan Xu <xzy...@rock-chips.com> wrote: Disable EFI applications feature for rockchip platform. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- configs/chromebook_jerry_d

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

2016-07-10 Thread Ziyuan Xu
On 2016年07月09日 22:39, Simon Glass wrote: On 5 July 2016 at 04:06, Ziyuan Xu <xzy...@rock-chips.com> wrote: evb-3288 board RK3288-based development board with 2 USB ports, HDMI, VGA, micro-SD card, audio, WiFi and Gigabit Ethernet. It also includes on-board 8G eMMC and 2GB of SDRAM. Exp

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

2016-07-07 Thread Ziyuan Xu
On 2016年07月08日 11:30, Kever Yang wrote: 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

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

2016-07-07 Thread Ziyuan Xu
On 2016年07月08日 10:45, Kever Yang 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 code only for RK3288. Change-Id: I167a4e8cf925e840d4bbbcfb1437aaed52b81477 Superfluous Change-Id.

Re: [U-Boot] [PATCH v3 1/4] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-07 Thread Ziyuan Xu
On 2016年07月08日 04:33, Heiko Stuebner wrote: Am Donnerstag, 7. Juli 2016, 09:58:38 schrieb Ziyuan Xu: On 2016年07月06日 21:42, Heiko Stuebner wrote: Am Mittwoch, 6. Juli 2016, 14:48:57 schrieb Heiko Stuebner: Am Mittwoch, 6. Juli 2016, 18:20:04 schrieb Ziyuan Xu: Hi heiko, On 2016年07月06日 17

Re: [U-Boot] [PATCH v3 1/4] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-06 Thread Ziyuan Xu
On 2016年07月06日 21:42, Heiko Stuebner wrote: Am Mittwoch, 6. Juli 2016, 14:48:57 schrieb Heiko Stuebner: Am Mittwoch, 6. Juli 2016, 18:20:04 schrieb Ziyuan Xu: Hi heiko, On 2016年07月06日 17:34, Ziyuan Xu wrote: From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two

Re: [U-Boot] [PATCH v3 1/4] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-06 Thread Ziyuan Xu
Hi heiko, On 2016年07月06日 17:34, Ziyuan Xu wrote: From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two kinds of USB2.0 phy, like Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement phy_init and phy_off for Synopsys phy on Rockchip pl

[U-Boot] [PATCH v3 2/4] usb: dwc2-otg: re-define fifo-size for Rockchip SoCs

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> The total FIFO size of dwc2 on Rockchip SoCs is shorter than the existen, so re-define them to fit Rockchip SoCs. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v3: None Changes in v2: - Update detailed commit mess

[U-Boot] [PATCH v3 0/4] rockchip: rk3288: add fastboot support

2016-07-06 Thread Ziyuan Xu
Changes in v2: - Rename rk3288_usb_phy.c to rockchip_usb_syno_phy.c - Rework the behaviour in otg_phy_init() and otg_phy_off() - Update detailed commit message - Modify the macro's values - Achieve the regs_phy from DT - Update comments a little Xu Ziyuan (4): usb: rockchip-phy: implement

[U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Invalidate dcache before starting the DMA to ensure coherency. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt the buffer in memory while the DMA is still going on. Cache-line repla

[U-Boot] [PATCH v3 3/4] rockchip: rk3288: add fastboot support

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board

[U-Boot] [PATCH v3 1/4] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two kinds of USB2.0 phy, like Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement phy_init and phy_off for Synopsys phy on Rockchip platform. Signed-off-by: Ziyuan Xu <xzy...@rock-

Re: [U-Boot] [PATCH v2 1/3] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-05 Thread Ziyuan Xu
On 2016年07月06日 06:01, Heiko Stuebner wrote: Am Dienstag, 5. Juli 2016, 10:05:52 schrieb Ziyuan Xu: From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two kinds of USB2.0 phy, like Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement ph

[U-Boot] [RESEND PATCH 0/1] rockchip: add the support for evb-rk3288 board

2016-07-05 Thread Ziyuan Xu
This patch adds support for the evb-rk3288 which is a rk3288-based development board. The same as firefly, it also supports booting from eMMC or SD card, the default is eMMC. Please refer to doc/README.rockchip to achieve the upgrade approach like firefly-rk3288. Ziyuan Xu (1): rockchip: add

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

2016-07-05 Thread Ziyuan Xu
the board to output serial messaged and can run command(mmc info etc). evb-rk3288 also supports booting from eMMC or SD card, the default is eMMC. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3288-e

[U-Boot] [PATCH 0/1] rockchip: add the support for evb-rk3288 board

2016-07-05 Thread Ziyuan Xu
This patch adds support for the evb-rk3288 which is a rk3288-based development board. The same as firefly, it also supports booting from eMMC or SD card, the default is eMMC. Please refer to doc/README.rockchip to achieve the upgrade approach like firefly-rk3288. Ziyuan Xu (1): rockchip: add

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

2016-07-05 Thread Ziyuan Xu
the board to output serial messaged and can run command(mmc info etc). evb-rk3288 also supports booting from eMMC or SD card, the default is eMMC. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3288-e

[U-Boot] [PATCH v2 2/3] usb: dwc2-otg: re-define fifo-size for Rockchip SoCs

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> The total FIFO size of dwc2 on Rockchip SoCs is shorter than the existen, so re-define them to fit Rockchip SoCs. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- Changes in v2: - Update detailed commit message - Modify the macro's valu

[U-Boot] [PATCH v2 1/3] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> So far, Rockchip SoCs have two kinds of USB2.0 phy, like Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement phy_init and phy_off for Synopsys phy on Rockchip platform. Signed-off-by: Ziyuan Xu <xzy...@rock-

[U-Boot] [PATCH v2 3/3] rockchip: rk3288: add fastboot support

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board

[U-Boot] [PATCH v2 0/3] rockchip: rk3288: add fastboot support

2016-07-04 Thread Ziyuan Xu
This patchset add the fastboot support for rk3288, and I have tested on firefly-rk3288 board. Summary of changes in this series: - Rework the behaviour in otg_phy_init() and otg_phy_off() - Achieve the regs_phy from DT - Update comments a little Xu Ziyuan (3): usb: rockchip-phy: implement

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-07-04 Thread Ziyuan Xu
Hi Simon, On 2016年07月01日 23:15, Simon Glass wrote: Hi, On 30 June 2016 at 23:00, Ziyuan Xu <xzy...@rock-chips.com> wrote: Hi Simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu <xzy...@rock-chips.com> wrote: Redefine RX FIFO size &a

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-07-01 Thread Ziyuan Xu
Hi Steve, On 2016年07月01日 05:55, Steve Rae wrote: Hi Ziyuan, On Thu, Jun 30, 2016 at 8:23 AM, Simon Glass <s...@chromium.org> wrote: Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu <xzy...@rock-chips.com> wrote: Enable fastboot feature on rk3288. This path doesn't support the fa

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-07-01 Thread Ziyuan Xu
Hi Simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu <xzy...@rock-chips.com> wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Ziyuan Xu
hi simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu <xzy...@rock-chips.com> wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support[Involving remittance information, please pay attention to the safety of property]

2016-06-30 Thread Ziyuan Xu
On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu <xzy...@rock-chips.com> wrote: Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion w

[U-Boot] [PATCH] rockchip: disable CONFIG_EFI_LOADER

2016-06-30 Thread Ziyuan Xu
Disable EFI applications feature for rockchip platform. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- configs/chromebook_jerry_defconfig | 1 + configs/evb-rk3036_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/rock2_defconfig| 1 + 4 files chan

[U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Ziyuan Xu
Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/mach-rockchip/board.c | 20 include/configs/rk3288_common.h | 25 + 2 files changed, 45 insertions(+) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index

[U-Boot] [PATCH 4/4] rockchip: firefly-rk3288: undef CONFIG_EFI_LOADER

2016-06-30 Thread Ziyuan Xu
Disable EFI applications feature. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- configs/firefly-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 4af9120..8855409 100644 --- a/configs/f

[U-Boot] [PATCH 1/4] usb: phy: implement usb-otg phy control for rk3288

2016-06-30 Thread Ziyuan Xu
Apply dwc2 usb driver framework to implement phy_init and phy_off, and enable it with CONFIG_RK3288_USB_PHY. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/usb/phy/Makefile | 1 + drivers/usb/phy/rk3288_usb_phy.c | 29 + 2 files chang

[U-Boot] [PATCH 0/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Ziyuan Xu
on rk3288 platform. Ziyuan Xu (4): usb: phy: implement usb-otg phy control for rk3288 usb: dwc2-otg: redefine fifo-size for rk3288 rockchip: rk3288: add fastboot support rockchip: firefly-rk3288: undef CONFIG_EFI_LOADER arch/arm/mach-rockchip/board.c | 20

[U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Ziyuan Xu
Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h b/drivers/usb/gadget/dwc2_udc_otg_regs.h ind

[U-Boot] [PATCH v3] rockchip: rk3288: Change method of loading u-boot

2016-06-27 Thread Ziyuan Xu
From: Xu Ziyuan <xzy...@rock-chips.com> If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large spl binrary. RK3288's bootrom code has the ability to load spl and u-boot, then boot. If CONFIG_ROCKCHIP_RK3288_SPL_BACKTO_BROM is e

Re: [U-Boot] [PATCH v2] rockchip: rk3288: Change method of loading u-boot

2016-06-26 Thread Ziyuan Xu
On 2016年06月17日 11:50, Simon Glass wrote: Hi, On 12 June 2016 at 01:39, Ziyuan Xu <xzy...@rock-chips.com> wrote: If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large spl binrary. RK3288's bootrom code has the ability to load spl

[U-Boot] [RESEND] common: block: fix compiler error with CONFIG_FASTBOOT_FLASH_MMC_DEV

2016-06-15 Thread Ziyuan Xu
This fixes the following compiler error: common/fb_mmc.c: In function ‘fb_mmc_erase’: common/fb_mmc.c:209:17: error: ‘struct blk_desc’ has no member named ‘block_erase’ Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- common/fb_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[U-Boot] [PATCH] common: block: fix error with CONFIG_FASTBOOT_FLASH_MMC_DEV

2016-06-15 Thread Ziyuan Xu
This fixes the following compiler error: common/fb_mmc.c: In function ‘fb_mmc_erase’: common/fb_mmc.c:209:17: error: ‘struct blk_desc’ has no member named ‘block_erase’ Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- common/fb_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [U-Boot] [PATCH] rockchip: rk3288: Change method of loading u-boot

2016-06-12 Thread Ziyuan Xu
GMT+08:00 Ziyuan Xu <xzy...@rock-chips.com>: If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly larger spl binrary. RK3288's bootrom code has the ability to load spl and u-boot. This patch tasks maskrom to load u-boot. Loading sequence

[U-Boot] [RESEND] rockchip: rk3288: Change method of loading u-boot

2016-06-12 Thread Ziyuan Xu
t; u-boot Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rk3036/Makefile | 1 - arch/arm/mach-rockchip/rk3036/save_boot_param.S | 32 - arch/arm/mach-rockchip/rk3288-board-s

[U-Boot] [PATCH] rockchip: rk3288: Change method of loading u-boot

2016-06-12 Thread Ziyuan Xu
t; u-boot Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/save_boot_param.S | 32 + 1 file changed, 32 insertions(+) create mode 100644 arch/arm/mach-rockchip/rk3288/save_boot_param.S diff --git a/arch/arm/mach-rockchip/rk3288/save_

<    1   2   3   >