rtuDataOperation.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * linux/arch/arm/mach-omap2/board-3430sdp.c
  3. *
  4. * Copyright (C) 2007 Texas Instruments
  5. *
  6. * Modified from mach-omap2/board-generic.c
  7. *
  8. * Initial code: Syed Mohammed Khasim
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/delay.h>
  18. #include <linux/input.h>
  19. #include <linux/input/matrix_keypad.h>
  20. #include <linux/spi/spi.h>
  21. #include <linux/i2c/twl.h>
  22. #include <linux/regulator/machine.h>
  23. #include <linux/io.h>
  24. #include <linux/gpio.h>
  25. #include <linux/mmc/host.h>
  26. #include <linux/platform_data/spi-omap2-mcspi.h>
  27. #include <asm/mach-types.h>
  28. #include <asm/mach/arch.h>
  29. #include <asm/mach/map.h>
  30. #include "common.h"
  31. #include <linux/omap-dma.h>
  32. #include <video/omapdss.h>
  33. #include <video/omap-panel-tfp410.h>
  34. #include "gpmc.h"
  35. #include "gpmc-smc91x.h"
  36. #include "soc.h"
  37. #include "board-flash.h"
  38. #include "mux.h"
  39. #include "sdram-qimonda-hyb18m512160af-6.h"
  40. #include "hsmmc.h"
  41. #include "pm.h"
  42. #include "control.h"
  43. #include "common-board-devices.h"
  44. #define CONFIG_DISABLE_HFCLK 1
  45. #define SDP3430_TS_GPIO_IRQ_SDPV1 3
  46. #define SDP3430_TS_GPIO_IRQ_SDPV2 2
  47. #define ENABLE_VAUX3_DEDICATED 0x03
  48. #define ENABLE_VAUX3_DEV_GRP 0x20
  49. #define TWL4030_MSECURE_GPIO 22
  50. static uint32_t board_keymap[] = {
  51. KEY(0, 0, KEY_LEFT),
  52. KEY(0, 1, KEY_RIGHT),
  53. KEY(0, 2, KEY_A),
  54. KEY(0, 3, KEY_B),
  55. KEY(0, 4, KEY_C),
  56. KEY(1, 0, KEY_DOWN),
  57. KEY(1, 1, KEY_UP),
  58. KEY(1, 2, KEY_E),