Re: [U-Boot] [PATCH v1 01/12] rockchip: define SUPPORT_SPL and SPL config in RK3288 config

2015-10-22 Thread Eddie Cai
Hi Simon 2015-10-22 22:07 GMT+08:00 Simon Glass : > Hi Lin, > > On 20 October 2015 at 20:37, Lin Huang wrote: > > it may not use SPL in other rockchip SOC, so move SUPPORT_SPL and > > SPL config to rk3288 configuration. > > > > Signed-off-by: Lin Huang > > --- > > Changes in v1: None > > > > a

Re: [U-Boot] [PATCH v1 01/12] rockchip: define SUPPORT_SPL and SPL config in RK3288 config

2015-10-22 Thread Eddie Cai
Hi Simon 2015-10-23 0:30 GMT+08:00 Simon Glass : > Hi Eddie, > > On 22 October 2015 at 10:01, Eddie Cai wrote: > > Hi Simon > > > > 2015-10-22 22:07 GMT+08:00 Simon Glass : > >> > >> Hi Lin, > >> > >> On 20 October 2015 at 20:37, Li

Re: [U-Boot] [PATCH v2 16/17] rockchip: rk3036: Add core Soc start-up code

2015-11-06 Thread Eddie Cai
Hi Sjoerd 2015-11-06 17:11 GMT+08:00 Sjoerd Simons : > On Wed, 2015-11-04 at 20:53 +0800, Lin Huang wrote: > > rk3036 only 4K size SRAM for SPL, so only support > > timer, uart, sdram driver in SPL stage, when finish > > initial sdram, back to bootrom. > > > > Signed-off-by: Lin Huang > > > > >

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

2016-06-12 Thread Eddie Cai
Hi 2016-06-12 11:56 GMT+08:00 Ziyuan Xu : > 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

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

2016-06-12 Thread Eddie Cai
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 : > > Hi > > 2016-06-12 11:56 GMT+08:00 Ziyuan Xu : >> >> If we would like to boot from SD card, we have

Re: [U-Boot] Missing maintainers[Involving remittance information, please pay attention to the safety of property]

2016-07-02 Thread Eddie Cai
HI Simon Huang Lin is the correct guy for this. But he is kind of busy these days. I will talk to him to see if he have time to do it. 2016-06-30 23:24 GMT+08:00 Simon Glass : > Hi Eddie, > > A few boards are missing maintainer files - can you please see if > someone can send a patch for this? >

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

2016-07-07 Thread Eddie Cai
k3288, evb_rk3399 will comes later. > > Signed-off-by: Kever Yang Reviewed-by: Eddie Cai > --- > arch/arm/mach-rockchip/rk3036/Kconfig | 4 +- > board/evb_rk3036/evb_rk3036/Kconfig| 15 -- > board/evb_rk3036/evb_rk3036/MAINTAINERS| 0 > board/evb_rk30

Re: [U-Boot] [PATCH 0/3] This series adds support for fastboot related to USB.

2016-06-06 Thread Eddie Cai
Hi Lukasz I guess you missed this mail thread. So send it again. Can you help to review this patch set? 2016-01-18 14:24 GMT+08:00 Eddie Cai : > Hi Lukasz > > Have you back to office? Much appreciate if you can review Frank's patch. > > Thanks > Eddie > > 2015

Re: [U-Boot] rockchip: SecureBoot Support?

2016-08-04 Thread Eddie Cai
Hi 2016-08-05 9:36 GMT+08:00 Simon Glass : > Hi Gregory, > > On 3 August 2016 at 21:21, Gregory Ray wrote: >> Hello, >> >> Is SecureBoot from the manufacturers u-boot distribution operational? When I >> try to sign the loader using the SBC it complains "Sign loader failed!" >> >> I did a standard

[U-Boot] distro bootcmd: auto write GPT table in scan_dev_for_boot_part

2017-03-05 Thread Eddie Cai
scan_dev_for_boot_part will fail when there is no GPT table. So add auto write GPT table if fail to get it. Signed-off-by: Eddie Cai --- include/config_distro_bootcmd.h | 8 1 file changed, 8 insertions(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-03-05 Thread Eddie Cai
Hi Simon 2017-02-23 11:33 GMT+08:00 Simon Glass : > Hi Eddie, > > On 22 February 2017 at 07:12, Eddie Cai wrote: > > Hi Simon > > > > 2017-02-22 17:05 GMT+08:00 Eddie Cai : > >> > >> Hi Simon > >> > >> 2017-02-22 11:59 GMT+08:00

Re: [U-Boot] [U-Boot 0/2] add spl_early_init to fix rk3288 board broken issue

2017-03-05 Thread Eddie Cai
Hi Simon I guess you may lost this patch. So a friendly ping. 2017-02-23 9:59 GMT+08:00 Eddie Cai : > Andrew F. Davis's below patch broke rk3288 based board. that is because we > call > spl_init in board_init_f which is at very early stage. What Andrew want to > fix > is c

[U-Boot] rockchip: dts: tinker: add usb host power supply node

2017-03-06 Thread Eddie Cai
Tinker board have a usb host. add dts node to provide power supply. Signed-off-by: Eddie Cai --- arch/arm/dts/rk3288-tinker.dts | 11 +++ arch/arm/dts/rk3288-tinker.dtsi | 12 2 files changed, 23 insertions(+) diff --git a/arch/arm/dts/rk3288-tinker.dts b/arch/arm/dts

[U-Boot] rockchip: config: enable the USB host for rk3288 based board

2017-03-06 Thread Eddie Cai
RK3288 using the dwc2 USB host controller, enable it and other usb host funtion like storage and ethernet. Signed-off-by: Eddie Cai --- configs/fennec-rk3288_defconfig | 3 +++ configs/firefly-rk3288_defconfig | 3 +++ configs/tinker-rk3288_defconfig | 3 +++ 3 files changed, 9 insertions

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-03-07 Thread Eddie Cai
Hi Simon 2017-03-06 14:46 GMT+08:00 Eddie Cai : > Hi Simon > > 2017-02-23 11:33 GMT+08:00 Simon Glass : > >> Hi Eddie, >> >> On 22 February 2017 at 07:12, Eddie Cai >> wrote: >> > Hi Simon >> > >> > 2017-02-22 17:05 GMT+08:00 Eddie

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-03-08 Thread Eddie Cai
2017-03-08 17:29 GMT+08:00 Sjoerd Simons : > On Wed, 2017-03-08 at 09:30 +0800, Eddie Cai wrote: > > Hi Simon > > > > 2017-03-06 14:46 GMT+08:00 Eddie Cai : > > > > > Hi Simon > > > > > > 2017-02-23 11:33 GMT+08:00 Simon Glass : > > >

[U-Boot] [U-Boot 0/3] introduce Rockchip rockusb

2017-03-15 Thread Eddie Cai
rockusb is a protocol run between host pc and device. it help people get device info, flash image to device. this patch implement rockusb on device side. Eddie Cai (3): drivers: usb: gadget: add the rockusb gadget cmd: add rockusb command rockchip: rk3288: enable rockusb support on rk3288

[U-Boot] [U-Boot 2/3] cmd: add rockusb command

2017-03-15 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb [] e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai --- cmd/Kconfig | 12 + cmd/Makefile | 1 + cmd/rockusb.c | 79 +++ include/rockusb.h | 13 + 4

[U-Boot] [U-Boot 1/3] drivers: usb: gadget: add the rockusb gadget

2017-03-15 Thread Eddie Cai
this patch implement fastboot protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work with rkdeveloptool; https://github.com/rockchip-linux/rkdeveloptool Signed-off-by: Eddie Cai --- drivers/usb

[U-Boot] [U-Boot 3/3] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-03-15 Thread Eddie Cai
this patch enable rockusb support on rk3288 based device. Signed-off-by: Eddie Cai --- include/configs/rk3288_common.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index b5606d4..b19a34d 100644 --- a/include/configs

Re: [U-Boot] [U-Boot 0/3] introduce Rockchip rockusb

2017-03-15 Thread Eddie Cai
Hi Lukasz 2017-03-15 17:06 GMT+08:00 Lukasz Majewski : > On Wed, 15 Mar 2017 15:56:02 +0800 > Eddie Cai wrote: > > > rockusb is a protocol run between host pc and device. it help people > > get device info, flash image to device. this patch implement rockusb > > on

Re: [U-Boot] [U-Boot 0/2] add spl_early_init to fix rk3288 board broken issue

2017-03-16 Thread Eddie Cai
2017-03-16 9:39 GMT+08:00 Simon Glass : > Hi Eddie, > > On 6 March 2017 at 00:03, Eddie Cai wrote: > > Hi Simon > > I guess you may lost this patch. So a friendly ping. > > I did not lose it, but I thought I commented on it, that we needed to > remove the duplica

Re: [U-Boot] [PATCH v4 1/2] spl: Add spl_early_init()

2017-03-16 Thread Eddie Cai
2017-03-15 22:43 GMT+08:00 Simon Glass : > From: Eddie Cai > > At present malloc_base/_limit/_ptr are not initialised in spl_init() when > we call spl_init() in board_init_f(). This is due to a recent change aimed > at avoiding overwriting the malloc area set up on

Re: [U-Boot] [PATCH v4 2/2] rockchip: rk3288: use spl_early_init() instead of spl_init()

2017-03-16 Thread Eddie Cai
2017-03-15 22:43 GMT+08:00 Simon Glass : > From: Eddie Cai > > Use spl_early_init() to make sure that early malloc() is initialised. This > fixes booting on firefly-rk3288, for example. > > Signed-off-by: Eddie Cai > Signed-off-by: Simon Glass > Reviewed-by: Eddie Cai

Re: [U-Boot] [U-Boot 0/3] introduce Rockchip rockusb

2017-03-19 Thread Eddie Cai
2017-03-17 5:26 GMT+08:00 Marek Vasut : > On 03/15/2017 08:56 AM, Eddie Cai wrote: > > rockusb is a protocol run between host pc and device. it help people get > device > > info, flash image to device. this patch implement rockusb on device side. > > What is the benefit

Re: [U-Boot] [U-Boot 1/3] drivers: usb: gadget: add the rockusb gadget

2017-03-20 Thread Eddie Cai
2017-03-16 15:05 GMT+08:00 Kever Yang : > Hi Eddie, > > I recommend you to use ums framework instead of fastboot, because > ums have dual-buffer which improve performance. > I will try to add dual buffer support in next version > > Thanks, > - Kever > > On

Re: [U-Boot] [U-Boot 2/3] cmd: add rockusb command

2017-03-20 Thread Eddie Cai
Hi Simon 2017-03-20 10:29 GMT+08:00 Simon Glass : > Hi Eddie, > > On 15 March 2017 at 01:56, Eddie Cai wrote: > > > > this patch add rockusb command. the usage is > > rockusb [] > > e.g. rockusb 0 mmc 0 > > > > Signed-off-by: E

Re: [U-Boot] [U-Boot 3/3] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-03-20 Thread Eddie Cai
Hi Simon 2017-03-20 10:30 GMT+08:00 Simon Glass : > Hi Eddie. > > On 15 March 2017 at 01:56, Eddie Cai wrote: > > this patch enable rockusb support on rk3288 based device. > > > > Signed-off-by: Eddie Cai > > --- > > include/configs/rk3288_common.h | 4

Re: [U-Boot] [PATCH v2] rockchip: Add support for MiQi rk3288 board

2017-03-26 Thread Eddie Cai
Hi Jernej 2017-03-27 0:49 GMT+08:00 Jernej Skrabec : > MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC, > micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and > expansion ports. > > Signed-off-by: Jernej Skrabec > --- > > Changes in v2: > - change license

[U-Boot] rockchip: dts: firefly: add usb host power supply node

2017-03-27 Thread Eddie Cai
firefly have a usb host. add dts node to provide power supply Signed-off-by: Eddie Cai --- arch/arm/dts/rk3288-firefly.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/rk3288-firefly.dts b/arch/arm/dts/rk3288-firefly.dts index 97568a3..59ff8bc 100644 --- a/arch

Re: [U-Boot] [U-Boot 0/3] introduce Rockchip rockusb

2017-03-28 Thread Eddie Cai
ince I don't know if you work on v2 of those > patches (as Kever Yang pointed out that UMS approach could be > re-used here)? > > (And just gentle reminder of the README.xxx file to describe > this protocol). > I am working on V2 patch. It will reused ums function as more as po

Re: [U-Boot] [PATCH v3 1/2] rockchip: cosmetic: Sort RK3288 boards

2017-03-30 Thread Eddie Cai
HI Jernej 2017-03-30 7:23 GMT+08:00 Jernej Skrabec : > Sort rk3288 boards in alphabetical order. > > Signed-off-by: Jernej Skrabec > Reviewed-by: Eddie Cai > --- > Changes in v3: > - new patch > > arch/arm/dts/Makefile | 10 ++-- > arch/arm/mac

Re: [U-Boot] [PATCH v3 2/2] rockchip: Add support for MiQi rk3288 board

2017-03-30 Thread Eddie Cai
HI Jernej 2017-03-30 7:23 GMT+08:00 Jernej Skrabec : > MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC, > micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and > expansion ports. > > Signed-off-by: Jernej Skrabec > Reviewed-by: Eddie Cai

[U-Boot] rockchip: tinker: configs: Add USB, PXE, DHCP to the default boot targets

2017-03-31 Thread Eddie Cai
tinker board support ethernet and usb host, so enable USB, PXE and DHCP support. Signed-off-by: Eddie Cai --- include/configs/tinker_rk3288.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/tinker_rk3288.h b/include/configs/tinker_rk3288.h index c398e07

[U-Boot] rockchip: Add USB to the default boot targets

2017-03-31 Thread Eddie Cai
Now that most rockchip SoC based board have usb host support, enable USB boot targets by default. Signed-off-by: Eddie Cai --- include/configs/rockchip-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index

[U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

2017-03-31 Thread Eddie Cai
memory locations into the cache while the DMA is going on. Signed-off-by: Eddie Cai --- drivers/usb/host/dwc2.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 5ac602e..a151ba6 100644 --- a/drivers/usb

[U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-02-16 Thread Eddie Cai
Auto write GPT table if fail to get GPT table when scan_dev_for_boot_part Signed-off-by: Eddie Cai --- arch/arm/mach-rockchip/rk3036-board.c | 20 ++- arch/arm/mach-rockchip/rk3288-board.c | 20 ++- arch/arm/mach-rockchip/rk3399-board.c | 46

[U-Boot] rockchip: tinker: configs: use correct mmc instance as boot target device

2017-02-20 Thread Eddie Cai
Chung Date: Thu Feb 2 13:41:14 2017 +0900 mmc: mmc-uclass: use the fixed devnum with alias node Signed-off-by: Eddie Cai --- include/configs/tinker_rk3288.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/tinker_rk3288.h b/include/co

[U-Boot] dts: rk3399: add mmc alias for rk3399

2017-02-20 Thread Eddie Cai
add mmc alias for rk3399 Signed-off-by: Eddie Cai --- arch/arm/dts/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi index 22277ff..d7ba7bd 100644 --- a/arch/arm/dts/rk3399.dtsi +++ b/arch/arm/dts/rk3399.dtsi @@ -24,6 +24,8

[U-Boot] dts: rk3036: add sdmmc for rk3036

2017-02-20 Thread Eddie Cai
rk3036 support sdmmc, add dts node to support it. Signed-off-by: Eddie Cai --- arch/arm/dts/rk3036.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/rk3036.dtsi b/arch/arm/dts/rk3036.dtsi index ecf5416..4f44217 100644 --- a/arch/arm/dts/rk3036.dtsi +++ b/arch

[U-Boot] rockchip: rk3288: init malloc_base, limit, ptr before spl_init

2017-02-21 Thread Eddie Cai
ff-by: Eddie Cai --- arch/arm/mach-rockchip/rk3288-board-spl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c index 930939a..1f3170d 100644 --- a/arch/arm/mach-rockchip/rk3288-board-spl.c +++ b

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-02-22 Thread Eddie Cai
Hi Simon 2017-02-22 11:59 GMT+08:00 Simon Glass : > Hi Eddie, > > On 17 February 2017 at 00:57, Eddie Cai wrote: > > Auto write GPT table if fail to get GPT table when scan_dev_for_boot_part > > > > Signed-off-by: Eddie Cai > > --- > > arc

Re: [U-Boot] [PATCH] rockchip: set scan_dev_for_boot_part env for rockchip SoC

2017-02-22 Thread Eddie Cai
Hi Simon 2017-02-22 17:05 GMT+08:00 Eddie Cai : > Hi Simon > > 2017-02-22 11:59 GMT+08:00 Simon Glass : > >> Hi Eddie, >> >> On 17 February 2017 at 00:57, Eddie Cai >> wrote: >> > Auto write GPT table if fail to get GPT table when >> scan_d

[U-Boot] [U-Boot 1/2] spl: add spl_early_init

2017-02-22 Thread Eddie Cai
an 27 10:39:19 2017 -0600 spl: Remove overwrite of relocated malloc limit Signed-off-by: Eddie Cai --- common/spl/spl.c | 54 +-- include/asm-generic/global_data.h | 1 + include/spl.h | 12 - 3 files change

[U-Boot] [U-Boot 0/2] add spl_early_init to fix rk3288 board broken issue

2017-02-22 Thread Eddie Cai
te of relocated malloc limit Eddie Cai (2): spl: add spl_early_init rockchip: use spl_early_init instead of spl_init arch/arm/mach-rockchip/rk3288-board-spl.c | 2 +- common/spl/spl.c | 54 ++- include/asm-generic/global_data.h

[U-Boot] [U-Boot 2/2] rockchip: use spl_early_init instead of spl_init

2017-02-22 Thread Eddie Cai
use spl_early_init to avoid malloc_base, limit, ptr not initualized. Signed-off-by: Eddie Cai --- arch/arm/mach-rockchip/rk3288-board-spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c

Re: [U-Boot] rockchip: rk3288: init malloc_base, limit, ptr before spl_init

2017-02-22 Thread Eddie Cai
Hi Simon 2017-02-22 12:00 GMT+08:00 Simon Glass : > Hi Eddie, > > On 21 February 2017 at 01:15, Eddie Cai wrote: > > Andrew F. Davis's below patch broke rk3288 based board. that is because > we call > > spl_init in board_init_f which is at very early stage. Wha

Re: [U-Boot] [PATCH V7 4/4] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-06-28 Thread Eddie Cai
Hi Lukasz 2017-06-21 15:44 GMT+08:00 Lukasz Majewski : > Hi Eddie, > >> Hi Eddie, >> >> > 2017-05-31 15:12 GMT+08:00 Lukasz Majewski : >> > > On Wed, 31 May 2017 10:27:23 +0800 >> > > Eddie Cai wrote: >> > > >> >

Re: [U-Boot] [PATCH V7 4/4] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-06-28 Thread Eddie Cai
2017-06-28 15:55 GMT+08:00 Lukasz Majewski : > Hi Eddie, > >> Hi Lukasz >> >> 2017-06-21 15:44 GMT+08:00 Lukasz Majewski : >> > Hi Eddie, >> > >> >> Hi Eddie, >> >> >> >> > 2017-05-31 15:12 GMT+08:00 Lukasz M

Re: [U-Boot] [PATCH V7 4/4] rockchip: rk3288: enable rockusb support on rk3288 based device

2017-06-29 Thread Eddie Cai
2017-06-29 18:49 GMT+08:00 Lukasz Majewski : > On Thu, 29 Jun 2017 08:44:47 +0800 > Eddie Cai wrote: > >> > >> > The issue is not with this one particular board. >> > >> > I'm concerned, since your patch set causes build errors for other >>

[U-Boot] [PATH V2] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Eddie Cai
memory locations into the cache while the DMA is going on. Signed-off-by: Eddie Cai Reviewed-by: Stefan Brüns --- drivers/usb/host/dwc2.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 5ac602e

[U-Boot] [PATH V3] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Eddie Cai
memory locations into the cache while the DMA is going on. Signed-off-by: Eddie Cai Reviewed-by: Stefan Brüns --- drivers/usb/host/dwc2.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 5ac602e

[U-Boot] [U-Boot PATCH V2 0/8] introduce Rockchip rockusb

2017-04-16 Thread Eddie Cai
rockusb is a protocol run between host pc and device. it help people get device info, flash image to device. this patch implement rockusb on device side Eddie Cai (8): usb: ums: split macro and data struct in f_mass_storage.c usb: ums: merge storage_common.c into f_mass_storage.c usb: ums

[U-Boot] [U-Boot PATCH V2 1/8] usb: ums: split macro and data struct in f_mass_storage.c

2017-04-16 Thread Eddie Cai
split the macro and data struct in f_mass_storage.c to f_mass_storage.h Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 108 - include/f_mass_storage.h| 116 2 files changed, 116 insertions

[U-Boot] [U-Boot PATCH V2 2/8] usb: ums: merge storage_common.c into f_mass_storage.c

2017-04-16 Thread Eddie Cai
storage_common.c is only used by f_mass_storage. so merge it. Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 222 - drivers/usb/gadget/storage_common.c | 238 2 files changed, 221 insertions(+), 239

[U-Boot] [U-Boot PATCH V2 3/8] usb: ums: remove static declaration of some ums functions

2017-04-16 Thread Eddie Cai
remove static declaration of some functions. so these functions can be called by other module Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 4 ++-- include/f_mass_storage.h| 7 +++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb

[U-Boot] [U-Boot PATCH V2 4/8] usb: ums: add functions to set and get usb interface descriptor

2017-04-16 Thread Eddie Cai
add functions to set and get usb interface descriptor, so people can customize usb interface descriptor Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 18 ++ include/f_mass_storage.h| 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers

[U-Boot] [U-Boot PATCH V2 6/8] cmd: add rockusb command

2017-04-16 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb [] e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai --- cmd/Kconfig | 5 + cmd/Makefile | 1 + cmd/rockusb.c | 383 ++ 3 files changed, 389 insertions(+) create mode 100644 cmd

[U-Boot] [U-Boot PATCH V2 5/8] usb: ums: add do_extra_command

2017-04-16 Thread Eddie Cai
add do_extra_command to let people deal with customized command Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 333f069

[U-Boot] [U-Boot PATCH V2 8/8] rockusb: add a simple readme

2017-04-16 Thread Eddie Cai
add a simple readme to introduce rockusb and tell people how to use it Signed-off-by: Eddie Cai --- doc/README.rockusb | 35 +++ 1 file changed, 35 insertions(+) create mode 100644 doc/README.rockusb diff --git a/doc/README.rockusb b/doc/README.rockusb new file

[U-Boot] [U-Boot PATCH V2 7/8] rockchip: config: enable rockusb support on rk3288 based board

2017-04-16 Thread Eddie Cai
all rk3288 based boards support rockusb, so enable it Signed-off-by: Eddie Cai --- configs/evb-rk3288_defconfig | 2 ++ configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/popmetal-rk3288_defconfig | 1

[U-Boot] [U-Boot PATCH V2 0/9] introduce Rockchip rockusb

2017-04-16 Thread Eddie Cai
rockusb is a protocol run between host pc and device. it help people get device info, flash image to device. this patch implement rockusb on device side. Eddie Cai (9): usb: ums: split macro and data struct in storage_common.c usb: ums: split macro and data struct in f_mass_storage.c usb

[U-Boot] [U-Boot PATCH V2 3/9] usb: ums: merge storage_common.c into f_mass_storage.c

2017-04-16 Thread Eddie Cai
storage_common.c is only used by f_mass_storage. so merge it. Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 222 - drivers/usb/gadget/storage_common.c | 238 2 files changed, 221 insertions(+), 239

[U-Boot] [U-Boot PATCH V2 1/9] usb: ums: split macro and data struct in storage_common.c

2017-04-16 Thread Eddie Cai
split the macro and data struct in storage_common.c to f_mass_storage.h Signed-off-by: Eddie Cai --- drivers/usb/gadget/storage_common.c | 380 +- include/f_mass_storage.h| 393 2 files changed, 394 insertions

[U-Boot] [U-Boot PATCH V2 7/9] cmd: add rockusb command

2017-04-16 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb [] e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai --- cmd/Kconfig | 5 + cmd/Makefile | 1 + cmd/rockusb.c | 383 ++ 3 files changed, 389 insertions(+) create mode 100644 cmd

[U-Boot] [U-Boot PATCH V2 5/9] usb: ums: add functions to set and get usb interface descriptor

2017-04-16 Thread Eddie Cai
add functions to set and get usb interface descriptor, so people can customize usb interface descriptor Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 18 ++ include/f_mass_storage.h| 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers

[U-Boot] [U-Boot PATCH V2 2/9] usb: ums: split macro and data struct in f_mass_storage.c

2017-04-16 Thread Eddie Cai
split the macro and data struct in f_mass_storage.c to f_mass_storage.h Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 108 - include/f_mass_storage.h| 116 2 files changed, 116 insertions

[U-Boot] [U-Boot PATCH V2 8/9] rockchip: config: enable rockusb support on rk3288 based board

2017-04-16 Thread Eddie Cai
all rk3288 based boards support rockusb, so enable it Signed-off-by: Eddie Cai --- configs/evb-rk3288_defconfig | 2 ++ configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/popmetal-rk3288_defconfig | 1

[U-Boot] [U-Boot PATCH V2 4/9] usb: ums: remove static declaration of some ums functions

2017-04-16 Thread Eddie Cai
remove static declaration of some functions. so these functions can be called by other module Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 4 ++-- include/f_mass_storage.h| 7 +++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb

[U-Boot] [U-Boot PATCH V2 6/9] usb: ums: add do_extra_command

2017-04-16 Thread Eddie Cai
add do_extra_command to let people deal with customized command Signed-off-by: Eddie Cai --- drivers/usb/gadget/f_mass_storage.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 333f069

[U-Boot] [U-Boot PATCH V2 9/9] rockusb: add a simple readme

2017-04-16 Thread Eddie Cai
add a simple readme to introduce rockusb and tell people how to use it Signed-off-by: Eddie Cai --- doc/README.rockusb | 35 +++ 1 file changed, 35 insertions(+) create mode 100644 doc/README.rockusb diff --git a/doc/README.rockusb b/doc/README.rockusb new file

Re: [U-Boot] [PATH V2] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-18 Thread Eddie Cai
Hi 2017-04-18 11:55 GMT+08:00 Kever Yang : > Hi Marek, > > > On 04/06/2017 06:20 PM, Marek Vasut wrote: > >> On 04/06/2017 10:34 AM, Kever Yang wrote: >> >>> Hi Eddie, >>> >>> >>> On 04/06/2017 10:14 AM, Marek Vasut wrote: >>

[U-Boot] rockchip: enable debug uart

2017-04-18 Thread Eddie Cai
enable debug uart for rk3288 and print something to let people know where we are Signed-off-by: Eddie Cai --- arch/arm/mach-rockchip/rk3288-board-spl.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip

Re: [U-Boot] [PATCH v2 1/8] rockchip: video: Add mipi dsi driver for rk3399

2017-04-18 Thread Eddie Cai
Hi Eric 2017-04-18 15:09 GMT+08:00 Eric Gao : > Signed-off-by: Eric Gao > --- > > Changes in v2: > -Add mipi driver and it's header file > -Add Kconfig and Makefile additions for mipi driver. > -Add necessary Grf declaration for mipi driver. > > arch/arm/include/asm/arch-rockchip/grf_rk3399.h

Re: [U-Boot] [PATCH v1 0/2]

2017-04-18 Thread Eddie Cai
Hi Eric Please don't forget the title of cover letter next time. 2017-04-18 16:21 GMT+08:00 Eric Gao : > Add bmp logo display support for evb-rk3399 > Can you elaborate the commit message? > > > Changes in v1: > -Add bmp logo display support. > -Enable logo display for evb-rk3399 > > Eric Gao (

Re: [U-Boot] [PATCH v2 2/8] rockchip: video: vop: Add mipi display mode for rk3399

2017-04-18 Thread Eddie Cai
2017-04-18 15:09 GMT+08:00 Eric Gao : > Add mipi display mode for rk3399 vop, so that we can use mipi panel > for display. > > Signed-off-by: Eric Gao > Reviewed-by: Eddie Cai > > --- > > Changes in v2: > -Add mipi display mode for vop. > -Add compatible it

Re: [U-Boot] [PATCH v2 3/8] rockchip: video: vop: Set different bitwidth for different display mode

2017-04-18 Thread Eddie Cai
2017-04-18 15:09 GMT+08:00 Eric Gao : > Because the bitwidth is different for different display mode, so we need > to set them according to demand. > > Signed-off-by: Eric Gao > Reviewed-by: Eddie Cai > > --- > > Changes in v2: > -Change the bitwidth for differ

Re: [U-Boot] [PATCH v2 4/8] rockchip: video: vop: Reserve enough space for mipi dispaly

2017-04-18 Thread Eddie Cai
2017-04-18 15:09 GMT+08:00 Eric Gao : > plat->size here is used to reserve enough frame buffer space befor > relocation. > our mipi display mode need more space, so reset it. > I don't understand why need reserve more space. Can you explain more? > > Signed-off-by: Eric Gao > > --- > > Changes i

Re: [U-Boot] [PATCH v2 5/8] rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight

2017-04-18 Thread Eddie Cai
2017-04-18 15:09 GMT+08:00 Eric Gao : > Signed-off-by: Eric Gao > > --- > > Changes in v2: > -Add pwm0 pinctrl init for lcd backlight. > > board/rockchip/evb_rk3399/evb-rk3399.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c > b/board/rockc

Re: [U-Boot] [PATCH v2 7/8] rockchip: configs: Enable mipi dsi for rk3399

2017-04-18 Thread Eddie Cai
some part of mipi driver should move here. see comment in patch 1 please. 2017-04-18 15:09 GMT+08:00 Eric Gao : > Enable mipi dsi by default for rk3399-evb board > > Signed-off-by: Eric Gao > > --- > > Changes in v2: > -Add defconfigs for mipi display, so that it can be enabled by default. > >

Re: [U-Boot] [PATCH v2 8/8] rockchip: video: vop: Fix rk_display_init() return error

2017-04-18 Thread Eddie Cai
2017-04-18 15:09 GMT+08:00 Eric Gao : > The function clk_set_rate() will return it's input parameter, so it's > return > value in normal condition is nonzero. In this case, we should report an > error > when it return zero rather than return a nonzero value. > > Signed-off-by: Eric Gao > --- > >

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

2017-04-18 Thread Eddie Cai
2017-04-18 12:01 GMT+08:00 Simon Glass : > Hi Jonas, > > On 17 April 2017 at 15:13, Jonas Karlman wrote: > > Set ethernet mac address in late init for Tinker Board, > > prevents getting a random mac address each boot. > > > > Read mac address from eeprom, first 6 bytes from 0x50 on i2c2. > > Same

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

2017-04-18 Thread Eddie Cai
Hi Jonas 2017-04-19 2:04 GMT+08:00 Jonas Karlman : > Hi Simon, > > On 2017-04-18 06:01, Simon Glass wrote: >> Hi Jonas, >> >> On 17 April 2017 at 15:13, Jonas Karlman > > wrote: >> > Set ethernet mac address in late init for Tinker Board, >> > prevents getting a random ma

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

2017-04-18 Thread Eddie Cai
2017-04-19 2:18 GMT+08:00 Simon Glass : > Hi Eddie, > > On 18 April 2017 at 08:53, Eddie Cai wrote: >> >> >> 2017-04-18 12:01 GMT+08:00 Simon Glass : >>> >>> Hi Jonas, >>> >>> On 17 April 2017 at 15:13, Jonas Karlman wrot

Re: [U-Boot] [U-Boot PATCH V2 5/9] usb: ums: add functions to set and get usb interface descriptor

2017-04-19 Thread Eddie Cai
ches. can you review my V1 patches again and give some comment? that will be easy for me to address your comments at the same time. https://lists.denx.de/pipermail/u-boot/2017-March/283730.html > > >> >> Signed-off-by: Eddie Cai >> --- >> drivers/usb/gadget/f_mass_

Re: [U-Boot] [U-Boot 1/3] drivers: usb: gadget: add the rockusb gadget

2017-04-19 Thread Eddie Cai
f fastboot, >> > because ums have dual-buffer which improve performance. >> > >> I will try to add dual buffer support in next version > > If of course possible - please reuse as much code as possible. > >> >> > >> > Thanks, >> > - Ke

Re: [U-Boot] [U-Boot PATCH V2 6/9] usb: ums: add do_extra_command

2017-04-19 Thread Eddie Cai
Hi Lukasz 2017-04-20 6:14 GMT+08:00 Lukasz Majewski : > Hi Eddie, > >> add do_extra_command to let people deal with customized command >> >> Signed-off-by: Eddie Cai >> --- >> drivers/usb/gadget/f_mass_storage.c | 8 +++- >> 1 file changed, 7 inser

Re: [U-Boot] [U-Boot PATCH V2 7/9] cmd: add rockusb command

2017-04-19 Thread Eddie Cai
2017-04-20 6:27 GMT+08:00 Lukasz Majewski : > Hi Eddie, > > >> this patch add rockusb command. the usage is >> rockusb [] >> e.g. rockusb 0 mmc 0 > > Ok. > >> >> Signed-off-by: Eddie Cai >> --- >> cmd/Kconfig

Re: [U-Boot] [U-Boot PATCH V2 9/9] rockusb: add a simple readme

2017-04-19 Thread Eddie Cai
Hi Lukasz 2017-04-20 6:39 GMT+08:00 Lukasz Majewski : > Hi Eddie, > >> add a simple readme to introduce rockusb and tell people how to use it >> >> Signed-off-by: Eddie Cai >> --- >> doc/README.rockusb | 35 +++ >> 1 file

Re: [U-Boot] [PATCH v3 01/11] rockchip: include: grf: Add GRF register declaration for mipi dsi

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Signed-off-by: Eric Gao Reviewed-by: Eddie Cai > > --- > > Changes in v3: > -Split GRF changes as a single patch > > Changes in v2: None > > arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 23 +++ &g

Re: [U-Boot] [PATCH v3 02/11] rockchip: video: Add mipi driver for rockchip soc

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Signed-off-by: Eric Gao Reviewed-by: Eddie Cai > > --- > > Changes in v3: > -Split mipi dsi driver file and header as a single patch. > > Changes in v2: None > > .../include/asm/arch-rockchip/rockchip_mipi_dsi.h | 195

Re: [U-Boot] [PATCH v3 06/11] rockchip: video: vop: Set different bitwidth for different display mode

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Because the bitwidth is different for different display mode, so we need > to set them according to demand. > > Signed-off-by: Eric Gao Review-by: Eddie Cai > > --- > > Changes in v3: None > Changes in v2: > -Change the bitwi

Re: [U-Boot] [PATCH v3 05/11] rockchip: video: vop: Add mipi display mode for rk3399

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Add mipi display mode for rk3399 vop, so that we can use mipi panel > for display. > > Signed-off-by: Eric Gao Reviewed-by: Eddie Cai > > --- > > Changes in v3: None > Changes in v2: > -Add mipi display mode for vop. > -Ad

Re: [U-Boot] [PATCH v3 10/11] rockchip: configs: Enable mipi dsi for rk3399

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Enable mipi dsi by default for rk3399-evb board > > Signed-off-by: Eric Gao Reviewed-by: Eddie Cai > > --- > > Changes in v3: None > Changes in v2: > -Add defconfigs for mipi display, so that it can be enabled by default. > &

Re: [U-Boot] [PATCH v3 08/11] rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight

2017-04-19 Thread Eddie Cai
2017-04-19 20:39 GMT+08:00 Eric Gao : > Signed-off-by: Eric Gao Reviewed-by: Eddie Cai > > --- > > Changes in v3: > -Add ret value in debug message. > > Changes in v2: > -Add pwm0 pinctrl init for lcd backlight. > > board/rockchip/evb_rk3399/evb-rk3399.c

Re: [U-Boot] [U-Boot PATCH V2 6/9] usb: ums: add do_extra_command

2017-04-20 Thread Eddie Cai
HI Lukasz 2017-04-20 17:14 GMT+08:00 Lukasz Majewski : > Hi, > >> Hi Eddie, >> >> > Hi Lukasz >> > >> > 2017-04-20 6:14 GMT+08:00 Lukasz Majewski : >> > > Hi Eddie, >> > > >> > >> add do_extra_command

[U-Boot] [PATCH V3 1/4] usb: rockchip: add the rockusb gadget

2017-04-28 Thread Eddie Cai
this patch implement rockusb protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work with rkdeveloptool. Signed-off-by: Eddie Cai Changes in v3: -split the macro to f_rockusb.h -use

[U-Boot] [PATCH V3 4/4] rockchip: usb: enable rockusb on rk3288 based board

2017-04-28 Thread Eddie Cai
all rk3288 based boards support rockusb, so enable it Signed-off-by: Eddie Cai Changes in v3: -move to defconfig --- configs/evb-rk3288_defconfig | 3 +++ configs/fennec-rk3288_defconfig | 2 ++ configs/firefly-rk3288_defconfig | 2 ++ configs/miqi-rk3288_defconfig | 2 ++ configs

[U-Boot] [PATCH V3 0/4] introduce Rockchip rockusb

2017-04-28 Thread Eddie Cai
masstorage framework -add readme for rockusb Eddie Cai (4): usb: rockchip: add the rockusb gadget usb: rockchip: add rockusb command rockchip:usb: add a simple readme for rockusb rockchip: usb: enable rockusb on rk3288 based board arch/arm/include/asm/arch-rockchip/f_rockusb.h | 104

[U-Boot] [PATCH V3 2/4] usb: rockchip: add rockusb command

2017-04-28 Thread Eddie Cai
this patch add rockusb command. the usage is rockusb e.g. rockusb 0 mmc 0 Signed-off-by: Eddie Cai Changes in v3: -fix comment from Simon and Lukasz -fix checkpactch error --- cmd/Kconfig | 11 + cmd/Makefile | 1 + cmd/rockusb.c | 74

  1   2   >