Skip to content

Commit

Permalink
airoha: rename subtarget from en7581 to an7581
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ansuel committed Oct 23, 2024
1 parent 43d07fe commit d7dc5b1
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion target/linux/airoha/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 8 additions & 8 deletions target/linux/airoha/modules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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))


0 comments on commit d7dc5b1

Please sign in to comment.