From ddde768a915e26ec040fdfce35e4f391e4407794 Mon Sep 17 00:00:00 2001 From: Wademar Brodkorb Date: Thu, 8 Aug 2024 09:59:25 +0200 Subject: [PATCH] banana-pro: bring it in shape --- target/arm/Makefile | 5 +++- target/arm/kernel/banana-pro | 48 +++++++++++++++++++++++++++++++++--- target/linux/Config.in.kernelcfg | 1 + target/linux/config/Config.in.serial | 5 +++- 4 files changed, 54 insertions(+), 5 deletions(-) diff --git a/target/arm/Makefile b/target/arm/Makefile index f6ddf3c76..280e954b7 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -205,6 +205,9 @@ endif ifeq ($(ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK),y) VENDOR:=ti/omap/ endif +ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) +VENDOR:=allwinner/ +endif endif dtb-install: @@ -245,7 +248,7 @@ ifeq ($(ADK_TARGET_BOARD_BCM28XX),y) done endif ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) - ${KERNEL_MAKE} sun7i-a20-bananapro.dtb $(MAKE_TRACE) + ${KERNEL_MAKE} $(VENDOR)sun7i-a20-bananapro.dtb $(MAKE_TRACE) endif ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y) ${KERNEL_MAKE} sun8i-h2-plus-orangepi-zero.dtb $(MAKE_TRACE) diff --git a/target/arm/kernel/banana-pro b/target/arm/kernel/banana-pro index e55c93aa7..d3beba2b4 100644 --- a/target/arm/kernel/banana-pro +++ b/target/arm/kernel/banana-pro @@ -1,9 +1,51 @@ CONFIG_ARM=y CONFIG_ARM_PATCH_PHYS_VIRT=y +CONFIG_ARCH_MULTIPLATFORM=y CONFIG_ARCH_MULTI_V7=y +CONFIG_ARCH_MULTI_V6_V7=y CONFIG_ARCH_SUNXI=y CONFIG_MACH_SUN7I=y CONFIG_KUSER_HELPERS=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_SERIAL_8250_DW=y +CONFIG_ATAGS=y +CONFIG_PINCTRL=y +CONFIG_PINMUX=y +CONFIG_PINCONF=y +CONFIG_GENERIC_PINCONF=y +CONFIG_PINCTRL_SUNXI=y +CONFIG_PINCTRL_SUN4I_A10=y +CONFIG_PINCTRL_SUN5I=y +CONFIG_PINCTRL_SUN6I_A31=y +CONFIG_PINCTRL_SUN6I_A31_R=y +CONFIG_PINCTRL_SUN8I_A23=y +CONFIG_PINCTRL_SUN8I_A33=y +CONFIG_PINCTRL_SUN8I_A83T=y +CONFIG_PINCTRL_SUN8I_A83T_R=y +CONFIG_PINCTRL_SUN8I_A23_R=y +CONFIG_PINCTRL_SUN8I_H3=y +CONFIG_PINCTRL_SUN8I_H3_R=y +CONFIG_PINCTRL_SUN8I_V3S=y +CONFIG_PINCTRL_SUN9I_A80=y +CONFIG_PINCTRL_SUN9I_A80_R=y +CONFIG_PINCTRL_SUN20I_D1=y +CONFIG_COMMON_CLK=y +CONFIG_CLK_SUNXI=y +CONFIG_CLK_SUNXI_CLOCKS=y +CONFIG_CLK_SUNXI_PRCM_SUN6I=y +CONFIG_CLK_SUNXI_PRCM_SUN8I=y +CONFIG_CLK_SUNXI_PRCM_SUN9I=y +CONFIG_SUNXI_CCU=y +CONFIG_SUN20I_D1_CCU=y +CONFIG_SUN20I_D1_R_CCU=y +CONFIG_SUN4I_A10_CCU=y +CONFIG_SUN5I_CCU=y +CONFIG_SUN6I_A31_CCU=y +CONFIG_SUN6I_RTC_CCU=y +CONFIG_SUN8I_A23_CCU=y +CONFIG_SUN8I_A33_CCU=y +CONFIG_SUN8I_A83T_CCU=y +CONFIG_SUN8I_H3_CCU=y +CONFIG_SUN8I_V3S_CCU=y +CONFIG_SUN8I_DE2_CCU=y +CONFIG_SUN8I_R40_CCU=y +CONFIG_SUN9I_A80_CCU=y +CONFIG_SUN8I_R_CCU=y diff --git a/target/linux/Config.in.kernelcfg b/target/linux/Config.in.kernelcfg index 2c43e1ab6..3a1b60164 100644 --- a/target/linux/Config.in.kernelcfg +++ b/target/linux/Config.in.kernelcfg @@ -49,6 +49,7 @@ config ADK_TARGET_LINUX_KERNEL_DEFCONFIG default "j2_defconfig" if ADK_TARGET_SYSTEM_NUMATO_MIMASV2 default "sunxi_defconfig" if ADK_TARGET_SYSTEM_ORANGE_PI0 default "sunxi_defconfig" if ADK_TARGET_SYSTEM_BANANA_P2_ZERO + default "sunxi_defconfig" if ADK_TARGET_SYSTEM_BANANA_PRO default "edosk2674_defconfig" if ADK_TARGET_SYSTEM_HITACHI_EDOSK2674 default "x86_64_defconfig" if ADK_TARGET_SYSTEM_GENERIC_X86_64 default "i386_defconfig" if ADK_TARGET_SYSTEM_GENERIC_X86 diff --git a/target/linux/config/Config.in.serial b/target/linux/config/Config.in.serial index c22746371..39470b7f7 100644 --- a/target/linux/config/Config.in.serial +++ b/target/linux/config/Config.in.serial @@ -127,6 +127,7 @@ config ADK_LINUX_KERNEL_SERIAL_8250 select ADK_LINUX_KERNEL_SERIAL_8250_DW if ADK_TARGET_SYSTEM_QEMU_ARC select ADK_LINUX_KERNEL_SERIAL_8250_DW if ADK_TARGET_SYSTEM_ROCKPI4_PLUS select ADK_LINUX_KERNEL_SERIAL_8250_DW if ADK_TARGET_SYSTEM_STARFIVE_VISIONFIVE2 + select ADK_LINUX_KERNEL_SERIAL_8250_DW if ADK_TARGET_SYSTEM_BANANA_PRO select ADK_LINUX_KERNEL_SERIAL_8250_EXTENDED if ADK_TARGET_SYSTEM_VISIONFIVE2 select ADK_LINUX_KERNEL_SERIAL_8250_DMA if ADK_TARGET_SYSTEM_ORANGE_PI0 select ADK_LINUX_KERNEL_SERIAL_8250_INGENIC if ADK_TARGET_SYSTEM_IMGTEC_CI20 @@ -171,7 +172,8 @@ config ADK_LINUX_KERNEL_SERIAL_8250 || ADK_TARGET_SYSTEM_RASPBERRY_PI4 \ || ADK_TARGET_SYSTEM_RASPBERRY_PI4_64 \ || ADK_TARGET_SYSTEM_ROCKPI4_PLUS \ - || ADK_TARGET_SYSTEM_STARFIVE_VISIONFIVE2 + || ADK_TARGET_SYSTEM_STARFIVE_VISIONFIVE2 \ + || ADK_TARGET_SYSTEM_BANANA_PRO default y if ADK_TARGET_SYSTEM_XILINX_KINTEX7 default y if ADK_TARGET_SYSTEM_IMGTEC_CI20 default y if ADK_TARGET_SYSTEM_LINKSYS_NSLU2 @@ -208,6 +210,7 @@ config ADK_LINUX_KERNEL_SERIAL_8250 default y if ADK_TARGET_SYSTEM_RASPBERRY_PI4_64 default y if ADK_TARGET_SYSTEM_ROCKPI4_PLUS default y if ADK_TARGET_SYSTEM_STARFIVE_VISIONFIVE2 + default y if ADK_TARGET_SYSTEM_BANANA_PRO default n help Serial driver for 8250 UART chip. -- 2.11.4.GIT