influenceAnalysisOfCableAging.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * board-devkit8000.c - TimLL Devkit8000
  3. *
  4. * Copyright (C) 2009 Kim Botherway
  5. * Copyright (C) 2010 Thomas Weber
  6. *
  7. * Modified from mach-omap2/board-omap3beagle.c
  8. *
  9. * Initial code: Syed Mohammed Khasim
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #include <linux/kernel.h>
  16. #include <linux/init.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/delay.h>
  19. #include <linux/err.h>
  20. #include <linux/clk.h>
  21. #include <linux/io.h>
  22. #include <linux/leds.h>
  23. #include <linux/gpio.h>
  24. #include <linux/input.h>
  25. #include <linux/gpio_keys.h>
  26. #include <linux/mtd/mtd.h>
  27. #include <linux/mtd/partitions.h>
  28. #include <linux/mtd/nand.h>
  29. #include <linux/mmc/host.h>
  30. #include <linux/regulator/machine.h>
  31. #include <linux/i2c/twl.h>
  32. #include "id.h"
  33. #include <asm/mach-types.h>
  34. #include <asm/mach/arch.h>
  35. #include <asm/mach/map.h>
  36. #include <asm/mach/flash.h>
  37. #include "common.h"
  38. #include "gpmc.h"
  39. #include <linux/platform_data/mtd-nand-omap2.h>
  40. #include <video/omapdss.h>
  41. #include <video/omap-panel-generic-dpi.h>
  42. #include <video/omap-panel-tfp410.h>
  43. #include <linux/platform_data/spi-omap2-mcspi.h>
  44. #include <linux/input/matrix_keypad.h>
  45. #include <linux/spi/spi.h>
  46. #include <linux/dm9000.h>
  47. #include <linux/interrupt.h>
  48. #include "sdram-micron-mt46h32m32lf-6.h"
  49. #include "mux.h"
  50. #include "hsmmc.h"
  51. #include "board-flash.h"
  52. #include "common-board-devices.h"
  53. #define NAND_CS 0
  54. #define OMAP_DM9000_GPIO_IRQ 25
  55. #define OMAP3_DEVKIT_TS_GPIO 27
  56. static struct mtd_partition devkit8000_nand_partitions[] = {
  57. /* All the partition sizes are listed in terms of NAND block size */
  58. {
  59. .name = "X-Loader",
  60. .offset = 0,
  61. .size = 4 * NAND_BLOCK_SIZE,
  62. .mask_flags = MTD_WRITEABLE, /* force read-only */
  63. },
  64. {
  65. .name = "U-Boot",
  66. .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
  67. .size = 15 * NAND_BLOCK_SIZE,
  68. .mask_flags = MTD_WRITEABLE, /* force read-only */
  69. },
  70. {
  71. .name = "U-Boot Env",
  72. .offset = MTDPART_OFS_APPEND, /* Offset = 0x260000 */
  73. .size = 1 * NAND_BLOCK_SIZE,
  74. },
  75. {
  76. .name = "Kernel",
  77. .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */
  78. .size = 32 * NAND_BLOCK_SIZE,
  79. },
  80. {
  81. .name = "File System",
  82. .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */