mach-easy50601.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #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>
  14. #include <lantiq.h>
  15. #include "../machtypes.h"
  16. #include "devices.h"
  17. static struct mtd_partition easy50601_partitions[] = {
  18. {
  19. .name = "uboot",
  20. .offset = 0x0,
  21. .size = 0x10000,
  22. },
  23. {
  24. .name = "uboot_env",
  25. .offset = 0x10000,
  26. .size = 0x10000,
  27. },
  28. {
  29. .name = "linux",
  30. .offset = 0x20000,
  31. .size = 0xE0000,
  32. },
  33. {
  34. .name = "rootfs",
  35. .offset = 0x100000,
  36. .size = 0x300000,
  37. },
  38. };
  39. static struct physmap_flash_data easy50601_flash_data = {
  40. .nr_parts = ARRAY_SIZE(easy50601_partitions),
  41. .parts = easy50601_partitions,
  42. };
  43. static void __init easy50601_init(void)
  44. {
  45. ltq_register_nor(&easy50601_flash_data);
  46. }
  47. MIPS_MACHINE(LTQ_MACH_EASY50601,
  48. "EASY50601",
  49. "EASY50601 Eval Board",
  50. easy50601_init);