projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e50ade
)
ar71xx: add kernel support for the OpenMesh A40 board
author
Sven Eckelmann
<sven.eckelmann@open-mesh.com>
Fri, 23 Sep 2016 07:36:10 +0000
(09:36 +0200)
committer
John Crispin
<john@phrozen.org>
Tue, 14 Feb 2017 11:18:05 +0000
(12:18 +0100)
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
patch
|
blob
|
history
target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c
patch
|
blob
|
history
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
index 8460b0fbda781a5d71c2f8fc135d64a460c05d4a..873befaec8fa973ae83a8fedfe023a4bec164fc5 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
@@
-1,5
+1,5
@@
config ATH79_MACH_A60
config ATH79_MACH_A60
- bool "OpenMesh A60 board support"
+ bool "OpenMesh A
40/A
60 board support"
select SOC_QCA955X
select ATH79_DEV_AP9X_PCI if PCI
select ATH79_DEV_ETH
select SOC_QCA955X
select ATH79_DEV_AP9X_PCI if PCI
select ATH79_DEV_ETH
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c
index 73fba1e2640dea18a3f4e0543039efbaa11bd49c..2f0a75f7bb31bf22efd1793a8ba38deb59f00f11 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/mach-a60.c
@@
-40,6
+40,19
@@
#define A60_WMAC_CALDATA_OFFSET 0x1000
#define A60_WMAC_CALDATA_OFFSET 0x1000
+static struct gpio_led a40_leds_gpio[] __initdata = {
+ {
+ .name = "a40:red:status",
+ .gpio = A60_GPIO_LED_RED,
+ }, {
+ .name = "a40:green:status",
+ .gpio = A60_GPIO_LED_GREEN,
+ }, {
+ .name = "a40:blue:status",
+ .gpio = A60_GPIO_LED_BLUE,
+ }
+};
+
static struct gpio_led a60_leds_gpio[] __initdata = {
{
.name = "a60:red:status",
static struct gpio_led a60_leds_gpio[] __initdata = {
{
.name = "a60:red:status",
@@
-151,6
+164,14
@@
static void __init a60_setup_common(void)
ath79_register_pci();
}
ath79_register_pci();
}
+static void __init a40_setup(void)
+{
+ ath79_register_leds_gpio(-1, ARRAY_SIZE(a40_leds_gpio), a40_leds_gpio);
+ a60_setup_common();
+}
+
+MIPS_MACHINE(ATH79_MACH_A40, "A40", "OpenMesh A40", a40_setup);
+
static void __init a60_setup(void)
{
ath79_register_leds_gpio(-1, ARRAY_SIZE(a60_leds_gpio), a60_leds_gpio);
static void __init a60_setup(void)
{
ath79_register_leds_gpio(-1, ARRAY_SIZE(a60_leds_gpio), a60_leds_gpio);
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
index 23589ab0310b223ba071e0790fe4b7e6ebe15189..2a8d3398fd247dc33853888f10d9d28b928d494f 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@
-17,6
+17,7
@@
enum ath79_mach_type {
ATH79_MACH_GENERIC_OF = -1, /* Device tree board */
ATH79_MACH_GENERIC = 0,
enum ath79_mach_type {
ATH79_MACH_GENERIC_OF = -1, /* Device tree board */
ATH79_MACH_GENERIC = 0,
+ ATH79_MACH_A40, /* OpenMesh A40 */
ATH79_MACH_A60, /* OpenMesh A60 */
ATH79_MACH_ALFA_AP120C, /* ALFA Network AP120C board */
ATH79_MACH_ALFA_AP96, /* ALFA Network AP96 board */
ATH79_MACH_A60, /* OpenMesh A60 */
ATH79_MACH_ALFA_AP120C, /* ALFA Network AP120C board */
ATH79_MACH_ALFA_AP96, /* ALFA Network AP96 board */