[U-Boot] [PATCH v1] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index aeaec6c

[U-Boot] [PATCH] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c

[U-Boot] [PATCH] mmc: rockchip: the non-removable property must point to emmc

2016-01-07 Thread Lin Huang
the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c

[U-Boot] [PATCH v2] mmc: implement mmc power on write protect function

2015-12-13 Thread Lin Huang
set the mmc specific addresss and range as power on write protection, you can't earse and write this range of data if you enable it after mmc power on. Signed-off-by: Lin Huang --- Changes in v2: - Adviced by Simon: - use standard way of doing function comments Changes in v1: - Adviced by

[U-Boot] [PATCH v1] set the mmc specific addresss and range as power on write protection, you can't earse and write this range of data if you enable it after mmc power on.

2015-12-13 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v1: - Adviced by Simon: - use real error in errno.h to return - add full function comments for new function drivers/mmc/mmc.c | 87 +++ include/mmc.h | 37 +++ 2 files changed

Re: [U-Boot] [PATCH 001/159] LCD: Add an option to skip registration as an stdio output

2015-12-06 Thread Lin Huang
Hi all, i am sorry send wrong patch, please ignore these patchs. 2015-12-07 11:04 GMT+08:00 Lin Huang : > From: Stephane Ayotte > > This patch adds an option to skip the registration of LCD stdio output for > boards that want to show different text on LCD than on seria

[U-Boot] [PATCH 2/2] rockchip: Add basic support for kylin board

2015-12-06 Thread Lin Huang
kylin board use rk3036 SOC, 512M sdram, 8G emmc. This add some basic files required to allow the board to output serial message and can run command(mmc info etc). Signed-off-by: Lin Huang --- arch/arm/mach-rockchip/rk3036/Kconfig | 4 +++ board/kylin/kylin_rk3036/Kconfig| 15

[U-Boot] [PATCH 1/2] rockchip: rk3036 sdram setting cs1_row when rank larger than 1

2015-12-06 Thread Lin Huang
only rank large than 1, we will use cs1_row, so check rank, when rank larger than 1, we set the cs1_row. Signed-off-by: Lin Huang --- arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3036/sdram_rk3036

[U-Boot] [PATCH 001/159] LCD: Add an option to skip registration as an stdio output

2015-12-06 Thread Lin Huang
From: Stephane Ayotte This patch adds an option to skip the registration of LCD stdio output for boards that want to show different text on LCD than on serial output (or the active stdout selected by the environment variable). Signed-off-by: Stephane Ayotte --- common/lcd.c | 13 +

[U-Boot] [PATCH 003/159] cgtqmx6eval: Add SPI NOR flash support

2015-12-06 Thread Lin Huang
From: Otavio Salvador Add SPI NOR support: => sf probe SF: Detected SST25VF032B with page size 256 Bytes, erase size 4 KiB, total 4 MiB Signed-off-by: Otavio Salvador Reviewed-by: Fabio Estevam --- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 29 + include/configs/c

[U-Boot] [PATCH 002/159] arm: mx6: Reduce SPL malloc pool size

2015-12-06 Thread Lin Huang
From: Marek Vasut Using 50 MiB malloc pool in SPL is nonsense. Since the caches are not enabled in SPL, it takes 2 seconds to init the pool and has no obvious benefit. Reduce the size to 1 MiB. Signed-off-by: Marek Vasut Cc: Stefano Babic Cc: Tim Harvey Tested-by: Stefano Babic Acked-by: Tim

[U-Boot] [PATCH] mmc: implement mmc power on write protect function

2015-12-03 Thread Lin Huang
set the mmc specific addresss and range as power on write protection, and can't earse and write this range if you enable it after mmc power on. Signed-off-by: Lin Huang --- drivers/mmc/mmc.c | 89 +++ include/mmc.h | 10 ++- 2

[U-Boot] [PATCH 1/2] rockchip: add CONFIG_SPL_ROCKCHIP_SERIAL

2015-11-19 Thread Lin Huang
we can use this config to disable rockchip serial driver in SPL stage, since some rockchip soc sram size is small(rk3036 etc), so we don't want rockchip serial driver build in SPL, but we still want use common debug driver in SPL. Signed-off-by: Lin Huang --- arch/arm/mach-rockchip/Kconfig

[U-Boot] [PATCH 2/2] rockchip: rk3036: enable CONFIG_DEBUG_UART, and use ns16550 uart driver

2015-11-19 Thread Lin Huang
enable this config so we use common uart function in SPL stage Signed-off-by: Lin Huang --- arch/arm/mach-rockchip/rk3036-board-spl.c | 6 ++ configs/evb-rk3036_defconfig | 5 + include/configs/rk3036_common.h | 1 + 3 files changed, 8 insertions(+), 4 deletions

[U-Boot] [PATCH v7 15/23] rockchip: mmc: use non-removable property to distinguish emmc and sdcard register

2015-11-17 Thread Lin Huang
emmc and sdcard have different register address, use non-removeable property to distinguish them. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None Changes in v7: - Adviced by Simon: - use

[U-Boot] [PATCH v6 21/23] rockchip: Add max spl size & spl header configs

2015-11-16 Thread Lin Huang
From: Jeffy Chen Our chips may have different max spl size and spl header, so we need to add configs for that. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: - Adviced by Simon: - move CONFIG_RO

[U-Boot] [PATCH v6 22/23] rockchip: Add support for rk's second level loader

2015-11-16 Thread Lin Huang
From: Jeffy Chen The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes

[U-Boot] [PATCH v6 23/23] rockchip: doc: show packet rk3036 uboot image

2015-11-16 Thread Lin Huang
show how to packet rk3036 uboot image and boot from SD Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: - fix some spell error Changes in v5: - Adviced by Simon: - add evb rk3036 board to supported boards Changes in v6

[U-Boot] [PATCH v6 20/23] rockchip: Add basic support for evb-rk3036 board

2015-11-16 Thread Lin Huang
This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c Changes in v3: - delete some

[U-Boot] [PATCH v6 19/23] rockchip: rk3036: Add core Soc start-up code

2015-11-16 Thread Lin Huang
rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang Acked-by: Simon Glass

[U-Boot] [PATCH v6 18/23] rockchip: add rk3036 sdram driver

2015-11-16 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix some code style error Changes in v4: - modify code advice by Simon Glass Changes in v5: - Advice by Simon: - move some global variables to local

[U-Boot] [PATCH v6 17/23] rockchip: add early uart driver

2015-11-16 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: - pass uart base address to rk_uart_init() function Changes in v4: None Changes in v5: None Changes in v6: - Adviced by

[U-Boot] [PATCH v6 16/23] rockchip: mmc: get the fifo mode and fifo depth property from dts

2015-11-16 Thread Lin Huang
rk3036 mmc do not have internal dma, so we use fifo mode when read and write data, we get the fifo mode and fifo depth property from dts, pass to dw_mmc driver. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None

[U-Boot] [PATCH v6 15/23] rockchip: mmc: use non-removable property to disginguish emmc and sdcard register

2015-11-16 Thread Lin Huang
emmc and sdcard have different register address, use non-removeable property to disginuish them. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c

[U-Boot] [PATCH v6 13/23] mmc: dw_mmc: move data transfer as a separate function

2015-11-16 Thread Lin Huang
the data transfer seem to long in the dwmci_send_cmd function, so move this block as a separate funciton. Signed-off-by: Lin Huang --- drivers/mmc/dw_mmc.c | 65 ++-- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v6 14/23] mmc: dw_mmc: support fifo mode in dwc mmc driver

2015-11-16 Thread Lin Huang
some soc(rk3036 etc) use dw_mmc but do not have internal dma, so we implement fifo mode to read and write data. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: - move data fifo mode to

[U-Boot] [PATCH v6 12/23] rockchip: rk3036: Add pinctrl driver

2015-11-16 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: - fix some coding style error Changes in v4: None Changes in v5: None Changes in v6: - remove

[U-Boot] [PATCH v6 10/23] rockchip: rk3036: Add Soc reset driver

2015-11-16 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang Acked-by: Simon Glass --- --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage Changes in v3: None Changes in v4: None Changes

[U-Boot] [PATCH v6 11/23] rockchip: rk3036: Add a simple syscon driver

2015-11-16 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None Changes in v4: None Changes in v5: None arch/arm/mach

[U-Boot] [PATCH v6 09/23] rockchip: rk3036: Add header files for GRF

2015-11-16 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h Changes in v3: None Changes in v4: None Changes in v5: None Changes in

[U-Boot] [PATCH v6 07/23] rockchip: Bring in RK3036 device tree file includes and bindings

2015-11-16 Thread Lin Huang
Since rk3036 device tree file still in reviewing, bring it from https://patchwork.kernel.org/patch/7203371/ and add some aliases we need in uboot Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: None Changes in

[U-Boot] [PATCH v6 08/23] rockchip: rk3036: Add clock driver

2015-11-16 Thread Lin Huang
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h Changes in v3: None Changes in v4: None

[U-Boot] [PATCH v6 04/23] rockchip: add config decide whether to build common.c

2015-11-16 Thread Lin Huang
some rockchips soc will not use uclass in SPL stage, so define config to decide whether to build common.c Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None arch/arm/mach

[U-Boot] [PATCH v6 05/23] dm: core: Add SPL Kconfig for REGMAP and SYSCON

2015-11-16 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: - fix compile error Changes in v4: None Changes in v5: None Changes in v6: None configs

[U-Boot] [PATCH v6 06/23] rockchip: serial driver support rk3036

2015-11-16 Thread Lin Huang
Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - modify code suggest by Simon Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

[U-Boot] [PATCH v6 03/23] rockchip: rename board-spl.c to rk3288-board-spl.c

2015-11-16 Thread Lin Huang
since different rockchip soc need different spl file, so rename board-spl.c. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None arch/arm/mach-rockchip/Makefile

[U-Boot] [PATCH v6 02/23] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-16 Thread Lin Huang
since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None

[U-Boot] [PATCH v6 01/23] rockchip: add timer driver

2015-11-16 Thread Lin Huang
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - add udelay function Changes in v3: - fix some coding style Changes in v4

[U-Boot] [PATCH v6 00/23] Bring up rk3036 uboot

2015-11-16 Thread Lin Huang
Chen (2): rockchip: Add max spl size & spl header configs rockchip: Add support for rk's second level loader Lin Huang (21): rockchip: add timer driver rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig rockchip: rename board-spl.c to rk3288-board-spl.c rockchip: add conf

[U-Boot] [PATCH v5 20/21] rockchip: Add support for rk's second level loader

2015-11-10 Thread Lin Huang
From: Jeffy Chen The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes

[U-Boot] [PATCH v5 21/21] rockchip: doc: show packet rk3036 uboot image

2015-11-10 Thread Lin Huang
show how to packet rk3036 uboot image and boot from SD Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: - fix some spell error Changes in v5: - Adviced by Simon: - add evb rk3036 board to supported boards doc/README.rockchip | 11

[U-Boot] [PATCH v5 19/21] rockchip: Add max init size & chip tag configs

2015-11-10 Thread Lin Huang
From: Jeffy Chen Our chips may have different sram size limits and chip tag, so we need to add configs for that. Signed-off-by: Jeffy Chen --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: - Adviced by Simon: - move CONFIG_ROCKCHIP_MAX_INIT_SIZE

[U-Boot] [PATCH v5 18/21] rockchip: Add basic support for evb-rk3036 board

2015-11-10 Thread Lin Huang
This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c Changes in v3: - delete some config Changes in v4: None

[U-Boot] [PATCH v5 17/21] rockchip: rk3036: Add core Soc start-up code

2015-11-10 Thread Lin Huang
rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang --- Changes in v1

[U-Boot] [PATCH v5 14/21] rockchip: mmc: get the fifo mode and fifo depth property from dts

2015-11-10 Thread Lin Huang
rk3036 mmc do not have internal dma, so we use fifo mode when read and write data, we get the fifo mode and fifo depth property from dts, pass to dw_mmc driver. Signed-off-by: Lin Huang --- arch/arm/dts/rk3036.dtsi | 1 + drivers/mmc/rockchip_dw_mmc.c | 28 ++-- 2

[U-Boot] [PATCH v5 16/21] rockchip: add rk3036 sdram driver

2015-11-10 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix some code style error Changes in v4: - modify code advice by Simon Glass Changes in v5: - Advice by Simon: - move some global variables to local

[U-Boot] [PATCH v5 15/21] rockchip: add early uart driver

2015-11-10 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - pass uart base address to rk_uart_init() function Changes in v4: None Changes in v5: None arch/arm/include/asm/arch-rockchip/uart.h | 44

[U-Boot] [PATCH v5 13/21] mmc: dw_mmc: support fifo mode in dwc mmc driver

2015-11-10 Thread Lin Huang
some soc(rk3036 etc) use dw_mmc but do not have internal dma, so we implement fifo mode to read and write data. Signed-off-by: Lin Huang --- drivers/mmc/dw_mmc.c | 81 +++- include/dwmmc.h | 5 2 files changed, 72 insertions(+), 14

[U-Boot] [PATCH v5 11/21] rockchip: rk3036: Add a simple syscon driver

2015-11-10 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None Changes in v4: None Changes in v5: None arch/arm/mach

[U-Boot] [PATCH v5 10/21] rockchip: rk3036: Add Soc reset driver

2015-11-10 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage Changes in v3: None Changes in v4: None Changes in

[U-Boot] [PATCH v5 12/21] rockchip: rk3036: Add pinctrl driver

2015-11-10 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: - fix some coding style error Changes in v4: None Changes in v5: None drivers/pinctrl/Kconfig

[U-Boot] [PATCH v5 09/21] rockchip: rk3036: Add header files for GRF

2015-11-10 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h Changes in v3: None Changes in v4: None Changes in v5: None arch/arm

[U-Boot] [PATCH v5 07/21] rockchip: Bring in RK3036 device tree file includes and bindings

2015-11-10 Thread Lin Huang
Since rk3036 device tree file still in reviewing, bring it from https://patchwork.kernel.org/patch/7203371/ and add some aliases we need in uboot Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: None Changes in

[U-Boot] [PATCH v5 08/21] rockchip: rk3036: Add clock driver

2015-11-10 Thread Lin Huang
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h Changes in v3: None Changes in v4: None

[U-Boot] [PATCH v5 06/21] rockchip: serial driver support rk3036

2015-11-10 Thread Lin Huang
Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - modify code suggest by Simon Changes in v3: None Changes in v4: None Changes in v5: None drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_rockchip.c

[U-Boot] [PATCH v5 05/21] dm: core: Add SPL Kconfig for REGMAP and SYSCON

2015-11-10 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix compile error Changes in v4: None Changes in v5: None configs/chromebook_jerry_defconfig | 2 ++ configs/firefly

[U-Boot] [PATCH v5 02/21] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-10 Thread Lin Huang
since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None

[U-Boot] [PATCH v5 00/21] Bring up rk3036 uboot

2015-11-10 Thread Lin Huang
Chen (2): rockchip: Add max init size & chip tag configs rockchip: Add support for rk's second level loader Lin Huang (19): rockchip: add timer driver rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig rockchip: rename board-spl.c to rk3288-board-spl.c rockchip: add conf

[U-Boot] [PATCH v5 01/21] rockchip: add timer driver

2015-11-10 Thread Lin Huang
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - add udelay function Changes in v3: - fix some coding style Changes in v4

[U-Boot] [PATCH v5 04/21] rockchip: add config decide whether to build common.c

2015-11-10 Thread Lin Huang
some rockchips soc will not use uclass in SPL stage, so define config to decide whether to build common.c Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None arch/arm/mach-rockchip/Makefile | 2

[U-Boot] [PATCH v5 03/21] rockchip: rename board-spl.c to rk3288-board-spl.c

2015-11-10 Thread Lin Huang
since different rockchip soc need different spl file, so rename board-spl.c. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None Changes in v5: None arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach

[U-Boot] [PATCH v4 19/20] rockchip: Add support for rk's second level loader

2015-11-09 Thread Lin Huang
From: Jeffy Chen The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen --- Changes in v1: None Changes in

[U-Boot] [PATCH v4 20/20] rockchip: doc: show packet rk3036 uboot image

2015-11-09 Thread Lin Huang
show how to packet rk3036 uboot image and boot from SD Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: - fix some spell error doc/README.rockchip | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/README.rockchip b/doc

[U-Boot] [PATCH v4 17/20] rockchip: Add basic support for evb-rk3036 board

2015-11-09 Thread Lin Huang
This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c Changes in v3: - delete some config Changes in v4: None

[U-Boot] [PATCH v4 18/20] rockchip: Add max init size & chip tag configs

2015-11-09 Thread Lin Huang
From: Jeffy Chen Our chips may have different sram size limits and chip tag, so we need to add configs for that. Signed-off-by: Jeffy Chen --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None include/configs/rk3288_common.h | 3 +++ tools/Makefile

[U-Boot] [PATCH v4 15/20] rockchip: add rk3036 sdram driver

2015-11-09 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix some code style error Changes in v4: -modify code advice by Simon Glass arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 341 ++ arch/arm

[U-Boot] [PATCH v4 16/20] rockchip: rk3036: Add core Soc start-up code

2015-11-09 Thread Lin Huang
rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang --- Changes in v1

[U-Boot] [PATCH v4 14/20] rockchip: add early uart driver

2015-11-09 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - pass uart base address to rk_uart_init() function Changes in v4: None arch/arm/include/asm/arch-rockchip/uart.h | 44

[U-Boot] [PATCH v4 13/20] rockchip: Add an rk3036 MMC driver

2015-11-09 Thread Lin Huang
rk3036 mmc driver is similar to dw_mmc, but use external dma, this patch implment fifo mode, need to do dma mode in future. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - modify code suggest by Simon: - use get_time() to do timeout Changes in v3

[U-Boot] [PATCH v4 12/20] rockchip: rk3036: Add pinctrl driver

2015-11-09 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: - fix some coding style error Changes in v4: None drivers/pinctrl/Kconfig | 18 ++ drivers/pinctrl

[U-Boot] [PATCH v4 11/20] rockchip: rk3036: Add a simple syscon driver

2015-11-09 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/rk3036/Makefile| 2 +- arch

[U-Boot] [PATCH v4 10/20] rockchip: rk3036: Add Soc reset driver

2015-11-09 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/rk3036

[U-Boot] [PATCH v4 09/20] rockchip: rk3036: Add header files for GRF

2015-11-09 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h Changes in v3: None Changes in v4: None arch/arm/include/asm/arch-rockchip/grf_rk3036.h

[U-Boot] [PATCH v4 08/20] rockchip: rk3036: Add clock driver

2015-11-09 Thread Lin Huang
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h Changes in v3: None Changes in v4: None arch/arm/include/asm/arch

[U-Boot] [PATCH v4 07/20] rockchip: Bring in RK3036 device tree file includes and bindings

2015-11-09 Thread Lin Huang
Since rk3036 device tree file still in reviewing, bring it from https://patchwork.kernel.org/patch/7203371/ and add some aliases we need in uboot Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: None Changes in v4: None arch/arm/dts

[U-Boot] [PATCH v4 06/20] rockchip: serial driver support rk3036

2015-11-09 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: - modify code suggest by Simon Changes in v3: None Changes in v4: None drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index

[U-Boot] [PATCH v4 05/20] dm: core: Add SPL Kconfig for REGMAP and SYSCON

2015-11-09 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix compile error Changes in v4: None configs/chromebook_jerry_defconfig | 2 ++ configs/firefly-rk3288_defconfig | 2

[U-Boot] [PATCH v4 03/20] rockchip: rename board-spl.c to rk3288-board-spl.c

2015-11-09 Thread Lin Huang
since different rockchip soc need different spl file, so rename board-spl.c. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/Makefile | 2 +- arch/arm/mach-rockchip/board-spl.c| 277

[U-Boot] [PATCH v4 04/20] rockchip: add config decide whether to build common.c

2015-11-09 Thread Lin Huang
some rockchips soc will not use uclass in SPL stage, so define config to decide whether to build common.c Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/Makefile | 2 +- include/configs/rk3288_common.h | 3

[U-Boot] [PATCH v4 00/20] Bring up rk3036 uboot

2015-11-09 Thread Lin Huang
Chen (2): rockchip: Add max init size & chip tag configs rockchip: Add support for rk's second level loader Lin Huang (18): rockchip: add timer driver rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig rockchip: rename board-spl.c to rk3288-board-spl.c rockchip: add conf

[U-Boot] [PATCH v4 01/20] rockchip: add timer driver

2015-11-09 Thread Lin Huang
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL. Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: None Changes in v2: - add udelay function Changes in v3: - fix some coding style Changes in v4

[U-Boot] [PATCH v4 02/20] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-09 Thread Lin Huang
since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/Kconfig| 3

[U-Boot] [RESEND PATCH v3 18/20] rockchip: Add max init size & chip tag configs

2015-11-06 Thread Lin Huang
From: Jeffy Chen Our chips may have different sram size limits and chip tag, so we need to add configs for that. Signed-off-by: Jeffy Chen --- include/configs/rk3288_common.h | 3 +++ tools/Makefile | 6 ++ tools/rkcommon.c| 2 +- tools/rkcommon.h

[U-Boot] [RESEND PATCH v3 20/20] rockchip: doc: show packet rk3036 uboot image

2015-11-06 Thread Lin Huang
show how to packet rk3036 uboot image and boot from SD Signed-off-by: Lin Huang --- doc/README.rockchip | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/README.rockchip b/doc/README.rockchip index 87ce9d2..893f256 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip

[U-Boot] [RESEND PATCH v3 19/20] rockchip: Add support for rk's second level loader

2015-11-06 Thread Lin Huang
From: Jeffy Chen The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen --- tools/rkcommon.c | 24 +++

[U-Boot] [RESEND PATCH v3 14/20] rockchip: add early uart driver

2015-11-06 Thread Lin Huang
add early uart driver so we can print debug message in SPL stage Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - pass uart base address to rk_uart_init() function arch/arm/include/asm/arch-rockchip/uart.h | 44 arch/arm/mach

[U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver

2015-11-06 Thread Lin Huang
add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: fix some code style error arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 336 ++ arch/arm/mach-rockchip/rk3036/Makefile| 2

[U-Boot] [RESEND PATCH v3 16/20] rockchip: rk3036: Add core Soc start-up code

2015-11-06 Thread Lin Huang
rk3036 only 4K size SRAM for SPL, so only support timer, uart, sdram driver in SPL stage, when finish initial sdram, back to bootrom.And in rk3036 sdmmc and debug uart use same iomux, so if you want to boot from sdmmc, you must disable debug uart. Signed-off-by: Lin Huang --- Changes in v1

[U-Boot] [RESEND PATCH v3 17/20] rockchip: Add basic support for evb-rk3036 board

2015-11-06 Thread Lin Huang
This add some basic files required to allow the board to dispaly serial message and can run command(mmc info etc) Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - get sdram info from evb_rk3036.c Changes in v3: - delete some config arch/arm/dts

[U-Boot] [RESEND PATCH v3 13/20] rockchip: Add an rk3036 MMC driver

2015-11-06 Thread Lin Huang
rk3036 mmc driver is similar to dw_mmc, but use external dma, this patch implment fifo mode, need to do dma mode in future. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - modify code suggest by Simon: - use get_time() to do timeout Changes in v3

[U-Boot] [RESEND PATCH v3 12/20] rockchip: rk3036: Add pinctrl driver

2015-11-06 Thread Lin Huang
Add a driver which support pin multiplexing setup for rk3036 Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: - fix some coding style error drivers/pinctrl/Kconfig | 18 ++ drivers/pinctrl/rockchip/Makefile

[U-Boot] [RESEND PATCH v3 11/20] rockchip: rk3036: Add a simple syscon driver

2015-11-06 Thread Lin Huang
Add a driver that provides access to system controllers Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None arch/arm/mach-rockchip/rk3036/Makefile| 2 +- arch/arm/mach-rockchip

[U-Boot] [RESEND PATCH v3 10/20] rockchip: rk3036: Add Soc reset driver

2015-11-06 Thread Lin Huang
We can reset the Soc using some CRU (clock/reset unit) register. Add support for this. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - only build reset_rk3036.c in NON-SPL stage Changes in v3: None arch/arm/mach-rockchip/rk3036/Makefile | 10

[U-Boot] [RESEND PATCH v3 07/20] rockchip: Bring in RK3036 device tree file includes and bindings

2015-11-06 Thread Lin Huang
Since rk3036 device tree file still in reviewing, bring it from https://patchwork.kernel.org/patch/7203371/ and add some aliases we need in uboot Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: None Changes in v3: None arch/arm/dts/rk3036.dtsi

[U-Boot] [RESEND PATCH v3 06/20] rockchip: serial driver support rk3036

2015-11-06 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: - modify code suggest by Simon Changes in v3: None drivers/serial/serial_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index 0e7bbfc..21836bb

[U-Boot] [RESEND PATCH v3 09/20] rockchip: rk3036: Add header files for GRF

2015-11-06 Thread Lin Huang
GRF is the gereral register file. Add header files with register definitions. Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to grf_rk3036.h Changes in v3: None arch/arm/include/asm/arch-rockchip/grf_rk3036.h | 493

[U-Boot] [RESEND PATCH v3 08/20] rockchip: rk3036: Add clock driver

2015-11-06 Thread Lin Huang
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by: Lin Huang --- Changes in v1: - clean copyright announcement Changes in v2: - move some macro to cru_rk3036.h Changes in v3: None arch/arm/include/asm/arch-rockchip/cru_rk3036.h

[U-Boot] [RESEND PATCH v3 05/20] dm: core: Add SPL Kconfig for REGMAP and SYSCON

2015-11-06 Thread Lin Huang
Add SPL Kconfig for REGMAP and SYSCON, so REGMAP and SYSCON can remove from SPL stage. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: - fix compile error configs/chromebook_jerry_defconfig | 2 ++ configs/firefly-rk3288_defconfig | 2 ++ configs

[U-Boot] [RESEND PATCH v3 01/20] rockchip: add timer driver

2015-11-06 Thread Lin Huang
some rockchip soc will not include lib/timer.c in SPL stage, so implement timer driver for some soc can use us delay function in SPL. Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: - add udelay function Changes in v3: - fix some coding style arch/arm/include/asm/arch-rockchip

[U-Boot] [RESEND PATCH v3 02/20] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-06 Thread Lin Huang
since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: None arch/arm/mach-rockchip/Kconfig| 3 --- arch/arm/mach

  1   2   >