| 1 | From 72a9b536ef81f06bb8042abee0410458f5df93d2 Mon Sep 17 00:00:00 2001 |
| 2 | From: John Crispin <blogic@openwrt.org> |
| 3 | Date: Fri, 6 May 2011 00:10:02 +0200 |
| 4 | Subject: [PATCH 12/13] MIPS: Lantiq: Add etop board support |
| 5 | |
| 6 | Register the etop platform device inside the machtype specific init code. |
| 7 | |
| 8 | Signed-off-by: John Crispin <blogic@openwrt.org> |
| 9 | Signed-off-by: Ralph Hempel <ralph.hempel@lantiq.com> |
| 10 | Signed-off-by: David Daney <ddaney@caviumnetworks.com> |
| 11 | Cc: linux-mips@linux-mips.org |
| 12 | Patchwork: https://patchwork.linux-mips.org/patch/2356/ |
| 13 | Patchwork: https://patchwork.linux-mips.org/patch/2370/ |
| 14 | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |
| 15 | --- |
| 16 | arch/mips/lantiq/xway/mach-easy50712.c | 6 ++++++ |
| 17 | 1 files changed, 6 insertions(+), 0 deletions(-) |
| 18 | |
| 19 | --- a/arch/mips/lantiq/xway/mach-easy50712.c |
| 20 | +++ b/arch/mips/lantiq/xway/mach-easy50712.c |
| 21 | @@ -12,6 +12,7 @@ |
| 22 | #include <linux/mtd/partitions.h> |
| 23 | #include <linux/mtd/physmap.h> |
| 24 | #include <linux/input.h> |
| 25 | +#include <linux/phy.h> |
| 26 | |
| 27 | #include <lantiq_soc.h> |
| 28 | #include <irq.h> |
| 29 | @@ -55,11 +56,16 @@ static struct ltq_pci_data ltq_pci_data |
| 30 | }, |
| 31 | }; |
| 32 | |
| 33 | +static struct ltq_eth_data ltq_eth_data = { |
| 34 | + .mii_mode = PHY_INTERFACE_MODE_MII, |
| 35 | +}; |
| 36 | + |
| 37 | static void __init easy50712_init(void) |
| 38 | { |
| 39 | ltq_register_gpio_stp(); |
| 40 | ltq_register_nor(&easy50712_flash_data); |
| 41 | ltq_register_pci(<q_pci_data); |
| 42 | + ltq_register_etop(<q_eth_data); |
| 43 | } |
| 44 | |
| 45 | MIPS_MACHINE(LTQ_MACH_EASY50712, |
| 46 | |