source: src/linux/universal/linux-3.2/arch/mips/lantiq/xway/mach-easy50712.c @ 18225

Last change on this file since 18225 was 18225, checked in by BrainSlayer, 16 months ago

arch code

File size: 1.5 KB
Line 
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
17#include <lantiq_soc.h>
18#include <irq.h>
19
20#include "../machtypes.h"
21#include "devices.h"
22
23static struct mtd_partition easy50712_partitions[] = {
24        {
25                .name   = "uboot",
26                .offset = 0x0,
27                .size   = 0x10000,
28        },
29        {
30                .name   = "uboot_env",
31                .offset = 0x10000,
32                .size   = 0x10000,
33        },
34        {
35                .name   = "linux",
36                .offset = 0x20000,
37                .size   = 0x3d0000,
38        },
39};
40
41static struct physmap_flash_data easy50712_flash_data = {
42        .nr_parts       = ARRAY_SIZE(easy50712_partitions),
43        .parts          = easy50712_partitions,
44};
45
46static struct ltq_pci_data ltq_pci_data = {
47        .clock  = PCI_CLOCK_INT,
48        .gpio   = PCI_GNT1 | PCI_REQ1,
49        .irq    = {
50                [14] = INT_NUM_IM0_IRL0 + 22,
51        },
52};
53
54static struct ltq_eth_data ltq_eth_data = {
55        .mii_mode = PHY_INTERFACE_MODE_MII,
56};
57
58static void __init easy50712_init(void)
59{
60        ltq_register_gpio_stp();
61        ltq_register_nor(&easy50712_flash_data);
62        ltq_register_pci(&ltq_pci_data);
63        ltq_register_etop(&ltq_eth_data);
64        ltq_register_tapi();
65}
66
67MIPS_MACHINE(LTQ_MACH_EASY50712,
68             "EASY50712",
69             "EASY50712 Eval Board",
70              easy50712_init);
Note: See TracBrowser for help on using the repository browser.