Import U-Boot v2026.07 (unmodified upstream source, base for rtwo patches)

This commit is contained in:
2026-09-16 23:15:56 -03:00
commit 391981275c
38022 changed files with 8370285 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
if TARGET_POWKIDDY_X55_RK3566
config SYS_BOARD
default "x55"
config SYS_VENDOR
default "powkiddy"
config SYS_CONFIG_NAME
default "powkiddy-x55-rk3566"
config BOARD_SPECIFIC_OPTIONS
def_bool y
endif
+7
View File
@@ -0,0 +1,7 @@
X55
M: Chris Morgan <macromorgan@hotmail.com>
S: Maintained
F: board/powkiddy/x55
F: include/configs/powkiddy-x55-rk3566.h
F: configs/powkiddy-x55-rk3566_defconfig
F: arch/arm/dts/rk3566-powkiddy-x55-u-boot.dtsi
+6
View File
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (c) 2023 Chris Morgan <macromorgan@hotmail.com>
#
obj-y += x55.o
+39
View File
@@ -0,0 +1,39 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2023 Chris Morgan <macromorgan@hotmail.com>
*/
#include <asm/io.h>
#define GPIO4_BASE 0xfe770000
#define GPIO_SWPORT_DR_L 0x0000
#define GPIO_SWPORT_DDR_L 0x0008
#define GPIO_B4 BIT(12)
#define GPIO_B5 BIT(13)
#define GPIO_B6 BIT(14)
#define GPIO_WRITEMASK(bits) ((bits) << 16)
/*
* Start LED very early so user knows device is on. Set color
* to red.
*/
void spl_board_init(void)
{
/* Set GPIO4_B4, GPIO4_B5, and GPIO4_B6 to output. */
writel(GPIO_WRITEMASK(GPIO_B6 | GPIO_B5 | GPIO_B4) | \
(GPIO_B6 | GPIO_B5 | GPIO_B4),
(GPIO4_BASE + GPIO_SWPORT_DDR_L));
/* Set GPIO4_B5 and GPIO4_B6 to 0 and GPIO4_B4 to 1. */
writel(GPIO_WRITEMASK(GPIO_B6 | GPIO_B5 | GPIO_B4) | GPIO_B4,
(GPIO4_BASE + GPIO_SWPORT_DR_L));
}
int rk_board_late_init(void)
{
/* Turn off red LED and turn on orange LED. */
writel(GPIO_WRITEMASK(GPIO_B6 | GPIO_B5 | GPIO_B4) | GPIO_B6,
(GPIO4_BASE + GPIO_SWPORT_DR_L));
return 0;
}