[U-Boot] [PATCH v4 15/19] mmc: dw_mmc: rockchip: add support for rk3066 sdmmc

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch enables support for the Rockchip RK3066 SD/MMC controller, which is based on Designware IP. The device supports SD, SDIO, MMC and eMMC. Signed-off-by: Paweł Jarosz --- Changes since v1: - dropped OF_PLATDATA Changes since v2: - none Changes since v3: -

[U-Boot] [PATCH v4 19/19] mtd: nand: spl: allow build nand_bbt, nand_ids and nand_util

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch allows building of nand_bbt, nand_ids, nand_util for nand drivers that need it. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none drivers/mtd/nand/Makefile | 3 +++ 1 file changed, 3 insertions(+)

[U-Boot] [PATCH v4 13/19] ARM: dts: rockchip: prefer u-boot, dm-pre-reloc rather than u-boot, dm-spl

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
rk3xxx.dtsi is used by rk3188 and rk3066. rk3188 uses alocated data in spl but rk3066 needs it in tpl. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none arch/arm/dts/rk3xxx.dtsi | 8 1 file changed,

[U-Boot] [PATCH v4 17/19] rockchip: sysreset: deduplicate rk3066 and rk3188 sysreset drivers

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Sysreset drivers for rk3066 and rk3188 contain common elements which can be reused. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none .../include/asm/arch-rockchip/sysreset_common.h| 20 +++

[U-Boot] [PATCH v4 18/19] dfu: fix spl build

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
In current state dfu depends on cmd/mtdparts.c which isn't build in SPL. This patch resolves it by cutting out unwanted code in SPL build. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - removed unneded space

[U-Boot] [PATCH v4 16/19] armv7: support rk3066 early back to bootrom in vector.S

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Rockchip bootrom first reads 1KB data from nand at offset 0x10080C00 and executes it. Then waits for back to bootrom and loads another 32KB to sram which also executes. Sdram initialisation code needs to be in one of these two steps. Then bootloader loads another ~200KB of data at offset

[U-Boot] [PATCH v4 09/19] mtd: nand: add support for the Sandisk SDTNQGAMA chip

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Sandisk SDTNQGAMA is a 8GB size, 3.3V 8 bit chip with 16KB page size, 1KB write size and 40 bit ecc support Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none drivers/mtd/nand/nand_ids.c | 3 +++ 1 file

[U-Boot] [PATCH v4 14/19] mmc: dw_mmc: support transfer mode autodetection

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
dw_mmc supports two transfer modes in u-boot: idma and fifo. This patch adds autodetection of transfer mode and eliminates setting this in host config struct Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none

[U-Boot] [PATCH v4 12/19] rockchip: board: rk3066: convert board_usb_init to live tree functions

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Use live tree functions to fill dwc2_plat_otg_data structure in board_usb_init. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - none Changes since v3: - none arch/arm/mach-rockchip/rk3066-board.c | 52 +--

[U-Boot] [PATCH v4 11/19] rockchip: mkimage: add support for rockchip nand boot image

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
The Rockchip boot ROM requires a particular file format for booting from NAND: * It starts with 512-byte, rc4 encoded header and is aligned to nand page size * Then first 2KB of first stage loader (tpl) aligned to nand page size * n empty pages * second 2KB of first stage loader (tpl) aligned

[U-Boot] [PATCH v4 10/19] mtd: nand: add the rockchip nand controller driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add basic Rockchip nand driver. Driver in current state has 16, 24, 40, 60 per 1024B BCH/ECC ability and 8 bit asynchronous flash interface support. Other features will come later. Signed-off-by: Paweł Jarosz --- Changes since v1: - none Changes since v2: - fixed

[U-Boot] [PATCH v4 08/19] rockchip: rk3066: add sdram driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - use common rockchip_sdram_size - moved sdram init from sdram_init.c Changes

[U-Boot] [PATCH v4 07/19] rockchip: rk3066: add mk808 board files

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
mk808 is a tv stick with two usb ports, micro sd card slot, hdmi and nand onboard. Signed-off-by: Paweł Jarosz Acked-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH v4 06/19] rockchip: rk3066: add core support

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add core skeleton for rk3066 Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved syscon.h below spl.h - changed error to debug and return error reason - changed Cortex-A7

[U-Boot] [PATCH v4 05/19] rockchip: rk3066: add rk3066 platform devicetree file

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
rk3066 peripherials include usb, i2c, pwm, gpio, sdio, sdmmc, emmc, spi, watchdog and uart Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich

[U-Boot] [PATCH v4 03/19] rockchip: rk3066: add sysreset driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add support for system reset for rk3066 socs. Signed-off-by: Paweł Jarosz Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none Changes

[U-Boot] [PATCH v4 04/19] rockchip: rk3066: add clock driver for rk3066 soc

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add clock driver for rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - moved clk init to tpl Changes since v2: - none Changes since v3: - none

[U-Boot] [PATCH v4 02/19] rockchip: rk3066: add rk3066 pinctrl driver

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks - added nand support Changes since v2: - none Changes since v3: -

[U-Boot] [PATCH v4 01/19] rockchip: rk3066: add grf header file

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Acked-by: Philipp Tomsich --- Changes since v1: - updated to shifted masks Changes since v2: - none Changes since v3: - none

[U-Boot] [PATCH v4 00/19] add support for rk3066 platform.

2017-08-17 Thread =?UTF-8?q?Pawe=C5=82=20Jarosz?=
This patch serie adds support for Rockchip RK3066 processor. Paweł Jarosz (19): rockchip: rk3066: add grf header file rockchip: rk3066: add rk3066 pinctrl driver rockchip: rk3066: add sysreset driver rockchip: rk3066: add clock driver for rk3066 soc rockchip: rk3066: add rk3066 platform