source: src/linux/universal/linux-3.2/arch/mips/lantiq/xway/mach-easy50601.c

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

arch code

File size: 1.2 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
16#include <lantiq.h>
17
18#include "../machtypes.h"
19#include "devices.h"
20
21static struct mtd_partition easy50601_partitions[] = {
22        {
23                .name   = "uboot",
24                .offset = 0x0,
25                .size   = 0x10000,
26        },
27        {
28                .name   = "uboot_env",
29                .offset = 0x10000,
30                .size   = 0x10000,
31        },
32        {
33                .name   = "linux",
34                .offset = 0x20000,
35                .size   = 0x3d0000,
36        },
37};
38
39static struct physmap_flash_data easy50601_flash_data = {
40        .nr_parts       = ARRAY_SIZE(easy50601_partitions),
41        .parts          = easy50601_partitions,
42};
43
44static struct ltq_eth_data ltq_eth_data = {
45        .mii_mode = -1, /* use EPHY */
46};
47
48static void __init easy50601_init(void)
49{
50        ltq_register_nor(&easy50601_flash_data);
51        ltq_register_etop(&ltq_eth_data);
52}
53
54MIPS_MACHINE(LTQ_MACH_EASY50601,
55                        "EASY50601",
56                        "EASY50601 Eval Board",
57                        easy50601_init);
Note: See TracBrowser for help on using the repository browser.