mach-w90p910evb.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * linux/arch/arm/mach-w90x900/mach-w90p910evb.c
  3. *
  4. * Based on mach-s3c2410/mach-smdk2410.c by Jonas Dietsche
  5. *
  6. * Copyright (C) 2008 Nuvoton technology corporation
  7. * All rights reserved.
  8. *
  9. * Wan ZongShun <mcuos.com@gmail.com>
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. */
  17. #include <linux/kernel.h>
  18. #include <linux/types.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/list.h>
  21. #include <linux/timer.h>
  22. #include <linux/init.h>
  23. #include <linux/platform_device.h>
  24. #include <asm/mach/arch.h>
  25. #include <asm/mach/map.h>
  26. #include <asm/mach/irq.h>
  27. #include <asm/mach-types.h>
  28. #include <mach/regs-serial.h>
  29. #include <mach/map.h>
  30. #include "cpu.h"
  31. static struct map_desc w90p910_iodesc[] __initdata = {
  32. };
  33. static struct w90x900_uartcfg w90p910_uartcfgs[] = {
  34. W90X900_UARTCFG(0, 0, 0, 0, 0),
  35. W90X900_UARTCFG(1, 0, 0, 0, 0),
  36. W90X900_UARTCFG(2, 0, 0, 0, 0),
  37. W90X900_UARTCFG(3, 0, 0, 0, 0),
  38. W90X900_UARTCFG(4, 0, 0, 0, 0),
  39. };
  40. /*Here should be your evb resourse,such as LCD*/
  41. static struct platform_device *w90p910evb_dev[] __initdata = {
  42. };
  43. static void __init w90p910evb_map_io(void)
  44. {
  45. w90p910_map_io(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc));
  46. w90p910_init_clocks(0);
  47. w90p910_init_uarts(w90p910_uartcfgs, ARRAY_SIZE(w90p910_uartcfgs));
  48. }
  49. static void __init w90p910evb_init(void)
  50. {
  51. platform_add_devices(w90p910evb_dev, ARRAY_SIZE(w90p910evb_dev));
  52. }
  53. MACHINE_START(W90P910EVB, "W90P910EVB")
  54. /* Maintainer: Wan ZongShun */
  55. .phys_io = W90X900_PA_UART,
  56. .io_pg_offst = (((u32)W90X900_VA_UART) >> 18) & 0xfffc,
  57. .boot_params = 0,
  58. .map_io = w90p910evb_map_io,
  59. .init_irq = w90x900_init_irq,
  60. .init_machine = w90p910evb_init,
  61. .timer = &w90x900_timer,
  62. MACHINE_END