main.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * linux/arch/arm/mach-at91/board-sam9261ek.c
  3. *
  4. * Copyright (C) 2005 SAN People
  5. * Copyright (C) 2006 Atmel
  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/types.h>
  22. #include <linux/gpio.h>
  23. #include <linux/init.h>
  24. #include <linux/mm.h>
  25. #include <linux/module.h>
  26. #include <linux/platform_device.h>
  27. #include <linux/spi/spi.h>
  28. #include <linux/spi/ads7846.h>
  29. #include <linux/spi/at73c213.h>
  30. #include <linux/clk.h>
  31. #include <linux/dm9000.h>
  32. #include <linux/fb.h>
  33. #include <linux/gpio_keys.h>
  34. #include <linux/input.h>
  35. #include <video/atmel_lcdc.h>
  36. #include <asm/setup.h>
  37. #include <asm/mach-types.h>
  38. #include <asm/irq.h>
  39. #include <asm/mach/arch.h>
  40. #include <asm/mach/map.h>
  41. #include <asm/mach/irq.h>
  42. #include <mach/hardware.h>
  43. #include <mach/at91sam9_smc.h>
  44. #include <mach/system_rev.h>
  45. #include "at91_aic.h"
  46. #include "at91_shdwc.h"
  47. #include "board.h"
  48. #include "sam9_smc.h"
  49. #include "generic.h"
  50. static void __init ek_init_early(void)
  51. {
  52. /* Initialize processor: 18.432 MHz crystal */
  53. at91_initialize(18432000);
  54. }
  55. /*
  56. * DM9000 ethernet device
  57. */
  58. #if defined(CONFIG_DM9000)
  59. static struct resource dm9000_resource[] = {
  60. [0] = {
  61. .start = AT91_CHIPSELECT_2,
  62. .end = AT91_CHIPSELECT_2 + 3,
  63. .flags = IORESOURCE_MEM
  64. },
  65. [1] = {
  66. .start = AT91_CHIPSELECT_2 + 0x44,
  67. .end = AT91_CHIPSELECT_2 + 0xFF,
  68. .flags = IORESOURCE_MEM
  69. },