mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 20:24:26 +08:00
board: rockchip: Add a common ROCK Pi 4 target
Move ROCK Pi 4 specific board code from the shared evb_rk3399 target into its own board target and update related defconfigs to use the new TARGET_ROCKPI4_RK3399 option. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Christopher Obbard <chris.obbard@collabora.com> Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
parent
4b6e00454f
commit
b65850509c
@ -89,6 +89,11 @@ config TARGET_ROCK960_RK3399
|
||||
* 2x USB 3.0 type A, 2x USB 2.0 type A (host mode only),
|
||||
1x USB 3.0 type C OTG
|
||||
|
||||
config TARGET_ROCKPI4_RK3399
|
||||
bool "Radxa ROCK Pi 4 board"
|
||||
help
|
||||
Support for ROCK Pi 4 board family by Radxa.
|
||||
|
||||
config TARGET_ROCKPRO64_RK3399
|
||||
bool "Pine64 Rockpro64 board"
|
||||
help
|
||||
@ -177,6 +182,7 @@ source "board/google/gru/Kconfig"
|
||||
source "board/pine64/pinebook-pro-rk3399/Kconfig"
|
||||
source "board/pine64/pinephone-pro-rk3399/Kconfig"
|
||||
source "board/pine64/rockpro64_rk3399/Kconfig"
|
||||
source "board/radxa/rockpi4-rk3399/Kconfig"
|
||||
source "board/rockchip/evb_rk3399/Kconfig"
|
||||
source "board/theobroma-systems/puma_rk3399/Kconfig"
|
||||
source "board/vamrs/rock960_rk3399/Kconfig"
|
||||
|
15
board/radxa/rockpi4-rk3399/Kconfig
Normal file
15
board/radxa/rockpi4-rk3399/Kconfig
Normal file
@ -0,0 +1,15 @@
|
||||
if TARGET_ROCKPI4_RK3399
|
||||
|
||||
config SYS_BOARD
|
||||
default "rockpi4-rk3399"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "radxa"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "rockpi4-rk3399"
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
|
||||
endif
|
22
board/radxa/rockpi4-rk3399/MAINTAINERS
Normal file
22
board/radxa/rockpi4-rk3399/MAINTAINERS
Normal file
@ -0,0 +1,22 @@
|
||||
ROCK-PI-4
|
||||
M: Jagan Teki <jagan@amarulasolutions.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: board/radxa/rockpi4-rk3399/
|
||||
F: configs/rock-pi-4-rk3399_defconfig
|
||||
F: configs/rock-pi-4c-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-pi-4*
|
||||
|
||||
ROCK-4C+
|
||||
M: FUKAUMI Naoki <naoki@radxa.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: configs/rock-4c-plus-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-4c-plus*
|
||||
|
||||
ROCK-4SE
|
||||
M: Christopher Obbard <chris.obbard@collabora.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: configs/rock-4se-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-4se*
|
@ -4,4 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += evb-rk3399.o
|
||||
obj-y += rockpi4-rk3399.o
|
@ -3,13 +3,8 @@
|
||||
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <efi_loader.h>
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
#include <asm/arch-rockchip/periph.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#define ROCKPI4_UPDATABLE_IMAGES 2
|
||||
|
||||
@ -24,17 +19,15 @@ struct efi_capsule_update_info update_info = {
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#if defined(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) && defined(CONFIG_EFI_PARTITION)
|
||||
#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) && IS_ENABLED(CONFIG_EFI_PARTITION)
|
||||
static bool board_is_rockpi_4b(void)
|
||||
{
|
||||
return CONFIG_IS_ENABLED(TARGET_EVB_RK3399) &&
|
||||
of_machine_is_compatible("radxa,rockpi4b");
|
||||
return of_machine_is_compatible("radxa,rockpi4b");
|
||||
}
|
||||
|
||||
static bool board_is_rockpi_4c(void)
|
||||
{
|
||||
return CONFIG_IS_ENABLED(TARGET_EVB_RK3399) &&
|
||||
of_machine_is_compatible("radxa,rockpi4c");
|
||||
return of_machine_is_compatible("radxa,rockpi4c");
|
||||
}
|
||||
|
||||
void rockchip_capsule_update_board_setup(void)
|
@ -84,28 +84,6 @@ S: Maintained
|
||||
F: configs/orangepi-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-orangepi*
|
||||
|
||||
ROCK-4C+
|
||||
M: FUKAUMI Naoki <naoki@radxa.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: configs/rock-4c-plus-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-4c-plus*
|
||||
|
||||
ROCK-4SE
|
||||
M: Christopher Obbard <chris.obbard@collabora.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: configs/rock-4se-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-4se*
|
||||
|
||||
ROCK-PI-4
|
||||
M: Jagan Teki <jagan@amarulasolutions.com>
|
||||
R: Jonas Karlman <jonas@kwiboo.se>
|
||||
S: Maintained
|
||||
F: configs/rock-pi-4-rk3399_defconfig
|
||||
F: configs/rock-pi-4c-rk3399_defconfig
|
||||
F: arch/arm/dts/rk3399-rock-pi-4*
|
||||
|
||||
ROCK-PI-N10
|
||||
M: Jagan Teki <jagan@amarulasolutions.com>
|
||||
S: Maintained
|
||||
|
@ -8,7 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="rk3399-rock-4c-plus"
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_TARGET_EVB_RK3399=y
|
||||
CONFIG_TARGET_ROCKPI4_RK3399=y
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||
|
@ -8,7 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="rk3399-rock-4se"
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_TARGET_EVB_RK3399=y
|
||||
CONFIG_TARGET_ROCKPI4_RK3399=y
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||
|
@ -8,7 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="rk3399-rock-pi-4a"
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_TARGET_EVB_RK3399=y
|
||||
CONFIG_TARGET_ROCKPI4_RK3399=y
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||
|
@ -8,7 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="rk3399-rock-pi-4c"
|
||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
CONFIG_DM_RESET=y
|
||||
CONFIG_ROCKCHIP_RK3399=y
|
||||
CONFIG_TARGET_EVB_RK3399=y
|
||||
CONFIG_TARGET_ROCKPI4_RK3399=y
|
||||
CONFIG_DEBUG_UART_BASE=0xFF1A0000
|
||||
CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||
|
@ -13,22 +13,6 @@
|
||||
#define CFG_SYS_SDRAM_BASE 0
|
||||
#define SDRAM_MAX_SIZE 0xf8000000
|
||||
|
||||
#define ROCKPI_4B_IDBLOADER_IMAGE_GUID \
|
||||
EFI_GUID(0x02f4d760, 0xcfd5, 0x43bd, 0x8e, 0x2d, \
|
||||
0xa4, 0x2a, 0xcb, 0x33, 0xc6, 0x60)
|
||||
|
||||
#define ROCKPI_4B_UBOOT_IMAGE_GUID \
|
||||
EFI_GUID(0x4ce292da, 0x1dd8, 0x428d, 0xa1, 0xc2, \
|
||||
0x77, 0x74, 0x3e, 0xf8, 0xb9, 0x6e)
|
||||
|
||||
#define ROCKPI_4C_IDBLOADER_IMAGE_GUID \
|
||||
EFI_GUID(0xfd68510c, 0x12d3, 0x4f0a, 0xb8, 0xd3, \
|
||||
0xd8, 0x79, 0xe1, 0xd3, 0xa5, 0x40)
|
||||
|
||||
#define ROCKPI_4C_UBOOT_IMAGE_GUID \
|
||||
EFI_GUID(0xb81fb4ae, 0xe4f3, 0x471b, 0x99, 0xb4, \
|
||||
0x0b, 0x3d, 0xa5, 0x49, 0xce, 0x13)
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
|
||||
#define ENV_MEM_LAYOUT_SETTINGS \
|
||||
|
32
include/configs/rockpi4-rk3399.h
Normal file
32
include/configs/rockpi4-rk3399.h
Normal file
@ -0,0 +1,32 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
||||
*/
|
||||
|
||||
#ifndef __ROCKPI4_RK3399_H
|
||||
#define __ROCKPI4_RK3399_H
|
||||
|
||||
#define ROCKPI_4B_IDBLOADER_IMAGE_GUID \
|
||||
EFI_GUID(0x02f4d760, 0xcfd5, 0x43bd, 0x8e, 0x2d, \
|
||||
0xa4, 0x2a, 0xcb, 0x33, 0xc6, 0x60)
|
||||
|
||||
#define ROCKPI_4B_UBOOT_IMAGE_GUID \
|
||||
EFI_GUID(0x4ce292da, 0x1dd8, 0x428d, 0xa1, 0xc2, \
|
||||
0x77, 0x74, 0x3e, 0xf8, 0xb9, 0x6e)
|
||||
|
||||
#define ROCKPI_4C_IDBLOADER_IMAGE_GUID \
|
||||
EFI_GUID(0xfd68510c, 0x12d3, 0x4f0a, 0xb8, 0xd3, \
|
||||
0xd8, 0x79, 0xe1, 0xd3, 0xa5, 0x40)
|
||||
|
||||
#define ROCKPI_4C_UBOOT_IMAGE_GUID \
|
||||
EFI_GUID(0xb81fb4ae, 0xe4f3, 0x471b, 0x99, 0xb4, \
|
||||
0x0b, 0x3d, 0xa5, 0x49, 0xce, 0x13)
|
||||
|
||||
#define ROCKCHIP_DEVICE_SETTINGS \
|
||||
"stdin=serial,usbkbd\0" \
|
||||
"stdout=serial,vidconsole\0" \
|
||||
"stderr=serial,vidconsole\0"
|
||||
|
||||
#include <configs/rk3399_common.h>
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user