Advertisement
Guest User

Untitled

a guest
Jul 12th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.67 KB | None | 0 0
  1. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
  2. index 641b3c9..c1710ab 100644
  3. --- a/arch/arm/boot/dts/Makefile
  4. +++ b/arch/arm/boot/dts/Makefile
  5. @@ -210,7 +210,8 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
  6.     sun4i-a10-mini-xplus.dtb \
  7.     sun4i-a10-hackberry.dtb \
  8.     sun5i-a10s-olinuxino-micro.dtb \
  9. -   sun5i-a13-olinuxino.dtb
  10. +   sun5i-a13-olinuxino.dtb \
  11. +   sun7i-a20-cubieboard2.dtb
  12.  dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
  13.     tegra20-iris-512.dtb \
  14.     tegra20-medcom-wide.dtb \
  15. diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  16. new file mode 100644
  17. index 0000000..28e5b6c
  18. --- /dev/null
  19. +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
  20. @@ -0,0 +1,32 @@
  21. +/*
  22. + * The code contained herein is licensed under the GNU General Public
  23. + * License. You may obtain a copy of the GNU General Public License
  24. + * Version 2 or later at the following locations:
  25. + *
  26. + * http://www.opensource.org/licenses/gpl-license.html
  27. + * http://www.gnu.org/copyleft/gpl.html
  28. + */
  29. +
  30. +/dts-v1/;
  31. +/include/ "sun7i-a20.dtsi"
  32. +
  33. +/ {
  34. +   model = "Cubietech Cubieboard2";
  35. +   compatible = "cubietech,a20-cubieboard2", "allwinner,sun7i-a20";
  36. +
  37. +   aliases {
  38. +       serial0 = &uart0;
  39. +   };
  40. +
  41. +   chosen {
  42. +       #bootargs = "earlyprintk console=ttyS0,115200 rdinit=/sbin/init panic=10";
  43. +       bootargs = "dtuart=serial0 sync_console earlyprintk console=ttyS0,115200 rdinit=/sbin/init panic=10";
  44. +       xen,dom0-bootargs = "earlyprintk console=ttyS0,115200";
  45. +   };
  46. +
  47. +   soc@01c20000 {
  48. +       uart0: serial@01c28000 {
  49. +           status = "okay";
  50. +       };
  51. +   };
  52. +};
  53. diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
  54. new file mode 100644
  55. index 0000000..d6c90e7
  56. --- /dev/null
  57. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  58. @@ -0,0 +1,68 @@
  59. +/*
  60. + * The code contained herein is licensed under the GNU General Public
  61. + * License. You may obtain a copy of the GNU General Public License
  62. + * Version 2 or later at the following locations:
  63. + *
  64. + * http://www.opensource.org/licenses/gpl-license.html
  65. + * http://www.gnu.org/copyleft/gpl.html
  66. + */
  67. +
  68. +/include/ "skeleton.dtsi"
  69. +
  70. +/ {
  71. +   interrupt-parent = <&gic>;
  72. +
  73. +   cpus {
  74. +       #address-cells = <1>;
  75. +       #size-cells = <0>;
  76. +       cpu@0 {
  77. +           device_type = "cpu";
  78. +           compatible = "arm,cortex-a7";
  79. +           reg = <0x0>;
  80. +       };
  81. +   };
  82. +
  83. +   memory {
  84. +       reg = <0x40000000 0x80000000>;
  85. +   };
  86. +
  87. +   soc@01c20000 {
  88. +       compatible = "simple-bus";
  89. +       #address-cells = <1>;
  90. +       #size-cells = <1>;
  91. +       reg = <0x01c20000 0x300000>;
  92. +       ranges;
  93. +
  94. +       gic: interrupt-controller@2c001000 {
  95. +           compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
  96. +           #interrupt-cells = <3>;
  97. +           #address-cells = <0>;
  98. +           interrupt-controller;
  99. +           reg = <0x01c81000 0x1000>,
  100. +                 <0x01c82000 0x1000>,
  101. +                 <0x01c83000 0x2000>,
  102. +                 <0x01c85000 0x2000>;
  103. +           /* This is pure guest work... */
  104. +           interrupts = <1 9 0xf08>;
  105. +       };
  106. +
  107. +       timer {
  108. +           compatible = "arm,armv7-timer";
  109. +           /* These interrupts are pure guest work... */
  110. +           interrupts = <1 13 0xf08>,
  111. +                    <1 14 0xf08>,
  112. +                    <1 11 0xf08>,
  113. +                    <1 10 0xf08>;
  114. +       };
  115. +
  116. +       uart0: serial@01c28000 {
  117. +           compatible = "snps,dw-apb-uart";
  118. +           reg = <0x01c28000 0x400>;
  119. +           interrupts = <1 1 0xf08>;
  120. +           reg-shift = <2>;
  121. +           reg-io-width = <4>;
  122. +           status = "disabled";
  123. +       };
  124. +
  125. +   };
  126. +};
  127. diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
  128. index 84485a1..6085033 100644
  129. --- a/arch/arm/mach-sunxi/sunxi.c
  130. +++ b/arch/arm/mach-sunxi/sunxi.c
  131. @@ -95,6 +95,7 @@ static const char * const sunxi_board_dt_compat[] = {
  132.     "allwinner,sun4i-a10",
  133.     "allwinner,sun5i-a10s",
  134.     "allwinner,sun5i-a13",
  135. +   "allwinner,sun7i-a20",
  136.     NULL,
  137.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement