157 lines
4.5 KiB
Diff
157 lines
4.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Paolo Sabatino <[email protected]>
|
|
Date: Sat, 6 Jul 2024 20:22:22 +0200
|
|
Subject: add xt-q8l-v10 ancillary makefile and sources
|
|
|
|
---
|
|
arch/arm/dts/Makefile | 1 +
|
|
arch/arm/mach-rockchip/rk3288/Kconfig | 12 ++++++
|
|
board/rockchip/xt-q8l-v10_rk3288/Kconfig | 15 +++++++
|
|
board/rockchip/xt-q8l-v10_rk3288/MAINTAINERS | 6 +++
|
|
board/rockchip/xt-q8l-v10_rk3288/Makefile | 7 ++++
|
|
board/rockchip/xt-q8l-v10_rk3288/xt-q8l-v10-rk3288.c | 21 ++++++++++
|
|
include/configs/xt-q8l-v10_rk3288.h | 21 ++++++++++
|
|
7 files changed, 83 insertions(+)
|
|
|
|
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
|
index 7c8cf3a5a1d..db25361ca5c 100644
|
|
--- a/arch/arm/dts/Makefile
|
|
+++ b/arch/arm/dts/Makefile
|
|
@@ -61,6 +61,7 @@ dtb-$(CONFIG_ROCKCHIP_RK322X) += \
|
|
dtb-$(CONFIG_ROCKCHIP_RK3288) += \
|
|
rk3288-evb.dtb \
|
|
rk3288-popmetal.dtb \
|
|
+ rk3288-xt-q8l-v10.dtb \
|
|
rk3288-rock2-square.dtb \
|
|
rk3288-rock-pi-n8.dtb \
|
|
rk3288-veyron-jerry.dtb \
|
|
diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig
|
|
index 111111111111..222222222222 100644
|
|
--- a/arch/arm/mach-rockchip/rk3288/Kconfig
|
|
+++ b/arch/arm/mach-rockchip/rk3288/Kconfig
|
|
@@ -139,6 +139,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
|
|
@@ -198,4 +208,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/Kconfig b/board/rockchip/xt-q8l-v10_rk3288/Kconfig
|
|
new file mode 100644
|
|
index 000000000000..111111111111
|
|
--- /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
|
|
new file mode 100644
|
|
index 000000000000..111111111111
|
|
--- /dev/null
|
|
+++ b/board/rockchip/xt-q8l-v10_rk3288/MAINTAINERS
|
|
@@ -0,0 +1,6 @@
|
|
+XT-Q8L-V10-RK3288
|
|
+M: Paolo Sabatino <[email protected]>
|
|
+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
|
|
new file mode 100644
|
|
index 000000000000..111111111111
|
|
--- /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/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 000000000000..111111111111
|
|
--- /dev/null
|
|
+++ b/board/rockchip/xt-q8l-v10_rk3288/xt-q8l-v10-rk3288.c
|
|
@@ -0,0 +1,20 @@
|
|
+/*
|
|
+ * SPDX-License-Identifier: GPL-2.0+
|
|
+ */
|
|
+
|
|
+#include <spl.h>
|
|
+#include <asm/gpio.h>
|
|
+
|
|
+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 000000000000..111111111111
|
|
--- /dev/null
|
|
+++ b/include/configs/xt-q8l-v10_rk3288.h
|
|
@@ -0,0 +1,21 @@
|
|
+/*
|
|
+ * (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 <configs/rk3288_common.h>
|
|
+
|
|
+#undef BOOT_TARGETS
|
|
+
|
|
+#define BOOT_TARGETS "mmc1 usb mmc0 pxe dhcp"
|
|
+
|
|
+#endif
|
|
--
|
|
Armbian
|