Path: blob/master/arch/mips/lantiq/xway/mach-easy50601.c
10818 views
/*1* This program is free software; you can redistribute it and/or modify it2* under the terms of the GNU General Public License version 2 as published3* by the Free Software Foundation.4*5* Copyright (C) 2010 John Crispin <[email protected]>6*/78#include <linux/init.h>9#include <linux/platform_device.h>10#include <linux/mtd/mtd.h>11#include <linux/mtd/partitions.h>12#include <linux/mtd/physmap.h>13#include <linux/input.h>1415#include <lantiq.h>1617#include "../machtypes.h"18#include "devices.h"1920static struct mtd_partition easy50601_partitions[] = {21{22.name = "uboot",23.offset = 0x0,24.size = 0x10000,25},26{27.name = "uboot_env",28.offset = 0x10000,29.size = 0x10000,30},31{32.name = "linux",33.offset = 0x20000,34.size = 0xE0000,35},36{37.name = "rootfs",38.offset = 0x100000,39.size = 0x300000,40},41};4243static struct physmap_flash_data easy50601_flash_data = {44.nr_parts = ARRAY_SIZE(easy50601_partitions),45.parts = easy50601_partitions,46};4748static void __init easy50601_init(void)49{50ltq_register_nor(&easy50601_flash_data);51}5253MIPS_MACHINE(LTQ_MACH_EASY50601,54"EASY50601",55"EASY50601 Eval Board",56easy50601_init);575859