espresso.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * arch/arm/mach-ixp23xx/espresso.c
  3. *
  4. * Double Espresso-specific routines
  5. *
  6. * Author: Lennert Buytenhek <buytenh@wantstofly.org>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. #include <linux/config.h>
  13. #include <linux/kernel.h>
  14. #include <linux/init.h>
  15. #include <linux/spinlock.h>
  16. #include <linux/sched.h>
  17. #include <linux/interrupt.h>
  18. #include <linux/serial.h>
  19. #include <linux/tty.h>
  20. #include <linux/bitops.h>
  21. #include <linux/ioport.h>
  22. #include <linux/serial.h>
  23. #include <linux/serial_8250.h>
  24. #include <linux/serial_core.h>
  25. #include <linux/device.h>
  26. #include <linux/mm.h>
  27. #include <linux/pci.h>
  28. #include <linux/mtd/physmap.h>
  29. #include <asm/types.h>
  30. #include <asm/setup.h>
  31. #include <asm/memory.h>
  32. #include <asm/hardware.h>
  33. #include <asm/mach-types.h>
  34. #include <asm/irq.h>
  35. #include <asm/system.h>
  36. #include <asm/tlbflush.h>
  37. #include <asm/pgtable.h>
  38. #include <asm/mach/map.h>
  39. #include <asm/mach/irq.h>
  40. #include <asm/mach/arch.h>
  41. #include <asm/mach/irq.h>
  42. #include <asm/mach/pci.h>
  43. static void __init espresso_init(void)
  44. {
  45. physmap_configure(0x90000000, 0x02000000, 2, NULL);
  46. /*
  47. * Mark flash as writeable.
  48. */
  49. IXP23XX_EXP_CS0[0] |= IXP23XX_FLASH_WRITABLE;
  50. IXP23XX_EXP_CS0[1] |= IXP23XX_FLASH_WRITABLE;
  51. ixp23xx_sys_init();
  52. }
  53. MACHINE_START(ESPRESSO, "IP Fabrics Double Espresso")
  54. /* Maintainer: Lennert Buytenhek */
  55. .phys_io = IXP23XX_PERIPHERAL_PHYS,
  56. .io_pg_offst = ((IXP23XX_PERIPHERAL_VIRT >> 18)) & 0xfffc,
  57. .map_io = ixp23xx_map_io,
  58. .init_irq = ixp23xx_init_irq,
  59. .timer = &ixp23xx_timer,
  60. .boot_params = 0x00000100,
  61. .init_machine = espresso_init,
  62. MACHINE_END