cpu.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * arch/arm/mach-w90x900/cpu.h
  3. *
  4. * Based on linux/include/asm-arm/plat-s3c24xx/cpu.h by Ben Dooks
  5. *
  6. * Copyright (c) 2008 Nuvoton technology corporation
  7. * All rights reserved.
  8. *
  9. * Header file for NUC900 CPU support
  10. *
  11. * Wan ZongShun <mcuos.com@gmail.com>
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License version 2 as
  15. * published by the Free Software Foundation.
  16. *
  17. */
  18. #define IODESC_ENT(y) \
  19. { \
  20. .virtual = (unsigned long)W90X900_VA_##y, \
  21. .pfn = __phys_to_pfn(W90X900_PA_##y), \
  22. .length = W90X900_SZ_##y, \
  23. .type = MT_DEVICE, \
  24. }
  25. #define NUC900_8250PORT(name) \
  26. { \
  27. .membase = name##_BA, \
  28. .mapbase = name##_PA, \
  29. .irq = IRQ_##name, \
  30. .uartclk = 11313600, \
  31. .regshift = 2, \
  32. .iotype = UPIO_MEM, \
  33. .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, \
  34. }
  35. /*Cpu identifier register*/
  36. #define NUC900PDID W90X900_VA_GCR
  37. #define NUC910_CPUID 0x02900910
  38. #define NUC920_CPUID 0x02900920
  39. #define NUC950_CPUID 0x02900950
  40. #define NUC960_CPUID 0x02900960
  41. /* extern file from cpu.c */
  42. extern void nuc900_clock_source(struct device *dev, unsigned char *src);
  43. extern void nuc900_init_clocks(void);
  44. extern void nuc900_map_io(struct map_desc *mach_desc, int mach_size);
  45. extern void nuc900_board_init(struct platform_device **device, int size);
  46. /* for either public between 910 and 920, or between 920 and 950 */
  47. extern struct platform_device nuc900_serial_device;
  48. extern struct platform_device nuc900_device_fmi;
  49. extern struct platform_device nuc900_device_kpi;
  50. extern struct platform_device nuc900_device_rtc;
  51. extern struct platform_device nuc900_device_ts;
  52. extern struct platform_device nuc900_device_lcd;