mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-13 22:23:38 +00:00
airoha: rename subtarget from en7581 to an7581
The Airoha EN7581 got renamed to AN7581 due to move from Econet to Airoha. To save on compatibility, use both compatible for the device. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
43d07feb91
commit
d7dc5b1b4d
@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
|
||||
ARCH:=arm
|
||||
BOARD:=airoha
|
||||
BOARDNAME:=Airoha ARM
|
||||
SUBTARGETS:=en7523 en7581
|
||||
SUBTARGETS:=en7523 an7581
|
||||
FEATURES:=dt squashfs nand ramdisk gpio
|
||||
|
||||
KERNEL_PATCHVER:=6.6
|
||||
|
@ -1,11 +1,11 @@
|
||||
ARCH:=aarch64
|
||||
SUBTARGET:=en7581
|
||||
BOARDNAME:=EN7581
|
||||
SUBTARGET:=an7581
|
||||
BOARDNAME:=AN7581
|
||||
CPU_TYPE:=cortex-a53
|
||||
KERNELNAME:=Image dtbs
|
||||
FEATURES+=pwm source-only
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Airoha en7581 ARM based boards.
|
||||
Build firmware images for Airoha an7581 ARM based boards.
|
||||
endef
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include "en7581.dtsi"
|
||||
#include "an7581.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Airoha EN7581 Evaluation Board";
|
||||
compatible = "airoha,en7581-evb", "airoha,en7581";
|
||||
model = "Airoha AN7581 Evaluation Board";
|
||||
compatible = "airoha,an7581-evb", "airoha,an7581", "airoha,en7581";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart1;
|
@ -7,11 +7,11 @@
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "en7581.dtsi"
|
||||
#include "an7581.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Airoha EN7581 Evaluation Board";
|
||||
compatible = "airoha,en7581-evb", "airoha,en7581";
|
||||
model = "Airoha AN7581 Evaluation Board";
|
||||
compatible = "airoha,an7581-evb", "airoha,an7581", "airoha,en7581";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart1;
|
@ -4,24 +4,24 @@ define Device/FitImageLzma
|
||||
KERNEL_NAME := Image
|
||||
endef
|
||||
|
||||
define Device/airoha_en7581-evb
|
||||
define Device/airoha_an7581-evb
|
||||
$(call Device/FitImageLzma)
|
||||
DEVICE_VENDOR := Airoha
|
||||
DEVICE_MODEL := EN7581 Evaluation Board (SNAND)
|
||||
DEVICE_PACKAGES := kmod-leds-pwm kmod-i2c-en7581 kmod-pwm-airoha kmod-input-gpio-keys-polled
|
||||
DEVICE_DTS := en7581-evb
|
||||
DEVICE_MODEL := AN7581 Evaluation Board (SNAND)
|
||||
DEVICE_PACKAGES := kmod-leds-pwm kmod-i2c-an7581 kmod-pwm-airoha kmod-input-gpio-keys-polled
|
||||
DEVICE_DTS := an7581-evb
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_DTS_CONFIG := config@1
|
||||
KERNEL_LOADADDR := 0x80088000
|
||||
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs | append-metadata
|
||||
endef
|
||||
TARGET_DEVICES += airoha_en7581-evb
|
||||
TARGET_DEVICES += airoha_an7581-evb
|
||||
|
||||
define Device/airoha_en7581-evb-emmc
|
||||
define Device/airoha_an7581-evb-emmc
|
||||
DEVICE_VENDOR := Airoha
|
||||
DEVICE_MODEL := EN7581 Evaluation Board (EMMC)
|
||||
DEVICE_DTS := en7581-evb-emmc
|
||||
DEVICE_MODEL := AN7581 Evaluation Board (EMMC)
|
||||
DEVICE_DTS := an7581-evb-emmc
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_PACKAGES := kmod-i2c-en7581
|
||||
DEVICE_PACKAGES := kmod-i2c-an7581
|
||||
endef
|
||||
TARGET_DEVICES += airoha_en7581-evb-emmc
|
||||
TARGET_DEVICES += airoha_an7581-evb-emmc
|
@ -5,25 +5,25 @@ OTHER_MENU:=Other modules
|
||||
I2C_MT7621_MODULES:= \
|
||||
CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
|
||||
|
||||
define KernelPackage/i2c-en7581
|
||||
define KernelPackage/i2c-an7581
|
||||
SUBMENU:=$(OTHER_MENU)
|
||||
$(call i2c_defaults,$(I2C_MT7621_MODULES),79)
|
||||
TITLE:=Airoha I2C Controller
|
||||
DEPENDS:=+kmod-i2c-core \
|
||||
@(TARGET_airoha_en7581)
|
||||
@(TARGET_airoha_an7581)
|
||||
endef
|
||||
|
||||
define KernelPackage/i2c-en7581/description
|
||||
define KernelPackage/i2c-an7581/description
|
||||
Kernel modules for enable mt7621 i2c controller.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,i2c-en7581))
|
||||
$(eval $(call KernelPackage,i2c-an7581))
|
||||
|
||||
|
||||
define KernelPackage/pwm-en7581
|
||||
define KernelPackage/pwm-an7581
|
||||
SUBMENU:=$(OTHER_MENU)
|
||||
TITLE:=Airoha EN7581 PWM
|
||||
DEPENDS:=@(TARGET_airoha_en7581)
|
||||
DEPENDS:=@(TARGET_airoha_an7581)
|
||||
KCONFIG:= \
|
||||
CONFIG_PWM=y \
|
||||
CONFIG_PWM_AIROHA=y \
|
||||
@ -33,10 +33,10 @@ define KernelPackage/pwm-en7581
|
||||
AUTOLOAD:=$(call AutoProbe,pwm-airoha)
|
||||
endef
|
||||
|
||||
define KernelPackage/pwm-en7581/description
|
||||
define KernelPackage/pwm-an7581/description
|
||||
Kernel module to use the PWM channel on Airoha SoC
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,pwm-en7581))
|
||||
$(eval $(call KernelPackage,pwm-an7581))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user