edb9312.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * arch/arm/mach-ep93xx/edb9312.c
  3. * Cirrus Logic EDB9312 support.
  4. *
  5. * Copyright (C) 2006 Infosys Technologies Limited
  6. * Toufeeq Hussain <toufeeq_hussain@infosys.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or (at
  11. * your option) any later version.
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/init.h>
  15. #include <linux/mm.h>
  16. #include <linux/sched.h>
  17. #include <linux/interrupt.h>
  18. #include <linux/ioport.h>
  19. #include <linux/mtd/physmap.h>
  20. #include <linux/platform_device.h>
  21. #include <linux/io.h>
  22. #include <linux/i2c.h>
  23. #include <mach/hardware.h>
  24. #include <asm/mach-types.h>
  25. #include <asm/mach/arch.h>
  26. static struct physmap_flash_data edb9312_flash_data = {
  27. .width = 4,
  28. };
  29. static struct resource edb9312_flash_resource = {
  30. .start = EP93XX_CS6_PHYS_BASE,
  31. .end = EP93XX_CS6_PHYS_BASE + SZ_32M - 1,
  32. .flags = IORESOURCE_MEM,
  33. };
  34. static struct platform_device edb9312_flash = {
  35. .name = "physmap-flash",
  36. .id = 0,
  37. .dev = {
  38. .platform_data = &edb9312_flash_data,
  39. },
  40. .num_resources = 1,
  41. .resource = &edb9312_flash_resource,
  42. };
  43. static struct ep93xx_eth_data edb9312_eth_data = {
  44. .phy_id = 1,
  45. };
  46. static void __init edb9312_init_machine(void)
  47. {
  48. ep93xx_init_devices();
  49. platform_device_register(&edb9312_flash);
  50. ep93xx_register_eth(&edb9312_eth_data, 1);
  51. }
  52. MACHINE_START(EDB9312, "Cirrus Logic EDB9312 Evaluation Board")
  53. /* Maintainer: Toufeeq Hussain <toufeeq_hussain@infosys.com> */
  54. .phys_io = EP93XX_APB_PHYS_BASE,
  55. .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc,
  56. .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100,
  57. .map_io = ep93xx_map_io,
  58. .init_irq = ep93xx_init_irq,
  59. .timer = &ep93xx_timer,
  60. .init_machine = edb9312_init_machine,
  61. MACHINE_END