diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 0127a91a..ae99b02a 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -92,6 +92,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3288) += \ rk3288-rock2-square.dtb \ rk3288-tinker.dtb \ rk3288-tinker-s.dtb \ + rk3288-xt-q8l-v10.dtb \ rk3288-veyron-jerry.dtb \ rk3288-veyron-mickey.dtb \ rk3288-veyron-minnie.dtb \ diff --git a/board/rockchip/xt-q8l-v10_rk3288/Kconfig b/board/rockchip/xt-q8l-v10_rk3288/Kconfig index e69de29..176abf0 100644 --- /dev/null +++ b/board/rockchip/xt-q8l-v10_rk3288/Kconfig @@ -0,0 +1,15 @@ +if TARGET_XT_Q8L_V10_RK3288 + +config SYS_BOARD + default "xt-q8l-v10_rk3288" + +config SYS_VENDOR + default "rockchip" + +config SYS_CONFIG_NAME + default "xt-q8l-v10_rk3288" + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + +endif diff --git a/board/rockchip/xt-q8l-v10_rk3288/MAINTAINERS b/board/rockchip/xt-q8l-v10_rk3288/MAINTAINERS index e69de29..9a3ad97 100644 --- /dev/null +++ b/board/rockchip/xt-q8l-v10_rk3288/MAINTAINERS @@ -0,0 +1,6 @@ +XT-Q8L-V10-RK3288 +M: Paolo Sabatino +S: Not mainlined +F: board/rockchip/xt-q8l-v10_rk3288 +F: include/configs/xt-q8l-v10_rk3288.h +F: configs/xt-q8l-v10-rk3288_defconfig diff --git a/board/rockchip/xt-q8l-v10_rk3288/Makefile b/board/rockchip/xt-q8l-v10_rk3288/Makefile index e69de29..852c910 100644 --- /dev/null +++ b/board/rockchip/xt-q8l-v10_rk3288/Makefile @@ -0,0 +1,7 @@ +# +# (C) Copyright 2016 Rockchip Electronics Co., Ltd +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += xt-q8l-v10-rk3288.o diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig index afb62fca..187a75ba 100644 --- a/arch/arm/mach-rockchip/rk3288/Kconfig +++ b/arch/arm/mach-rockchip/rk3288/Kconfig @@ -131,6 +131,16 @@ config TARGET_TINKER_RK3288 8GB eMMC and 2GB of SDRAM. Expansion connectors provide access to I2C, SPI, UART, GPIOs. +config TARGET_XT_Q8L_V10_RK3288 + bool "xt-q8l-v10 tvbox board" + select BOARD_LATE_INIT + select TPL + help + xt-q8l-v10 is a RK3288 common tv box with 3 USB ports (1 OTG), HDMI, + micro-SD card, Gigabit Ethernet and SPDIF output. It also includes on-board + 8GB eMMC and 2GB of SDRAM, 802.11n Wifi and Bluetooth based upon AP6330 + WiSoC. + endchoice config ROCKCHIP_FAST_SPL @@ -193,4 +203,6 @@ source "board/rockchip/evb_rk3288/Kconfig" source "board/rockchip/tinker_rk3288/Kconfig" +source "board/rockchip/xt-q8l-v10_rk3288/Kconfig" + endif diff --git a/board/rockchip/xt-q8l-v10_rk3288/xt-q8l-v10-rk3288.c b/board/rockchip/xt-q8l-v10_rk3288/xt-q8l-v10-rk3288.c new file mode 100644 index 00000000..f0f618a5 --- /dev/null +++ b/board/rockchip/xt-q8l-v10_rk3288/xt-q8l-v10-rk3288.c @@ -0,0 +1,21 @@ +/* + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include + +void spl_board_init(void) +{ + + /* + * xt-q8l-v10 requires the power-hold gpio set (A11, or bank 0 pin 11 + * if you prefer) as soon as possible. + * We hack it here :P + */ + gpio_request(11, "power-hold"); + gpio_direction_output(11, 1); + +} + diff --git a/include/configs/xt-q8l-v10_rk3288.h b/include/configs/xt-q8l-v10_rk3288.h new file mode 100644 index 00000000..1211875a --- /dev/null +++ b/include/configs/xt-q8l-v10_rk3288.h @@ -0,0 +1,28 @@ +/* + * (C) Copyright 2015 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + +#include + +#undef BOOT_TARGET_DEVICES + +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 1) \ + func(USB, usb, 0) \ + func(MMC, mmc, 0) \ + func(PXE, pxe, na) \ + func(DHCP, dchp, na) + +#define CONFIG_SYS_MMC_ENV_DEV 0 + +#endif