aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-07 15:25:12 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-30 22:18:35 +0200
commit4e4ee4649553ab536225060a27fc320bf54e458c (patch)
tree711fbf5485f94baec8b708edba00c7250b923872 /target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c
parent47b2ee2d9a9a1790f9bf8a528640c333af39e4ba (diff)
downloadupstream-4e4ee4649553ab536225060a27fc320bf54e458c.tar.gz
upstream-4e4ee4649553ab536225060a27fc320bf54e458c.tar.bz2
upstream-4e4ee4649553ab536225060a27fc320bf54e458c.zip
ar71xx: drop target
This target has been mostly replaced by ath79 and won't be included in the upcoming release anymore. Finally put it to rest. This also removes all references in packages, tools, etc. as well as the uboot-ar71xx and vsc73x5-ucode packages. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c
deleted file mode 100644
index 9867429684..0000000000
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 8devices Lima board support
- *
- * Copyright (C) 2016 Mantas Pucka <mantas@8devices.com>
- * Copyright (C) 2017 Karol Dudek <karoiz@sli.pl>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation.
- */
-
-#include <linux/platform_device.h>
-#include <asm/mach-ath79/ar71xx_regs.h>
-#include <asm/mach-ath79/ath79.h>
-
-#include "common.h"
-#include "dev-ap9x-pci.h"
-#include "dev-eth.h"
-#include "dev-gpio-buttons.h"
-#include "dev-leds-gpio.h"
-#include "dev-m25p80.h"
-#include "dev-spi.h"
-#include "dev-usb.h"
-#include "dev-wmac.h"
-#include "machtypes.h"
-#include "pci.h"
-
-#define LIMA_GPIO_BTN_1_DEFAULT 16
-#define LIMA_KEYS_POLL_INTERVAL 20 /* msecs */
-#define LIMA_KEYS_DEBOUNCE_INTERVAL (3 * LIMA_KEYS_POLL_INTERVAL)
-
-#define LIMA_ETH_PHYS (BIT(0) | BIT(1))
-
-#define LIMA_MAC0_OFFSET 0x0000
-#define LIMA_MAC1_OFFSET 0x0006
-
-#define LIMA_CALDATA_OFFSET 0x1000
-
-static struct gpio_keys_button lima_gpio_keys[] __initdata = {
- {
- .desc = "button1",
- .type = EV_KEY,
- .code = BTN_1,
- .debounce_interval = LIMA_KEYS_DEBOUNCE_INTERVAL,
- .gpio = LIMA_GPIO_BTN_1_DEFAULT,
- .active_low = 1,
- }
-};
-
-static void __init lima_setup(void)
-{
- u8 *art = (u8 *) KSEG1ADDR(0x1f080000);
-
- ath79_register_m25p80(NULL);
-
- ath79_register_gpio_keys_polled(-1, LIMA_KEYS_POLL_INTERVAL,
- ARRAY_SIZE(lima_gpio_keys),
- lima_gpio_keys);
-
- ath79_setup_ar933x_phy4_switch(true, true);
-
- ath79_init_mac(ath79_eth0_data.mac_addr, art + LIMA_MAC0_OFFSET, 0);
- ath79_init_mac(ath79_eth1_data.mac_addr, art + LIMA_MAC1_OFFSET, 0);
-
- ath79_register_mdio(0, ~LIMA_ETH_PHYS);
-
- ath79_switch_data.phy4_mii_en = 1;
-
- ath79_switch_data.phy_poll_mask |= BIT(0);
- ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
- ath79_eth1_data.duplex = DUPLEX_FULL;
- ath79_eth1_data.phy_mask = BIT(1);
- ath79_register_eth(1);
-
- ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
- ath79_eth0_data.duplex = DUPLEX_FULL;
- ath79_eth0_data.speed = SPEED_100;
- ath79_eth0_data.phy_mask = BIT(0);
- ath79_register_eth(0);
-
- ath79_register_wmac(art + LIMA_CALDATA_OFFSET, NULL);
- ath79_register_usb();
- ath79_register_pci();
-}
-
-MIPS_MACHINE(ATH79_MACH_LIMA, "LIMA", "8devices Lima board", lima_setup);