connectTheSignalSlot.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * arch/arm/mach-at91/at91sam9260.c
  3. *
  4. * Copyright (C) 2006 SAN People
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. */
  12. #include <linux/module.h>
  13. #include <asm/proc-fns.h>
  14. #include <asm/irq.h>
  15. #include <asm/mach/arch.h>
  16. #include <asm/mach/map.h>
  17. #include <asm/system_misc.h>
  18. #include <mach/cpu.h>
  19. #include <mach/at91_dbgu.h>
  20. #include <mach/at91sam9260.h>
  21. #include <mach/at91_pmc.h>
  22. #include "at91_aic.h"
  23. #include "at91_rstc.h"
  24. #include "soc.h"
  25. #include "generic.h"
  26. #include "clock.h"
  27. #include "sam9_smc.h"
  28. /* --------------------------------------------------------------------
  29. * Clocks
  30. * -------------------------------------------------------------------- */
  31. /*
  32. * The peripheral clocks.
  33. */
  34. static struct clk pioA_clk = {
  35. .name = "pioA_clk",
  36. .pmc_mask = 1 << AT91SAM9260_ID_PIOA,
  37. .type = CLK_TYPE_PERIPHERAL,
  38. };
  39. static struct clk pioB_clk = {
  40. .name = "pioB_clk",
  41. .pmc_mask = 1 << AT91SAM9260_ID_PIOB,
  42. .type = CLK_TYPE_PERIPHERAL,
  43. };
  44. static struct clk pioC_clk = {
  45. .name = "pioC_clk",
  46. .pmc_mask = 1 << AT91SAM9260_ID_PIOC,
  47. .type = CLK_TYPE_PERIPHERAL,
  48. };
  49. static struct clk adc_clk = {
  50. .name = "adc_clk",
  51. .pmc_mask = 1 << AT91SAM9260_ID_ADC,
  52. .type = CLK_TYPE_PERIPHERAL,
  53. };
  54. static struct clk adc_op_clk = {
  55. .name = "adc_op_clk",
  56. .type = CLK_TYPE_PERIPHERAL,
  57. .rate_hz = 5000000,
  58. };
  59. static struct clk usart0_clk = {
  60. .name = "usart0_clk",
  61. .pmc_mask = 1 << AT91SAM9260_ID_US0,
  62. .type = CLK_TYPE_PERIPHERAL,
  63. };
  64. static struct clk usart1_clk = {
  65. .name = "usart1_clk",
  66. .pmc_mask = 1 << AT91SAM9260_ID_US1,
  67. .type = CLK_TYPE_PERIPHERAL,
  68. };
  69. static struct clk usart2_clk = {
  70. .name = "usart2_clk",
  71. .pmc_mask = 1 << AT91SAM9260_ID_US2,
  72. .type = CLK_TYPE_PERIPHERAL,
  73. };
  74. static struct clk mmc_clk = {
  75. .name = "mci_clk",
  76. .pmc_mask = 1 << AT91SAM9260_ID_MCI,
  77. .type = CLK_TYPE_PERIPHERAL,
  78. };
  79. static struct clk udc_clk = {
  80. .name = "udc_clk",
  81. .pmc_mask = 1 << AT91SAM9260_ID_UDP,
  82. .type = CLK_TYPE_PERIPHERAL,
  83. };