voltageStandardDeviation.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com
  4. *
  5. * Copyright 2008 Openmoko, Inc.
  6. * Copyright 2008 Simtec Electronics
  7. * Ben Dooks <ben@simtec.co.uk>
  8. * http://armlinux.simtec.co.uk/
  9. *
  10. * Common Codes for S3C64XX machines
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License version 2 as
  14. * published by the Free Software Foundation.
  15. */
  16. #include <linux/kernel.h>
  17. #include <linux/init.h>
  18. #include <linux/module.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/ioport.h>
  21. #include <linux/serial_core.h>
  22. #include <linux/platform_device.h>
  23. #include <linux/io.h>
  24. #include <linux/dma-mapping.h>
  25. #include <linux/irq.h>
  26. #include <linux/gpio.h>
  27. #include <asm/mach/arch.h>
  28. #include <asm/mach/map.h>
  29. #include <asm/hardware/vic.h>
  30. #include <asm/system_misc.h>
  31. #include <mach/map.h>
  32. #include <mach/hardware.h>
  33. #include <mach/regs-gpio.h>
  34. #include <plat/cpu.h>
  35. #include <plat/clock.h>
  36. #include <plat/devs.h>
  37. #include <plat/pm.h>
  38. #include <plat/gpio-cfg.h>
  39. #include <plat/irq-uart.h>
  40. #include <plat/irq-vic-timer.h>
  41. #include <plat/regs-irqtype.h>
  42. #include <plat/regs-serial.h>
  43. #include <plat/watchdog-reset.h>
  44. #include "common.h"
  45. /* uart registration process */
  46. static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)
  47. {
  48. s3c24xx_init_uartdevs("s3c6400-uart", s3c64xx_uart_resources, cfg, no);
  49. }
  50. /* table of supported CPUs */
  51. static const char name_s3c6400[] = "S3C6400";
  52. static const char name_s3c6410[] = "S3C6410";
  53. static struct cpu_table cpu_ids[] __initdata = {
  54. {
  55. .idcode = S3C6400_CPU_ID,
  56. .idmask = S3C64XX_CPU_MASK,
  57. .map_io = s3c6400_map_io,
  58. .init_clocks = s3c6400_init_clocks,
  59. .init_uarts = s3c64xx_init_uarts,
  60. .init = s3c6400_init,
  61. .name = name_s3c6400,
  62. }, {