definitionOfSprayWaveMemory.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (C) 2010 Christian Glindkamp <christian.glindkamp@taskit.de>
  3. * taskit GmbH
  4. * 2010 Igor Plyatov <plyatov@gmail.com>
  5. * GeoSIG Ltd
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #include <linux/platform_device.h>
  22. #include <linux/gpio.h>
  23. #include <linux/w1-gpio.h>
  24. #include <linux/i2c.h>
  25. #include <linux/i2c/pcf857x.h>
  26. #include <linux/gpio_keys.h>
  27. #include <linux/input.h>
  28. #include <asm/mach-types.h>
  29. #include <asm/mach/arch.h>
  30. #include <mach/at91sam9_smc.h>
  31. #include "at91_aic.h"
  32. #include "board.h"
  33. #include "sam9_smc.h"
  34. #include "generic.h"
  35. #include "gsia18s.h"
  36. #include "stamp9g20.h"
  37. static void __init gsia18s_init_early(void)
  38. {
  39. stamp9g20_init_early();
  40. }
  41. /*
  42. * Two USB Host ports
  43. */
  44. static struct at91_usbh_data __initdata usbh_data = {
  45. .ports = 2,
  46. .vbus_pin = {-EINVAL, -EINVAL},
  47. .overcurrent_pin= {-EINVAL, -EINVAL},
  48. };
  49. /*
  50. * USB Device port
  51. */
  52. static struct at91_udc_data __initdata udc_data = {
  53. .vbus_pin = AT91_PIN_PA22,
  54. .pullup_pin = -EINVAL, /* pull-up driven by UDC */
  55. };
  56. /*
  57. * MACB Ethernet device
  58. */