memoryDefinitionAgingAnalysisData.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Board support file for OMAP4430 based PandaBoard.
  3. *
  4. * Copyright (C) 2010 Texas Instruments
  5. *
  6. * Author: David Anders <x0132446@ti.com>
  7. *
  8. * Based on mach-omap2/board-4430sdp.c
  9. *
  10. * Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
  11. *
  12. * Based on mach-omap2/board-3430sdp.c
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License version 2 as
  16. * published by the Free Software Foundation.
  17. */
  18. #include <linux/kernel.h>
  19. #include <linux/init.h>
  20. #include <linux/platform_device.h>
  21. #include <linux/clk.h>
  22. #include <linux/io.h>
  23. #include <linux/leds.h>
  24. #include <linux/gpio.h>
  25. #include <linux/usb/otg.h>
  26. #include <linux/i2c/twl.h>
  27. #include <linux/mfd/twl6040.h>
  28. #include <linux/regulator/machine.h>
  29. #include <linux/regulator/fixed.h>
  30. #include <linux/ti_wilink_st.h>
  31. #include <linux/usb/musb.h>
  32. #include <linux/wl12xx.h>
  33. #include <linux/platform_data/omap-abe-twl6040.h>
  34. #include <asm/hardware/gic.h>
  35. #include <asm/mach-types.h>
  36. #include <asm/mach/arch.h>
  37. #include <asm/mach/map.h>
  38. #include "common.h"
  39. #include "soc.h"
  40. #include "mmc.h"
  41. #include "hsmmc.h"
  42. #include "control.h"
  43. #include "mux.h"
  44. #include "common-board-devices.h"
  45. #include "dss-common.h"
  46. #define GPIO_HUB_POWER 1
  47. #define GPIO_HUB_NRESET 62
  48. #define GPIO_WIFI_PMENA 43
  49. #define GPIO_WIFI_IRQ 53
  50. /* wl127x BT, FM, GPS connectivity chip */
  51. static struct ti_st_plat_data wilink_platform_data = {
  52. .nshutdown_gpio = 46,
  53. .dev_name = "/dev/ttyO1",
  54. .flow_cntrl = 1,
  55. .baud_rate = 3000000,
  56. .chip_enable = NULL,
  57. .suspend = NULL,
  58. .resume = NULL,
  59. };
  60. static struct platform_device wl1271_device = {
  61. .name = "kim",
  62. .id = -1,
  63. .dev = {
  64. .platform_data = &wilink_platform_data,
  65. },
  66. };
  67. static struct gpio_led gpio_leds[] = {
  68. {
  69. .name = "pandaboard::status1",
  70. .default_trigger = "heartbeat",
  71. .gpio = 7,
  72. },
  73. {
  74. .name = "pandaboard::status2",
  75. .default_trigger = "mmc0",
  76. .gpio = 8,
  77. },
  78. };
  79. static struct gpio_led_platform_data gpio_led_info = {
  80. .leds = gpio_leds,
  81. .num_leds = ARRAY_SIZE(gpio_leds),
  82. };
  83. static struct platform_device leds_gpio = {
  84. .name = "leds-gpio",
  85. .id = -1,
  86. .dev = {
  87. .platform_data = &gpio_led_info,
  88. },
  89. };
  90. static struct omap_abe_twl6040_data panda_abe_audio_data = {
  91. /* Audio out */
  92. .has_hs = ABE_TWL6040_LEFT | ABE_TWL6040_RIGHT,
  93. /* HandsFree through expansion connector */
  94. .has_hf = ABE_TWL6040_LEFT | ABE_TWL6040_RIGHT,
  95. /* PandaBoard: FM TX, PandaBoardES: can be connected to audio out */
  96. .has_aux = ABE_TWL6040_LEFT | ABE_TWL6040_RIGHT,
  97. /* PandaBoard: FM RX, PandaBoardES: audio in */
  98. .has_afm = ABE_TWL6040_LEFT | ABE_TWL6040_RIGHT,
  99. /* No jack detection. */
  100. .jack_detection = 0,
  101. /* MCLK input is 38.4MHz */
  102. .mclk_freq = 38400000,
  103. };
  104. static struct platform_device panda_abe_audio = {
  105. .name = "omap-abe-twl6040",
  106. .id = -1,
  107. .dev = {
  108. .platform_data = &panda_abe_audio_data,
  109. },
  110. };
  111. static struct platform_device panda_hdmi_audio_codec = {
  112. .name = "hdmi-audio-codec",
  113. .id = -1,
  114. };
  115. static struct platform_device btwilink_device = {
  116. .name = "btwilink",
  117. .id = -1,
  118. };
  119. static struct platform_device *panda_devices[] __initdata = {
  120. &leds_gpio,
  121. &wl1271_device,
  122. &panda_abe_audio,
  123. &panda_hdmi_audio_codec,
  124. &btwilink_device,