Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f0ceaa authored by John Crispin's avatar John Crispin Committed by Ralf Baechle
Browse files

MIPS: Lantiq: Add etop board support



Register the etop platform device inside the machtype specific init code.

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarRalph Hempel <ralph.hempel@lantiq.com>
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2356/
Patchwork: https://patchwork.linux-mips.org/patch/2370/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 504d4721
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/physmap.h>
#include <linux/input.h>
#include <linux/input.h>
#include <linux/phy.h>


#include <lantiq_soc.h>
#include <lantiq_soc.h>
#include <irq.h>
#include <irq.h>
@@ -55,11 +56,16 @@ static struct ltq_pci_data ltq_pci_data = {
	},
	},
};
};


static struct ltq_eth_data ltq_eth_data = {
	.mii_mode = PHY_INTERFACE_MODE_MII,
};

static void __init easy50712_init(void)
static void __init easy50712_init(void)
{
{
	ltq_register_gpio_stp();
	ltq_register_gpio_stp();
	ltq_register_nor(&easy50712_flash_data);
	ltq_register_nor(&easy50712_flash_data);
	ltq_register_pci(&ltq_pci_data);
	ltq_register_pci(&ltq_pci_data);
	ltq_register_etop(&ltq_eth_data);
}
}


MIPS_MACHINE(LTQ_MACH_EASY50712,
MIPS_MACHINE(LTQ_MACH_EASY50712,