Skip to content

Commit

Permalink
board: add Wiren Board 8 specific code (Nikita Maslov - d85fa1d947c0a…
Browse files Browse the repository at this point in the history
…b4538fcede8a44c8aeea4122fee)

clean code (Anton Tarasov)
  • Loading branch information
taraant committed Dec 11, 2024
1 parent 3bc884a commit 60c1d5a
Show file tree
Hide file tree
Showing 8 changed files with 1,217 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,7 @@ source "board/phytium/durian/Kconfig"
source "board/phytium/pomelo/Kconfig"
source "board/phytium/pe2201/Kconfig"
source "board/xen/xenguest_arm64/Kconfig"
source "board/wirenboard/sun50i_wirenboard8/Kconfig"

source "arch/arm/Kconfig.debug"

Expand Down
18 changes: 18 additions & 0 deletions arch/arm/mach-sunxi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,27 @@ config SYS_CONFIG_NAME
default "sun50i" if MACH_SUN50I_H6
default "sun50i" if MACH_SUN50I_H616

choice
prompt "Sunxi board variant"
optional

config TARGET_SUN50I_WIRENBOARD8
bool "Wiren Board 8"
select MACH_SUN50I_H616
select BOARD_EARLY_INIT_F

config TARGET_SUNXI
bool "Any sunxi board"

endchoice

if TARGET_SUNXI

config SYS_BOARD
default "sunxi"

endif

config SYS_SOC
default "sunxi"

Expand Down
33 changes: 33 additions & 0 deletions board/wirenboard/sun50i_wirenboard8/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
if TARGET_SUN50I_WIRENBOARD8

config SYS_BOARD
default "sun50i_wirenboard8"

config SYS_VENDOR
default "wirenboard"

config SYS_CONFIG_NAME
default "sun50i_wirenboard8"

config OF_OVERLAY_ADDR
hex

config OF_OVERLAY_OFFSET_BLKS
hex

config OF_OVERLAY_SIZE_BLKS
hex

choice
prompt "WB8 flavour"

config WB8_FLAVOUR_GENERIC
bool "Generic Wiren Board 8"

config WB8_FLAVOUR_BUILDROOT
bool "Buildroot Wiren Board 8"

endchoice

endif

9 changes: 9 additions & 0 deletions board/wirenboard/sun50i_wirenboard8/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: GPL-2.0+
#
# (C) Copyright 2012 Henrik Nordstrom <[email protected]>
#
# Based on some other board Makefile
#
# (C) Copyright 2000-2003
# Wolfgang Denk, DENX Software Engineering, [email protected].
obj-y += board.o
Loading

0 comments on commit 60c1d5a

Please sign in to comment.