Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Ziyuan
hi Stephen, On 03/14/2017 05:49 AM, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to specify what partition is used for boo

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-14 Thread Ziyuan
hi Stephen, On 03/14/2017 12:41 PM, Stephen Warren wrote: On 03/13/2017 06:54 PM, Ziyuan wrote: hi Stephen, On 03/14/2017 05:49 AM, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can se

[U-Boot] [bug report] Incorrect result from clk_get_by_name

2017-04-09 Thread Ziyuan
uot;ciu_drv", "ciu_sample". I found that the clock list has only one element, it's "biu". I expected that there are four elements. Actually, I can use clk_get_by_index instead, but I prefer clock name, it's more readable. Ziyuan Xu BR __

Re: [U-Boot] [PATCH 01/33] mmc: select the available type from host_caps and card_caps

2017-05-25 Thread Ziyuan
hi Jaehoon, On 05/16/2017 09:55 AM, Jaehoon Chung wrote: Hi Ziyuan, On 05/16/2017 10:15 AM, Ziyuan wrote: hi Simon & Jaehoon, On 05/16/2017 08:18 AM, Simon Glass wrote: Hi Ziyuan, On 15 May 2017 at 00:06, Ziyuan Xu wrote: The original implementation select HS timing by default,

Re: [U-Boot] [PATCH 01/33] mmc: select the available type from host_caps and card_caps

2017-06-04 Thread Ziyuan
hi Jaehoon, On 05/25/2017 09:08 PM, Jaehoon Chung wrote: Hi Ziyuan, On 05/25/2017 05:12 PM, Ziyuan wrote: hi Jaehoon, On 05/16/2017 09:55 AM, Jaehoon Chung wrote: Hi Ziyuan, On 05/16/2017 10:15 AM, Ziyuan wrote: hi Simon & Jaehoon, On 05/16/2017 08:18 AM, Simon Glass wrote: Hi Zi

[U-Boot] OF_PLATDATA questions on rk3399 platfrom

2017-05-08 Thread Ziyuan
hi simon, I need to achieve emmc_phy physical address in driver, so that I can configure phy in different scenarios (phy register address should be 0xff77f780). see below: sdhci: sdhci@fe33 { phys = <&emmc_phy>; phy-names = "phy_arasan"; }; grf: syscon@ff7700

Re: [U-Boot] [PATCH 01/33] mmc: select the available type from host_caps and card_caps

2017-05-15 Thread Ziyuan
hi Simon & Jaehoon, On 05/16/2017 08:18 AM, Simon Glass wrote: Hi Ziyuan, On 15 May 2017 at 00:06, Ziyuan Xu wrote: The original implementation select HS timing by default, add available type selection for higher speed mode compatibility, such as hs200, hs400, hs400es. By the way, we as

Re: [U-Boot] [PATCH 01/33] mmc: select the available type from host_caps and card_caps

2017-05-15 Thread Ziyuan
hi Jaehoon, On 05/16/2017 09:55 AM, Jaehoon Chung wrote: Hi Ziyuan, On 05/16/2017 10:15 AM, Ziyuan wrote: hi Simon & Jaehoon, On 05/16/2017 08:18 AM, Simon Glass wrote: Hi Ziyuan, On 15 May 2017 at 00:06, Ziyuan Xu wrote: The original implementation select HS timing by default,

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-25 Thread Ziyuan
hi Jaehoon, On 07/28/2017 09:05 PM, Jaehoon Chung wrote: Hi Kever, On 07/26/2017 08:33 PM, Kever Yang wrote: Hi Jaehoon, What's the status of this patch set now? Can we land this patch set or the other patch set from Ziyuan Xu? The performance for mmc in U-Boot is reall

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-27 Thread Ziyuan
hi simon, On 08/28/2017 04:10 AM, Simon Glass wrote: Hi, On 25 August 2017 at 02:16, Ziyuan wrote: hi Jaehoon, On 07/28/2017 09:05 PM, Jaehoon Chung wrote: Hi Kever, On 07/26/2017 08:33 PM, Kever Yang wrote: Hi Jaehoon, What's the status of this patch set now? Can we

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

2016-06-12 Thread Ziyuan Xu
==> u-boot Signed-off-by: Ziyuan Xu --- 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_boot_param.S b/arch/arm

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

2016-06-12 Thread Ziyuan Xu
On 2016年06月12日 13:46, Eddie Cai wrote: Why not move arch/arm/mach-rockchip/rk3036/save_boot_param.S to arch/arm/mach-rockchip/save_boot_param.S. Then use it directly? 2016-06-12 12:29 GMT+08:00 Eddie Cai : Okay, it's make sense to me. Hi 2016-06-12 11:56 GMT+08:00 Ziyuan Xu :

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

2016-06-12 Thread Ziyuan Xu
==> u-boot Signed-off-by: Ziyuan Xu --- 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-spl.c | 3 ++-

[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 --- common/fb_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common

[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 --- common/fb_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common

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 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 and u-boot. This patch

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

2016-06-27 Thread Ziyuan Xu
From: Xu Ziyuan 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 enabled, the spl will retu

[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 --- 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 index 78ec90e..a0617c8 100644 -

[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 --- drivers/usb/phy/Makefile | 1 + drivers/usb/phy/rk3288_usb_phy.c | 29 + 2 files changed, 30 insertions(+) create mode

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

2016-06-30 Thread Ziyuan Xu
ns 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

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

2016-06-30 Thread Ziyuan Xu
Signed-off-by: Ziyuan Xu --- 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 816540e..9766ba0 100644 ---

[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 --- 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/firefly-rk3288_defconfig +++ b

[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 --- configs/chromebook_jerry_defconfig | 1 + configs/evb-rk3036_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/rock2_defconfig| 1 + 4 files changed, 4 insertions(+) diff

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 wrote: 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 partit

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 wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --g

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 wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --g

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

2016-06-30 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 wrote: Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu wrote: Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We wil

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

2016-07-03 Thread Ziyuan Xu
Hi Simon, On 2016年07月01日 23:15, Simon Glass wrote: Hi, On 30 June 2016 at 23:00, Ziyuan Xu wrote: Hi Simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyua

[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

[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 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 --- Changes in v2: - Rename rk3288_usb_phy.c to

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

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan 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 such as firefly-rk3288

[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 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 --- Changes in v2: - Update detailed commit message - Modify the macro's values drivers/usb/gadget/dwc2_udc_otg_regs.h | 6

[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 --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3288-evb.dts | 59 + arch/arm/dts

[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] [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 --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3288-evb.dts | 59 + arch/arm/dts

[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

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 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

[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 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 --- Changes in v3: - Make UOC_CON registers to be

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

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan 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 such as firefly-rk3288

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

2016-07-06 Thread Ziyuan Xu
From: Xu Ziyuan 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 replacement can happen if the CPU

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

2016-07-06 Thread Ziyuan Xu
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 Ziyuan (4): usb: rockchip

[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 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 --- Changes in v3: None Changes in v2: - Update detailed commit message - Modify the macro's values drivers/usb/g

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 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

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 So far, Rockchip SoCs have two kinds of USB2.0 phy, like

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] 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. Signe

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] [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 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. Expansion connector provide

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
d you 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 wrote: Disable EFI applications feature for rockchip platform. Signed-off-by: Ziyuan Xu --- configs/chromebook_jerry_defconfig | 1 + configs/evb-rk3036_defconfig

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

2016-07-11 Thread Ziyuan Xu
From: Xu Ziyuan 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 GPIOs. This add some basic files

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 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 buffer was always zero afte

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 wrote: From: Xu Ziyuan 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

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

2016-07-11 Thread Ziyuan Xu
From: Xu Ziyuan 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 enabled, the spl will retu

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 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

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

2016-07-12 Thread Ziyuan Xu
From: Xu Ziyuan 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, the spl will return to bo

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 wrote: From: Xu Ziyuan 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 sp

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 wrote: From: Xu Ziyuan 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

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

2016-07-13 Thread Ziyuan Xu
From: Xu Ziyuan 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 --- Changes in v4: - Rework fifo size getting and setting - Update commit message Changes in v3: None Changes in v2

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

2016-07-13 Thread Ziyuan Xu
since v3 to 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 comment

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

2016-07-13 Thread Ziyuan Xu
From: Xu Ziyuan 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 such as firefly-rk3288

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

2016-07-13 Thread Ziyuan Xu
From: Xu Ziyuan 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 --- Changes in v4: - Implement a

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

2016-07-13 Thread Ziyuan Xu
From: Xu Ziyuan 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 replacement can happen if the CPU

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 wrote: On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: From: Xu Ziyuan Invalidate dcache before starting the DMA to ensure coherency. In case there are

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 Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion wi

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

2016-07-14 Thread Ziyuan Xu
From: Xu Ziyuan 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 such as firefly-rk3288

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 wrote: From: Xu Ziyuan Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. patch? Yup, patch!!! We will hit "cannot find partition&

[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 --- doc/README.rockchip | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/README.rockchip b/doc/README.rockchip index 3fc2582..c218a8b 100644 --- a/doc/README.rockchip +++ b/doc

[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 --- 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 100644 --- a/arch/arm/dts

[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 --- 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 100644 --- a/configs/evb

[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 --- 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 index 2cf7bae..790a166 1

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

2016-07-18 Thread Ziyuan Xu
meout on data busy dwmci_send_cmd: Timeout on data busy This reverts commit 6efeeea79c880d3dd262e0dca9da2687f0ab68c9. Signed-off-by: Ziyuan Xu --- arch/arm/mach-rockchip/rk3288-board-spl.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/

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 500m

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

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

[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 --- This patch is

[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 --- drivers/mmc/mmc-uclass.c | 2 +- 1

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

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

2016-07-19 Thread Ziyuan Xu
From: Xu Ziyuan 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 Serise-changes: 2 - Up

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 --- inc

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 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 te

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

2016-07-22 Thread Ziyuan Xu
From: Xu Ziyuan 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 --- Changes in v3: - Fix

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 It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c0

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 wrote: On 19 July 2016 at 08:21, Ziyuan Xu wrote: From: Xu Ziyuan It's nicer to see this: => mmc list dwmmc@ff0c: 0 dwmmc@ff0f: 1 (eMMC) than this: => mmc list dwmmc@ff0c0

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 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, devnum=0: dw...@ff0c000

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

2016-07-22 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 --- This commit is base on commit 7ec0b02 "mmc: rockchip add SDHCI dirver support for rockchip soc" (u-boot-rockchip/mas

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

2016-07-22 Thread Ziyuan Xu
CONFIG_SYS_LOAD_ADDR is absolutely safe to store image for fastboot. Signed-off-by: Ziyuan Xu --- This commit is base on commit 170479c "rockchip: remove the duplicated macro config". include/configs/rk3288_common.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[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 --- arch/arm/mach-rockchip/rk3288/Kconfig | 2 +- board/{evb-rk3288/evb-rk3288 => rockchip/evb_rk3288}/Kconfig | 6 ++

[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 --- 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_rk3036/MAINTAINERS b/board

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 wrote: Hi Simon, On 2016年07月23日 10:57, Simon Glass wrote: On 18 July 2016 at 20:13, Ziyuan Xu wrote: Boot Rom wouldn't initialize sdmmc while booting from eMMC. We need to setup sdmmc

[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 0x7df638

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(

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

2016-07-25 Thread Ziyuan Xu
ou can help ...:-) 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 <mailto:xzy...@rock-chips.com>> wrote: hi Stany, T

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

2016-07-25 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

[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-channe

[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 Acked-by: Simon Glass Signed-off-by: Ziyuan Xu --- Changes in v2: None configs/evb-rk3288_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3288_defconfig b/configs/evb

[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 Acked-by: Simon Glass Signed-off-by: Ziyuan Xu --- Changes in v2: None 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

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

2016-07-26 Thread Ziyuan Xu
meout on data busy dwmci_send_cmd: Timeout on data busy This reverts commit 6efeeea79c880d3dd262e0dca9da2687f0ab68c9. Signed-off-by: Ziyuan Xu Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 28 ++-- 1 file

[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 --- 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..72dfb8a 100644 --- a/include

[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 Acked-by: Simon Glass --- Changes in v2: None include/configs/kylin_rk3036.h | 1 - include/configs/rk3036_common.h | 1 - in

  1   2   3   >