arch.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * linux/arch/arm/mach-epxa10db/arch.c
  3. *
  4. * Copyright (C) 2000 Deep Blue Solutions Ltd
  5. * Copyright (C) 2001 Altera Corporation
  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/init.h>
  23. #include <linux/serial_8250.h>
  24. #include <asm/hardware.h>
  25. #include <asm/setup.h>
  26. #include <asm/mach-types.h>
  27. #include <asm/mach/arch.h>
  28. static struct plat_serial8250_port serial_platform_data[] = {
  29. {
  30. .iobase = 0x3f8,
  31. .irq = IRQ_UARTINT0,
  32. #error FIXME
  33. .uartclk = 0,
  34. .regshift = 0,
  35. .iotype = UPIO_PORT,
  36. .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
  37. },
  38. {
  39. .iobase = 0x2f8,
  40. .irq = IRQ_UARTINT1,
  41. #error FIXME
  42. .uartclk = 0,
  43. .regshift = 0,
  44. .iotype = UPIO_PORT,
  45. .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
  46. },
  47. { },
  48. };
  49. static struct platform_device serial_device = {
  50. .name = "serial8250",
  51. .id = PLAT8250_DEV_PLATFORM,
  52. .dev = {
  53. .platform_data = serial_platform_data,
  54. },
  55. };
  56. extern void epxa10db_map_io(void);
  57. extern void epxa10db_init_irq(void);
  58. extern struct sys_timer epxa10db_timer;
  59. MACHINE_START(CAMELOT, "Altera Epxa10db")
  60. /* Maintainer: Altera Corporation */
  61. .phys_ram = 0x00000000,
  62. .phys_io = 0x7fffc000,
  63. .io_pg_offst = ((0xffffc000) >> 18) & 0xfffc,
  64. .map_io = epxa10db_map_io,
  65. .init_irq = epxa10db_init_irq,
  66. .timer = &epxa10db_timer,
  67. MACHINE_END