dev.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * linux/arch/arm/mach-nuc93x/dev.c
  3. *
  4. * Copyright (C) 2009 Nuvoton corporation.
  5. *
  6. * Wan ZongShun <mcuos.com@gmail.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation;version 2 of the License.
  11. *
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/types.h>
  15. #include <linux/interrupt.h>
  16. #include <linux/list.h>
  17. #include <linux/timer.h>
  18. #include <linux/init.h>
  19. #include <linux/platform_device.h>
  20. #include <asm/mach/arch.h>
  21. #include <asm/mach/map.h>
  22. #include <asm/mach/irq.h>
  23. #include <asm/mach-types.h>
  24. #include "cpu.h"
  25. /*Here should be your evb resourse,such as LCD*/
  26. static struct platform_device *nuc93x_public_dev[] __initdata = {
  27. &nuc93x_serial_device,
  28. };
  29. /* Provide adding specific CPU platform devices API */
  30. void __init nuc93x_board_init(struct platform_device **device, int size)
  31. {
  32. platform_add_devices(device, size);
  33. platform_add_devices(nuc93x_public_dev, ARRAY_SIZE(nuc93x_public_dev));
  34. }