source: trunk/target/linux/lantiq/patches-3.0/460-mach-dgn3500.patch @ 28308

Last change on this file since 28308 was 28308, checked in by blogic, 5 years ago

[lantiq]

  • rebase 3.0 patches
  • fold some fixes into existing patches
File size: 2.3 KB
  • arch/mips/lantiq/machtypes.h

    a b enum lantiq_mach_type { 
    3333        LANTIQ_MACH_ARV752DPW,          /* Arcor easybox a802 */ 
    3434        LANTIQ_MACH_ARV752DPW22,        /* Arcor easybox a803 */ 
    3535        LANTIQ_MACH_ARV7518PW,          /* ASTORIA */ 
     36 
     37        /* Netgear */ 
     38        LANTIQ_MACH_DGN3500B,           /* Netgear DGN3500 */ 
    3639}; 
    3740 
    3841#endif 
  • arch/mips/lantiq/xway/Kconfig

    a b config LANTIQ_MACH_ARV45XX 
    1010        bool "ARV45XX" 
    1111        default y 
    1212 
     13config LANTIQ_MACH_NETGEAR 
     14        bool "Netgear" 
     15        default y 
     16 
    1317endmenu 
    1418 
    1519endif 
  • arch/mips/lantiq/xway/Makefile

    a b obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o 
    66obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o 
    77obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o 
    88obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o 
     9obj-$(CONFIG_LANTIQ_MACH_NETGEAR) += mach-netgear.o 
  • new file arch/mips/lantiq/xway/mach-netgear.c

    - +  
     1/* 
     2 *  This program is free software; you can redistribute it and/or modify it 
     3 *  under the terms of the GNU General Public License version 2 as published 
     4 *  by the Free Software Foundation. 
     5 * 
     6 *  Copyright (C) 2010 John Crispin <blogic@openwrt.org> 
     7 */ 
     8 
     9#include <linux/init.h> 
     10#include <linux/platform_device.h> 
     11#include <linux/mtd/mtd.h> 
     12#include <linux/mtd/partitions.h> 
     13#include <linux/mtd/physmap.h> 
     14#include <linux/input.h> 
     15#include <linux/phy.h> 
     16#include <linux/spi/spi.h> 
     17 
     18#include <lantiq_soc.h> 
     19#include <irq.h> 
     20 
     21#include "../machtypes.h" 
     22#include "devices.h" 
     23 
     24static struct ltq_pci_data ltq_pci_data = { 
     25        .clock  = PCI_CLOCK_INT, 
     26        .gpio   = PCI_GNT1 | PCI_REQ1, 
     27        .irq    = { 
     28                [14] = INT_NUM_IM0_IRL0 + 22, 
     29        }, 
     30}; 
     31 
     32static struct ltq_eth_data ltq_eth_data = { 
     33        .mii_mode = PHY_INTERFACE_MODE_MII, 
     34}; 
     35 
     36struct spi_board_info spi_info = { 
     37        .bus_num        = 0, 
     38        .chip_select    = 3, 
     39        .max_speed_hz   = 25000000, 
     40        .modalias       = "mx25l12805d", 
     41}; 
     42 
     43struct ltq_spi_platform_data ltq_spi_data = { 
     44        .num_chipselect = 4, 
     45}; 
     46 
     47static void __init dgn3500_init(void) 
     48{ 
     49        ltq_register_pci(&ltq_pci_data); 
     50        ltq_register_etop(&ltq_eth_data); 
     51        ltq_register_spi(&ltq_spi_data, &spi_info, 1); 
     52} 
     53 
     54MIPS_MACHINE(LANTIQ_MACH_DGN3500B, 
     55             "DGN3500B", 
     56             "Netgear DGN3500B", 
     57              dgn3500_init); 
Note: See TracBrowser for help on using the repository browser.