| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. |
| #include <linux/platform_device.h> |
| #include <linux/mtd/physmap.h> |
| static struct mtd_partition sead3_mtd_partitions[] = { |
| .mask_flags = MTD_WRITEABLE |
| static struct physmap_flash_data sead3_flash_data = { |
| .nr_parts = ARRAY_SIZE(sead3_mtd_partitions), |
| .parts = sead3_mtd_partitions |
| static struct resource sead3_flash_resource = { |
| static struct platform_device sead3_flash = { |
| .platform_data = &sead3_flash_data, |
| .resource = &sead3_flash_resource, |
| static int __init sead3_mtd_init(void) |
| platform_device_register(&sead3_flash); |
| module_init(sead3_mtd_init) |