lart.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * linux/arch/arm/mach-sa1100/lart.c
  3. */
  4. #include <linux/init.h>
  5. #include <linux/kernel.h>
  6. #include <linux/tty.h>
  7. #include <asm/hardware.h>
  8. #include <asm/setup.h>
  9. #include <asm/mach-types.h>
  10. #include <asm/mach/arch.h>
  11. #include <asm/mach/map.h>
  12. #include <asm/mach/serial_sa1100.h>
  13. #include "generic.h"
  14. #warning "include/asm/arch-sa1100/ide.h needs fixing for lart"
  15. static struct map_desc lart_io_desc[] __initdata = {
  16. /* virtual physical length type */
  17. { 0xe8000000, 0x00000000, 0x00400000, MT_DEVICE }, /* main flash memory */
  18. { 0xec000000, 0x08000000, 0x00400000, MT_DEVICE } /* main flash, alternative location */
  19. };
  20. static void __init lart_map_io(void)
  21. {
  22. sa1100_map_io();
  23. iotable_init(lart_io_desc, ARRAY_SIZE(lart_io_desc));
  24. sa1100_register_uart(0, 3);
  25. sa1100_register_uart(1, 1);
  26. sa1100_register_uart(2, 2);
  27. GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
  28. GPDR |= GPIO_UART_TXD;
  29. GPDR &= ~GPIO_UART_RXD;
  30. PPAR |= PPAR_UPR;
  31. }
  32. MACHINE_START(LART, "LART")
  33. .phys_ram = 0xc0000000,
  34. .phys_io = 0x80000000,
  35. .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
  36. .boot_params = 0xc0000100,
  37. .map_io = lart_map_io,
  38. .init_irq = sa1100_init_irq,
  39. .timer = &sa1100_timer,
  40. MACHINE_END