Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'at91-dt3' of git://github.com/at91linux/linux-at91 into next/dt

3.16 third DT series:
- move of both at91sam9n12 and at91sam9x5 to CCF

* tag 'at91-dt3' of git://github.com/at91linux/linux-at91:
ARM: at91: move sam9n12 SoC to the CCF
ARM: at91/dt: define sam9n12ek crystal frequencies
ARM: at91/dt: define sam9n12 clocks
ARM: at91: prepare common clk transition for sam9n12 SoC
ARM: at91: move sam9x5 SoCs to the CCF
ARM: at91/dt: define sam9x5ek's crystal frequencies
ARM: at91/dt: define sam9x5 clocks
ARM: at91: prepare common clk transition for sam9x5 SoCs
dt-bindings: clock: Move at91.h to dt-bindigs/clock
ARM: at91: fix spi cs on sama5d3 Xplained board

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+851 -16
+1 -1
Documentation/devicetree/bindings/clock/at91-clock.txt
··· 139 139 - interrupt-controller : tell that the PMC is an interrupt controller. 140 140 - #interrupt-cells : must be set to 1. The first cell encodes the interrupt id, 141 141 and reflect the bit position in the PMC_ER/DR/SR registers. 142 - You can use the dt macros defined in dt-bindings/clk/at91.h. 142 + You can use the dt macros defined in dt-bindings/clock/at91.h. 143 143 0 (AT91_PMC_MOSCS) -> main oscillator ready 144 144 1 (AT91_PMC_LOCKA) -> PLL A ready 145 145 2 (AT91_PMC_LOCKB) -> PLL B ready
+2 -2
arch/arm/boot/dts/at91-sama5d3_xplained.dts
··· 42 42 }; 43 43 44 44 spi0: spi@f0004000 { 45 - cs-gpios = <&pioD 13 0>; 45 + cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; 46 46 status = "okay"; 47 47 }; 48 48 ··· 136 136 }; 137 137 138 138 spi1: spi@f8008000 { 139 - cs-gpios = <&pioC 25 0>, <0>, <0>, <&pioD 16 0>; 139 + cs-gpios = <&pioC 25 0>; 140 140 status = "okay"; 141 141 }; 142 142
+1 -1
arch/arm/boot/dts/at91sam9261.dtsi
··· 10 10 #include <dt-bindings/pinctrl/at91.h> 11 11 #include <dt-bindings/interrupt-controller/irq.h> 12 12 #include <dt-bindings/gpio/gpio.h> 13 - #include <dt-bindings/clk/at91.h> 13 + #include <dt-bindings/clock/at91.h> 14 14 15 15 / { 16 16 model = "Atmel AT91SAM9261 family SoC";
+346 -2
arch/arm/boot/dts/at91sam9n12.dtsi
··· 12 12 #include <dt-bindings/pinctrl/at91.h> 13 13 #include <dt-bindings/interrupt-controller/irq.h> 14 14 #include <dt-bindings/gpio/gpio.h> 15 + #include <dt-bindings/clock/at91.h> 15 16 16 17 / { 17 18 model = "Atmel AT91SAM9N12 SoC"; ··· 50 49 reg = <0x20000000 0x10000000>; 51 50 }; 52 51 52 + slow_xtal: slow_xtal { 53 + compatible = "fixed-clock"; 54 + #clock-cells = <0>; 55 + clock-frequency = <0>; 56 + }; 57 + 58 + main_xtal: main_xtal { 59 + compatible = "fixed-clock"; 60 + #clock-cells = <0>; 61 + clock-frequency = <0>; 62 + }; 63 + 53 64 ahb { 54 65 compatible = "simple-bus"; 55 66 #address-cells = <1>; ··· 88 75 }; 89 76 90 77 pmc: pmc@fffffc00 { 91 - compatible = "atmel,at91rm9200-pmc"; 92 - reg = <0xfffffc00 0x100>; 78 + compatible = "atmel,at91sam9n12-pmc"; 79 + reg = <0xfffffc00 0x200>; 80 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 81 + interrupt-controller; 82 + #address-cells = <1>; 83 + #size-cells = <0>; 84 + #interrupt-cells = <1>; 85 + 86 + main_rc_osc: main_rc_osc { 87 + compatible = "atmel,at91sam9x5-clk-main-rc-osc"; 88 + #clock-cells = <0>; 89 + interrupts-extended = <&pmc AT91_PMC_MOSCRCS>; 90 + clock-frequency = <12000000>; 91 + clock-accuracy = <50000000>; 92 + }; 93 + 94 + main_osc: main_osc { 95 + compatible = "atmel,at91rm9200-clk-main-osc"; 96 + #clock-cells = <0>; 97 + interrupts-extended = <&pmc AT91_PMC_MOSCS>; 98 + clocks = <&main_xtal>; 99 + }; 100 + 101 + main: mainck { 102 + compatible = "atmel,at91sam9x5-clk-main"; 103 + #clock-cells = <0>; 104 + interrupts-extended = <&pmc AT91_PMC_MOSCSELS>; 105 + clocks = <&main_rc_osc>, <&main_osc>; 106 + }; 107 + 108 + plla: pllack { 109 + compatible = "atmel,at91rm9200-clk-pll"; 110 + #clock-cells = <0>; 111 + interrupts-extended = <&pmc AT91_PMC_LOCKA>; 112 + clocks = <&main>; 113 + reg = <0>; 114 + atmel,clk-input-range = <2000000 32000000>; 115 + #atmel,pll-clk-output-range-cells = <4>; 116 + atmel,pll-clk-output-ranges = <745000000 800000000 0 0>, 117 + <695000000 750000000 1 0>, 118 + <645000000 700000000 2 0>, 119 + <595000000 650000000 3 0>, 120 + <545000000 600000000 0 1>, 121 + <495000000 555000000 1 1>, 122 + <445000000 500000000 1 2>, 123 + <400000000 450000000 1 3>; 124 + }; 125 + 126 + plladiv: plladivck { 127 + compatible = "atmel,at91sam9x5-clk-plldiv"; 128 + #clock-cells = <0>; 129 + clocks = <&plla>; 130 + }; 131 + 132 + pllb: pllbck { 133 + compatible = "atmel,at91rm9200-clk-pll"; 134 + #clock-cells = <0>; 135 + interrupts-extended = <&pmc AT91_PMC_LOCKB>; 136 + clocks = <&main>; 137 + reg = <1>; 138 + atmel,clk-input-range = <2000000 32000000>; 139 + #atmel,pll-clk-output-range-cells = <3>; 140 + atmel,pll-clk-output-ranges = <30000000 100000000 0>; 141 + }; 142 + 143 + mck: masterck { 144 + compatible = "atmel,at91sam9x5-clk-master"; 145 + #clock-cells = <0>; 146 + interrupts-extended = <&pmc AT91_PMC_MCKRDY>; 147 + clocks = <&clk32k>, <&main>, <&plladiv>, <&pllb>; 148 + atmel,clk-output-range = <0 133333333>; 149 + atmel,clk-divisors = <1 2 4 3>; 150 + atmel,master-clk-have-div3-pres; 151 + }; 152 + 153 + usb: usbck { 154 + compatible = "atmel,at91sam9n12-clk-usb"; 155 + #clock-cells = <0>; 156 + clocks = <&pllb>; 157 + }; 158 + 159 + prog: progck { 160 + compatible = "atmel,at91sam9x5-clk-programmable"; 161 + #address-cells = <1>; 162 + #size-cells = <0>; 163 + interrupt-parent = <&pmc>; 164 + clocks = <&clk32k>, <&main>, <&plladiv>, <&pllb>, <&mck>; 165 + 166 + prog0: prog0 { 167 + #clock-cells = <0>; 168 + reg = <0>; 169 + interrupts = <AT91_PMC_PCKRDY(0)>; 170 + }; 171 + 172 + prog1: prog1 { 173 + #clock-cells = <0>; 174 + reg = <1>; 175 + interrupts = <AT91_PMC_PCKRDY(1)>; 176 + }; 177 + }; 178 + 179 + systemck { 180 + compatible = "atmel,at91rm9200-clk-system"; 181 + #address-cells = <1>; 182 + #size-cells = <0>; 183 + 184 + ddrck: ddrck { 185 + #clock-cells = <0>; 186 + reg = <2>; 187 + clocks = <&mck>; 188 + }; 189 + 190 + lcdck: lcdck { 191 + #clock-cells = <0>; 192 + reg = <3>; 193 + clocks = <&mck>; 194 + }; 195 + 196 + uhpck: uhpck { 197 + #clock-cells = <0>; 198 + reg = <6>; 199 + clocks = <&usb>; 200 + }; 201 + 202 + udpck: udpck { 203 + #clock-cells = <0>; 204 + reg = <7>; 205 + clocks = <&usb>; 206 + }; 207 + 208 + pck0: pck0 { 209 + #clock-cells = <0>; 210 + reg = <8>; 211 + clocks = <&prog0>; 212 + }; 213 + 214 + pck1: pck1 { 215 + #clock-cells = <0>; 216 + reg = <9>; 217 + clocks = <&prog1>; 218 + }; 219 + }; 220 + 221 + periphck { 222 + compatible = "atmel,at91sam9x5-clk-peripheral"; 223 + #address-cells = <1>; 224 + #size-cells = <0>; 225 + clocks = <&mck>; 226 + 227 + pioAB_clk: pioAB_clk { 228 + #clock-cells = <0>; 229 + reg = <2>; 230 + }; 231 + 232 + pioCD_clk: pioCD_clk { 233 + #clock-cells = <0>; 234 + reg = <3>; 235 + }; 236 + 237 + fuse_clk: fuse_clk { 238 + #clock-cells = <0>; 239 + reg = <4>; 240 + }; 241 + 242 + usart0_clk: usart0_clk { 243 + #clock-cells = <0>; 244 + reg = <5>; 245 + }; 246 + 247 + usart1_clk: usart1_clk { 248 + #clock-cells = <0>; 249 + reg = <6>; 250 + }; 251 + 252 + usart2_clk: usart2_clk { 253 + #clock-cells = <0>; 254 + reg = <7>; 255 + }; 256 + 257 + usart3_clk: usart3_clk { 258 + #clock-cells = <0>; 259 + reg = <8>; 260 + }; 261 + 262 + twi0_clk: twi0_clk { 263 + reg = <9>; 264 + #clock-cells = <0>; 265 + }; 266 + 267 + twi1_clk: twi1_clk { 268 + #clock-cells = <0>; 269 + reg = <10>; 270 + }; 271 + 272 + mci0_clk: mci0_clk { 273 + #clock-cells = <0>; 274 + reg = <12>; 275 + }; 276 + 277 + spi0_clk: spi0_clk { 278 + #clock-cells = <0>; 279 + reg = <13>; 280 + }; 281 + 282 + spi1_clk: spi1_clk { 283 + #clock-cells = <0>; 284 + reg = <14>; 285 + }; 286 + 287 + uart0_clk: uart0_clk { 288 + #clock-cells = <0>; 289 + reg = <15>; 290 + }; 291 + 292 + uart1_clk: uart1_clk { 293 + #clock-cells = <0>; 294 + reg = <16>; 295 + }; 296 + 297 + tcb_clk: tcb_clk { 298 + #clock-cells = <0>; 299 + reg = <17>; 300 + }; 301 + 302 + pwm_clk: pwm_clk { 303 + #clock-cells = <0>; 304 + reg = <18>; 305 + }; 306 + 307 + adc_clk: adc_clk { 308 + #clock-cells = <0>; 309 + reg = <19>; 310 + }; 311 + 312 + dma0_clk: dma0_clk { 313 + #clock-cells = <0>; 314 + reg = <20>; 315 + }; 316 + 317 + uhphs_clk: uhphs_clk { 318 + #clock-cells = <0>; 319 + reg = <22>; 320 + }; 321 + 322 + udphs_clk: udphs_clk { 323 + #clock-cells = <0>; 324 + reg = <23>; 325 + }; 326 + 327 + lcdc_clk: lcdc_clk { 328 + #clock-cells = <0>; 329 + reg = <25>; 330 + }; 331 + 332 + sha_clk: sha_clk { 333 + #clock-cells = <0>; 334 + reg = <27>; 335 + }; 336 + 337 + ssc0_clk: ssc0_clk { 338 + #clock-cells = <0>; 339 + reg = <28>; 340 + }; 341 + 342 + aes_clk: aes_clk { 343 + #clock-cells = <0>; 344 + reg = <29>; 345 + }; 346 + 347 + trng_clk: trng_clk { 348 + #clock-cells = <0>; 349 + reg = <30>; 350 + }; 351 + }; 93 352 }; 94 353 95 354 rstc@fffffe00 { ··· 373 88 compatible = "atmel,at91sam9260-pit"; 374 89 reg = <0xfffffe30 0xf>; 375 90 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 91 + clocks = <&mck>; 376 92 }; 377 93 378 94 shdwc@fffffe10 { 379 95 compatible = "atmel,at91sam9x5-shdwc"; 380 96 reg = <0xfffffe10 0x10>; 97 + }; 98 + 99 + sckc@fffffe50 { 100 + compatible = "atmel,at91sam9x5-sckc"; 101 + reg = <0xfffffe50 0x4>; 102 + 103 + slow_osc: slow_osc { 104 + compatible = "atmel,at91sam9x5-clk-slow-osc"; 105 + #clock-cells = <0>; 106 + clocks = <&slow_xtal>; 107 + }; 108 + 109 + slow_rc_osc: slow_rc_osc { 110 + compatible = "atmel,at91sam9x5-clk-slow-rc-osc"; 111 + #clock-cells = <0>; 112 + clock-frequency = <32768>; 113 + clock-accuracy = <50000000>; 114 + }; 115 + 116 + clk32k: slck { 117 + compatible = "atmel,at91sam9x5-clk-slow"; 118 + #clock-cells = <0>; 119 + clocks = <&slow_rc_osc>, <&slow_osc>; 120 + }; 381 121 }; 382 122 383 123 mmc0: mmc@f0008000 { ··· 411 101 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>; 412 102 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(0)>; 413 103 dma-names = "rxtx"; 104 + clocks = <&mci0_clk>; 105 + clock-names = "mci_clk"; 414 106 #address-cells = <1>; 415 107 #size-cells = <0>; 416 108 status = "disabled"; ··· 422 110 compatible = "atmel,at91sam9x5-tcb"; 423 111 reg = <0xf8008000 0x100>; 424 112 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 113 + clocks = <&tcb_clk>; 114 + clock-names = "t0_clk"; 425 115 }; 426 116 427 117 tcb1: timer@f800c000 { 428 118 compatible = "atmel,at91sam9x5-tcb"; 429 119 reg = <0xf800c000 0x100>; 430 120 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 121 + clocks = <&tcb_clk>; 122 + clock-names = "t0_clk"; 431 123 }; 432 124 433 125 dma: dma-controller@ffffec00 { ··· 439 123 reg = <0xffffec00 0x200>; 440 124 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 441 125 #dma-cells = <2>; 126 + clocks = <&dma0_clk>; 127 + clock-names = "dma_clk"; 442 128 }; 443 129 444 130 pinctrl@fffff400 { ··· 710 392 gpio-controller; 711 393 interrupt-controller; 712 394 #interrupt-cells = <2>; 395 + clocks = <&pioAB_clk>; 713 396 }; 714 397 715 398 pioB: gpio@fffff600 { ··· 721 402 gpio-controller; 722 403 interrupt-controller; 723 404 #interrupt-cells = <2>; 405 + clocks = <&pioAB_clk>; 724 406 }; 725 407 726 408 pioC: gpio@fffff800 { ··· 732 412 gpio-controller; 733 413 interrupt-controller; 734 414 #interrupt-cells = <2>; 415 + clocks = <&pioCD_clk>; 735 416 }; 736 417 737 418 pioD: gpio@fffffa00 { ··· 743 422 gpio-controller; 744 423 interrupt-controller; 745 424 #interrupt-cells = <2>; 425 + clocks = <&pioCD_clk>; 746 426 }; 747 427 }; 748 428 ··· 753 431 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 754 432 pinctrl-names = "default"; 755 433 pinctrl-0 = <&pinctrl_dbgu>; 434 + clocks = <&mck>; 435 + clock-names = "usart"; 756 436 status = "disabled"; 757 437 }; 758 438 ··· 767 443 dma-names = "tx", "rx"; 768 444 pinctrl-names = "default"; 769 445 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 446 + clocks = <&ssc0_clk>; 447 + clock-names = "pclk"; 770 448 status = "disabled"; 771 449 }; 772 450 ··· 778 452 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>; 779 453 pinctrl-names = "default"; 780 454 pinctrl-0 = <&pinctrl_usart0>; 455 + clocks = <&usart0_clk>; 456 + clock-names = "usart"; 781 457 status = "disabled"; 782 458 }; 783 459 ··· 789 461 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 790 462 pinctrl-names = "default"; 791 463 pinctrl-0 = <&pinctrl_usart1>; 464 + clocks = <&usart1_clk>; 465 + clock-names = "usart"; 792 466 status = "disabled"; 793 467 }; 794 468 ··· 800 470 interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 801 471 pinctrl-names = "default"; 802 472 pinctrl-0 = <&pinctrl_usart2>; 473 + clocks = <&usart2_clk>; 474 + clock-names = "usart"; 803 475 status = "disabled"; 804 476 }; 805 477 ··· 811 479 interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 812 480 pinctrl-names = "default"; 813 481 pinctrl-0 = <&pinctrl_usart3>; 482 + clocks = <&usart3_clk>; 483 + clock-names = "usart"; 814 484 status = "disabled"; 815 485 }; 816 486 ··· 827 493 #size-cells = <0>; 828 494 pinctrl-names = "default"; 829 495 pinctrl-0 = <&pinctrl_i2c0>; 496 + clocks = <&twi0_clk>; 830 497 status = "disabled"; 831 498 }; 832 499 ··· 842 507 #size-cells = <0>; 843 508 pinctrl-names = "default"; 844 509 pinctrl-0 = <&pinctrl_i2c1>; 510 + clocks = <&twi1_clk>; 845 511 status = "disabled"; 846 512 }; 847 513 ··· 857 521 dma-names = "tx", "rx"; 858 522 pinctrl-names = "default"; 859 523 pinctrl-0 = <&pinctrl_spi0>; 524 + clocks = <&spi0_clk>; 525 + clock-names = "spi_clk"; 860 526 status = "disabled"; 861 527 }; 862 528 ··· 873 535 dma-names = "tx", "rx"; 874 536 pinctrl-names = "default"; 875 537 pinctrl-0 = <&pinctrl_spi1>; 538 + clocks = <&spi1_clk>; 539 + clock-names = "spi_clk"; 876 540 status = "disabled"; 877 541 }; 878 542 ··· 894 554 reg = <0xf8034000 0x300>; 895 555 interrupts = <18 IRQ_TYPE_LEVEL_HIGH 4>; 896 556 #pwm-cells = <3>; 557 + clocks = <&pwm_clk>; 897 558 status = "disabled"; 898 559 }; 899 560 }; ··· 925 584 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 926 585 reg = <0x00500000 0x00100000>; 927 586 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 587 + clocks = <&usb>, <&uhphs_clk>, <&udphs_clk>, 588 + <&uhpck>; 589 + clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck"; 928 590 status = "disabled"; 929 591 }; 930 592 };
+8
arch/arm/boot/dts/at91sam9n12ek.dts
··· 21 21 reg = <0x20000000 0x8000000>; 22 22 }; 23 23 24 + slow_xtal { 25 + clock-frequency = <32768>; 26 + }; 27 + 28 + main_xtal { 29 + clock-frequency = <16000000>; 30 + }; 31 + 24 32 clocks { 25 33 #address-cells = <1>; 26 34 #size-cells = <1>;
+1 -1
arch/arm/boot/dts/at91sam9rl.dtsi
··· 8 8 9 9 #include "skeleton.dtsi" 10 10 #include <dt-bindings/pinctrl/at91.h> 11 - #include <dt-bindings/clk/at91.h> 11 + #include <dt-bindings/clock/at91.h> 12 12 #include <dt-bindings/interrupt-controller/irq.h> 13 13 #include <dt-bindings/gpio/gpio.h> 14 14 #include <dt-bindings/pwm/pwm.h>
+354 -1
arch/arm/boot/dts/at91sam9x5.dtsi
··· 14 14 #include <dt-bindings/pinctrl/at91.h> 15 15 #include <dt-bindings/interrupt-controller/irq.h> 16 16 #include <dt-bindings/gpio/gpio.h> 17 + #include <dt-bindings/clock/at91.h> 17 18 18 19 / { 19 20 model = "Atmel AT91SAM9x5 family SoC"; ··· 52 51 reg = <0x20000000 0x10000000>; 53 52 }; 54 53 54 + slow_xtal: slow_xtal { 55 + compatible = "fixed-clock"; 56 + #clock-cells = <0>; 57 + clock-frequency = <0>; 58 + }; 59 + 60 + main_xtal: main_xtal { 61 + compatible = "fixed-clock"; 62 + #clock-cells = <0>; 63 + clock-frequency = <0>; 64 + }; 65 + 66 + adc_op_clk: adc_op_clk{ 67 + compatible = "fixed-clock"; 68 + #clock-cells = <0>; 69 + clock-frequency = <5000000>; 70 + }; 71 + 55 72 ahb { 56 73 compatible = "simple-bus"; 57 74 #address-cells = <1>; ··· 96 77 }; 97 78 98 79 pmc: pmc@fffffc00 { 99 - compatible = "atmel,at91rm9200-pmc"; 80 + compatible = "atmel,at91sam9x5-pmc"; 100 81 reg = <0xfffffc00 0x100>; 82 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 83 + interrupt-controller; 84 + #address-cells = <1>; 85 + #size-cells = <0>; 86 + #interrupt-cells = <1>; 87 + 88 + main_rc_osc: main_rc_osc { 89 + compatible = "atmel,at91sam9x5-clk-main-rc-osc"; 90 + #clock-cells = <0>; 91 + interrupts-extended = <&pmc AT91_PMC_MOSCRCS>; 92 + clock-frequency = <12000000>; 93 + clock-accuracy = <50000000>; 94 + }; 95 + 96 + main_osc: main_osc { 97 + compatible = "atmel,at91rm9200-clk-main-osc"; 98 + #clock-cells = <0>; 99 + interrupts-extended = <&pmc AT91_PMC_MOSCS>; 100 + clocks = <&main_xtal>; 101 + }; 102 + 103 + main: mainck { 104 + compatible = "atmel,at91sam9x5-clk-main"; 105 + #clock-cells = <0>; 106 + interrupts-extended = <&pmc AT91_PMC_MOSCSELS>; 107 + clocks = <&main_rc_osc>, <&main_osc>; 108 + }; 109 + 110 + plla: pllack { 111 + compatible = "atmel,at91rm9200-clk-pll"; 112 + #clock-cells = <0>; 113 + interrupts-extended = <&pmc AT91_PMC_LOCKA>; 114 + clocks = <&main>; 115 + reg = <0>; 116 + atmel,clk-input-range = <2000000 32000000>; 117 + #atmel,pll-clk-output-range-cells = <4>; 118 + atmel,pll-clk-output-ranges = <745000000 800000000 0 0 119 + 695000000 750000000 1 0 120 + 645000000 700000000 2 0 121 + 595000000 650000000 3 0 122 + 545000000 600000000 0 1 123 + 495000000 555000000 1 1 124 + 445000000 500000000 1 2 125 + 400000000 450000000 1 3>; 126 + }; 127 + 128 + plladiv: plladivck { 129 + compatible = "atmel,at91sam9x5-clk-plldiv"; 130 + #clock-cells = <0>; 131 + clocks = <&plla>; 132 + }; 133 + 134 + utmi: utmick { 135 + compatible = "atmel,at91sam9x5-clk-utmi"; 136 + #clock-cells = <0>; 137 + interrupts-extended = <&pmc AT91_PMC_LOCKU>; 138 + clocks = <&main>; 139 + }; 140 + 141 + mck: masterck { 142 + compatible = "atmel,at91sam9x5-clk-master"; 143 + #clock-cells = <0>; 144 + interrupts-extended = <&pmc AT91_PMC_MCKRDY>; 145 + clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>; 146 + atmel,clk-output-range = <0 133333333>; 147 + atmel,clk-divisors = <1 2 4 3>; 148 + atmel,master-clk-have-div3-pres; 149 + }; 150 + 151 + usb: usbck { 152 + compatible = "atmel,at91sam9x5-clk-usb"; 153 + #clock-cells = <0>; 154 + clocks = <&plladiv>, <&utmi>; 155 + }; 156 + 157 + prog: progck { 158 + compatible = "atmel,at91sam9x5-clk-programmable"; 159 + #address-cells = <1>; 160 + #size-cells = <0>; 161 + interrupt-parent = <&pmc>; 162 + clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>; 163 + 164 + prog0: prog0 { 165 + #clock-cells = <0>; 166 + reg = <0>; 167 + interrupts = <AT91_PMC_PCKRDY(0)>; 168 + }; 169 + 170 + prog1: prog1 { 171 + #clock-cells = <0>; 172 + reg = <1>; 173 + interrupts = <AT91_PMC_PCKRDY(1)>; 174 + }; 175 + }; 176 + 177 + smd: smdclk { 178 + compatible = "atmel,at91sam9x5-clk-smd"; 179 + #clock-cells = <0>; 180 + clocks = <&plladiv>, <&utmi>; 181 + }; 182 + 183 + systemck { 184 + compatible = "atmel,at91rm9200-clk-system"; 185 + #address-cells = <1>; 186 + #size-cells = <0>; 187 + 188 + ddrck: ddrck { 189 + #clock-cells = <0>; 190 + reg = <2>; 191 + clocks = <&mck>; 192 + }; 193 + 194 + smdck: smdck { 195 + #clock-cells = <0>; 196 + reg = <4>; 197 + clocks = <&smd>; 198 + }; 199 + 200 + uhpck: uhpck { 201 + #clock-cells = <0>; 202 + reg = <6>; 203 + clocks = <&usb>; 204 + }; 205 + 206 + udpck: udpck { 207 + #clock-cells = <0>; 208 + reg = <7>; 209 + clocks = <&usb>; 210 + }; 211 + 212 + pck0: pck0 { 213 + #clock-cells = <0>; 214 + reg = <8>; 215 + clocks = <&prog0>; 216 + }; 217 + 218 + pck1: pck1 { 219 + #clock-cells = <0>; 220 + reg = <9>; 221 + clocks = <&prog1>; 222 + }; 223 + }; 224 + 225 + periphck { 226 + compatible = "atmel,at91sam9x5-clk-peripheral"; 227 + #address-cells = <1>; 228 + #size-cells = <0>; 229 + clocks = <&mck>; 230 + 231 + pioAB_clk: pioAB_clk { 232 + #clock-cells = <0>; 233 + reg = <2>; 234 + }; 235 + 236 + pioCD_clk: pioCD_clk { 237 + #clock-cells = <0>; 238 + reg = <3>; 239 + }; 240 + 241 + smd_clk: smd_clk { 242 + #clock-cells = <0>; 243 + reg = <4>; 244 + }; 245 + 246 + usart0_clk: usart0_clk { 247 + #clock-cells = <0>; 248 + reg = <5>; 249 + }; 250 + 251 + usart1_clk: usart1_clk { 252 + #clock-cells = <0>; 253 + reg = <6>; 254 + }; 255 + 256 + usart2_clk: usart2_clk { 257 + #clock-cells = <0>; 258 + reg = <7>; 259 + }; 260 + 261 + twi0_clk: twi0_clk { 262 + reg = <9>; 263 + #clock-cells = <0>; 264 + }; 265 + 266 + twi1_clk: twi1_clk { 267 + #clock-cells = <0>; 268 + reg = <10>; 269 + }; 270 + 271 + twi2_clk: twi2_clk { 272 + #clock-cells = <0>; 273 + reg = <11>; 274 + }; 275 + 276 + mci0_clk: mci0_clk { 277 + #clock-cells = <0>; 278 + reg = <12>; 279 + }; 280 + 281 + spi0_clk: spi0_clk { 282 + #clock-cells = <0>; 283 + reg = <13>; 284 + }; 285 + 286 + spi1_clk: spi1_clk { 287 + #clock-cells = <0>; 288 + reg = <14>; 289 + }; 290 + 291 + uart0_clk: uart0_clk { 292 + #clock-cells = <0>; 293 + reg = <15>; 294 + }; 295 + 296 + uart1_clk: uart1_clk { 297 + #clock-cells = <0>; 298 + reg = <16>; 299 + }; 300 + 301 + tcb0_clk: tcb0_clk { 302 + #clock-cells = <0>; 303 + reg = <17>; 304 + }; 305 + 306 + pwm_clk: pwm_clk { 307 + #clock-cells = <0>; 308 + reg = <18>; 309 + }; 310 + 311 + adc_clk: adc_clk { 312 + #clock-cells = <0>; 313 + reg = <19>; 314 + }; 315 + 316 + dma0_clk: dma0_clk { 317 + #clock-cells = <0>; 318 + reg = <20>; 319 + }; 320 + 321 + dma1_clk: dma1_clk { 322 + #clock-cells = <0>; 323 + reg = <21>; 324 + }; 325 + 326 + uhphs_clk: uhphs_clk { 327 + #clock-cells = <0>; 328 + reg = <22>; 329 + }; 330 + 331 + udphs_clk: udphs_clk { 332 + #clock-cells = <0>; 333 + reg = <23>; 334 + }; 335 + 336 + mci1_clk: mci1_clk { 337 + #clock-cells = <0>; 338 + reg = <26>; 339 + }; 340 + 341 + ssc0_clk: ssc0_clk { 342 + #clock-cells = <0>; 343 + reg = <28>; 344 + }; 345 + }; 101 346 }; 102 347 103 348 rstc@fffffe00 { ··· 378 95 compatible = "atmel,at91sam9260-pit"; 379 96 reg = <0xfffffe30 0xf>; 380 97 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 98 + clocks = <&mck>; 99 + }; 100 + 101 + sckc@fffffe50 { 102 + compatible = "atmel,at91sam9x5-sckc"; 103 + reg = <0xfffffe50 0x4>; 104 + 105 + slow_osc: slow_osc { 106 + compatible = "atmel,at91sam9x5-clk-slow-osc"; 107 + #clock-cells = <0>; 108 + clocks = <&slow_xtal>; 109 + }; 110 + 111 + slow_rc_osc: slow_rc_osc { 112 + compatible = "atmel,at91sam9x5-clk-slow-rc-osc"; 113 + #clock-cells = <0>; 114 + clock-frequency = <32768>; 115 + clock-accuracy = <50000000>; 116 + }; 117 + 118 + clk32k: slck { 119 + compatible = "atmel,at91sam9x5-clk-slow"; 120 + #clock-cells = <0>; 121 + clocks = <&slow_rc_osc>, <&slow_osc>; 122 + }; 381 123 }; 382 124 383 125 tcb0: timer@f8008000 { 384 126 compatible = "atmel,at91sam9x5-tcb"; 385 127 reg = <0xf8008000 0x100>; 386 128 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 129 + clocks = <&tcb0_clk>; 130 + clock-names = "t0_clk"; 387 131 }; 388 132 389 133 tcb1: timer@f800c000 { 390 134 compatible = "atmel,at91sam9x5-tcb"; 391 135 reg = <0xf800c000 0x100>; 392 136 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 137 + clocks = <&tcb0_clk>; 138 + clock-names = "t0_clk"; 393 139 }; 394 140 395 141 dma0: dma-controller@ffffec00 { ··· 426 114 reg = <0xffffec00 0x200>; 427 115 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 428 116 #dma-cells = <2>; 117 + clocks = <&dma0_clk>; 118 + clock-names = "dma_clk"; 429 119 }; 430 120 431 121 dma1: dma-controller@ffffee00 { ··· 435 121 reg = <0xffffee00 0x200>; 436 122 interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>; 437 123 #dma-cells = <2>; 124 + clocks = <&dma1_clk>; 125 + clock-names = "dma_clk"; 438 126 }; 439 127 440 128 pinctrl@fffff400 { ··· 769 453 gpio-controller; 770 454 interrupt-controller; 771 455 #interrupt-cells = <2>; 456 + clocks = <&pioAB_clk>; 772 457 }; 773 458 774 459 pioB: gpio@fffff600 { ··· 781 464 #gpio-lines = <19>; 782 465 interrupt-controller; 783 466 #interrupt-cells = <2>; 467 + clocks = <&pioAB_clk>; 784 468 }; 785 469 786 470 pioC: gpio@fffff800 { ··· 792 474 gpio-controller; 793 475 interrupt-controller; 794 476 #interrupt-cells = <2>; 477 + clocks = <&pioCD_clk>; 795 478 }; 796 479 797 480 pioD: gpio@fffffa00 { ··· 804 485 #gpio-lines = <22>; 805 486 interrupt-controller; 806 487 #interrupt-cells = <2>; 488 + clocks = <&pioCD_clk>; 807 489 }; 808 490 }; 809 491 ··· 817 497 dma-names = "tx", "rx"; 818 498 pinctrl-names = "default"; 819 499 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 500 + clocks = <&ssc0_clk>; 501 + clock-names = "pclk"; 820 502 status = "disabled"; 821 503 }; 822 504 ··· 829 507 dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(0)>; 830 508 dma-names = "rxtx"; 831 509 pinctrl-names = "default"; 510 + clocks = <&mci0_clk>; 511 + clock-names = "mci_clk"; 832 512 #address-cells = <1>; 833 513 #size-cells = <0>; 834 514 status = "disabled"; ··· 843 519 dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(0)>; 844 520 dma-names = "rxtx"; 845 521 pinctrl-names = "default"; 522 + clocks = <&mci1_clk>; 523 + clock-names = "mci_clk"; 846 524 #address-cells = <1>; 847 525 #size-cells = <0>; 848 526 status = "disabled"; ··· 856 530 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 857 531 pinctrl-names = "default"; 858 532 pinctrl-0 = <&pinctrl_dbgu>; 533 + clocks = <&mck>; 534 + clock-names = "usart"; 859 535 status = "disabled"; 860 536 }; 861 537 ··· 867 539 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>; 868 540 pinctrl-names = "default"; 869 541 pinctrl-0 = <&pinctrl_usart0>; 542 + clocks = <&usart0_clk>; 543 + clock-names = "usart"; 870 544 status = "disabled"; 871 545 }; 872 546 ··· 878 548 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 879 549 pinctrl-names = "default"; 880 550 pinctrl-0 = <&pinctrl_usart1>; 551 + clocks = <&usart1_clk>; 552 + clock-names = "usart"; 881 553 status = "disabled"; 882 554 }; 883 555 ··· 889 557 interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 890 558 pinctrl-names = "default"; 891 559 pinctrl-0 = <&pinctrl_usart2>; 560 + clocks = <&usart2_clk>; 561 + clock-names = "usart"; 892 562 status = "disabled"; 893 563 }; 894 564 ··· 905 571 #size-cells = <0>; 906 572 pinctrl-names = "default"; 907 573 pinctrl-0 = <&pinctrl_i2c0>; 574 + clocks = <&twi0_clk>; 908 575 status = "disabled"; 909 576 }; 910 577 ··· 920 585 #size-cells = <0>; 921 586 pinctrl-names = "default"; 922 587 pinctrl-0 = <&pinctrl_i2c1>; 588 + clocks = <&twi1_clk>; 923 589 status = "disabled"; 924 590 }; 925 591 ··· 935 599 #size-cells = <0>; 936 600 pinctrl-names = "default"; 937 601 pinctrl-0 = <&pinctrl_i2c2>; 602 + clocks = <&twi2_clk>; 938 603 status = "disabled"; 939 604 }; 940 605 ··· 945 608 interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>; 946 609 pinctrl-names = "default"; 947 610 pinctrl-0 = <&pinctrl_uart0>; 611 + clocks = <&uart0_clk>; 612 + clock-names = "usart"; 948 613 status = "disabled"; 949 614 }; 950 615 ··· 956 617 interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>; 957 618 pinctrl-names = "default"; 958 619 pinctrl-0 = <&pinctrl_uart1>; 620 + clocks = <&uart1_clk>; 621 + clock-names = "usart"; 959 622 status = "disabled"; 960 623 }; 961 624 ··· 967 626 compatible = "atmel,at91sam9260-adc"; 968 627 reg = <0xf804c000 0x100>; 969 628 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>; 629 + clocks = <&adc_clk>, 630 + <&adc_op_clk>; 631 + clock-names = "adc_clk", "adc_op_clk"; 970 632 atmel,adc-use-external-triggers; 971 633 atmel,adc-channels-used = <0xffff>; 972 634 atmel,adc-vref = <3300>; ··· 1017 673 dma-names = "tx", "rx"; 1018 674 pinctrl-names = "default"; 1019 675 pinctrl-0 = <&pinctrl_spi0>; 676 + clocks = <&spi0_clk>; 677 + clock-names = "spi_clk"; 1020 678 status = "disabled"; 1021 679 }; 1022 680 ··· 1033 687 dma-names = "tx", "rx"; 1034 688 pinctrl-names = "default"; 1035 689 pinctrl-0 = <&pinctrl_spi1>; 690 + clocks = <&spi1_clk>; 691 + clock-names = "spi_clk"; 1036 692 status = "disabled"; 1037 693 }; 1038 694 ··· 1153 805 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 1154 806 reg = <0x00600000 0x100000>; 1155 807 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 808 + clocks = <&usb>, <&uhphs_clk>, <&udphs_clk>, 809 + <&uhpck>; 810 + clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck"; 1156 811 status = "disabled"; 1157 812 }; 1158 813 ··· 1163 812 compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; 1164 813 reg = <0x00700000 0x100000>; 1165 814 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 815 + clocks = <&usb>, <&uhphs_clk>, <&uhpck>; 816 + clock-names = "usb_clk", "ehci_clk", "uhpck"; 1166 817 status = "disabled"; 1167 818 }; 1168 819 };
+31
arch/arm/boot/dts/at91sam9x5_can.dtsi
··· 1 + /* 2 + * at91sam9x5_macb0.dtsi - Device Tree Include file for AT91SAM9x5 SoC with 1 3 + * Ethernet interface. 4 + * 5 + * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com> 6 + * 7 + * Licensed under GPLv2. 8 + */ 9 + 10 + #include <dt-bindings/pinctrl/at91.h> 11 + #include <dt-bindings/interrupt-controller/irq.h> 12 + 13 + / { 14 + ahb { 15 + apb { 16 + pmc: pmc@fffffc00 { 17 + periphck { 18 + can0_clk: can0_clk { 19 + #clock-cells = <0>; 20 + reg = <29>; 21 + }; 22 + 23 + can1_clk: can1_clk { 24 + #clock-cells = <0>; 25 + reg = <30>; 26 + }; 27 + }; 28 + }; 29 + }; 30 + }; 31 + };
+26
arch/arm/boot/dts/at91sam9x5_isi.dtsi
··· 1 + /* 2 + * at91sam9x5_isi.dtsi - Device Tree Include file for AT91SAM9x5 SoC with an 3 + * Image Sensor Interface. 4 + * 5 + * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com> 6 + * 7 + * Licensed under GPLv2. 8 + */ 9 + 10 + #include <dt-bindings/pinctrl/at91.h> 11 + #include <dt-bindings/interrupt-controller/irq.h> 12 + 13 + / { 14 + ahb { 15 + apb { 16 + pmc: pmc@fffffc00 { 17 + periphck { 18 + isi_clk: isi_clk { 19 + #clock-cells = <0>; 20 + reg = <25>; 21 + }; 22 + }; 23 + }; 24 + }; 25 + }; 26 + };
+26
arch/arm/boot/dts/at91sam9x5_lcd.dtsi
··· 1 + /* 2 + * at91sam9x5_lcd.dtsi - Device Tree Include file for AT91SAM9x5 SoC with an 3 + * LCD controller. 4 + * 5 + * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com> 6 + * 7 + * Licensed under GPLv2. 8 + */ 9 + 10 + #include <dt-bindings/pinctrl/at91.h> 11 + #include <dt-bindings/interrupt-controller/irq.h> 12 + 13 + / { 14 + ahb { 15 + apb { 16 + pmc: pmc@fffffc00 { 17 + periphck { 18 + lcdc_clk: lcdc_clk { 19 + #clock-cells = <0>; 20 + reg = <25>; 21 + }; 22 + }; 23 + }; 24 + }; 25 + }; 26 + };
+11
arch/arm/boot/dts/at91sam9x5_macb0.dtsi
··· 43 43 }; 44 44 }; 45 45 46 + pmc: pmc@fffffc00 { 47 + periphck { 48 + macb0_clk: macb0_clk { 49 + #clock-cells = <0>; 50 + reg = <24>; 51 + }; 52 + }; 53 + }; 54 + 46 55 macb0: ethernet@f802c000 { 47 56 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 48 57 reg = <0xf802c000 0x100>; 49 58 interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>; 50 59 pinctrl-names = "default"; 51 60 pinctrl-0 = <&pinctrl_macb0_rmii>; 61 + clocks = <&macb0_clk>, <&macb0_clk>; 62 + clock-names = "hclk", "pclk"; 52 63 status = "disabled"; 53 64 }; 54 65 };
+11
arch/arm/boot/dts/at91sam9x5_macb1.dtsi
··· 31 31 }; 32 32 }; 33 33 34 + pmc: pmc@fffffc00 { 35 + periphck { 36 + macb1_clk: macb1_clk { 37 + #clock-cells = <0>; 38 + reg = <27>; 39 + }; 40 + }; 41 + }; 42 + 34 43 macb1: ethernet@f8030000 { 35 44 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 36 45 reg = <0xf8030000 0x100>; 37 46 interrupts = <27 IRQ_TYPE_LEVEL_HIGH 3>; 38 47 pinctrl-names = "default"; 39 48 pinctrl-0 = <&pinctrl_macb1_rmii>; 49 + clocks = <&macb1_clk>, <&macb1_clk>; 50 + clock-names = "hclk", "pclk"; 40 51 status = "disabled"; 41 52 }; 42 53 };
+11
arch/arm/boot/dts/at91sam9x5_usart3.dtsi
··· 42 42 }; 43 43 }; 44 44 45 + pmc: pmc@fffffc00 { 46 + periphck { 47 + usart3_clk: usart3_clk { 48 + #clock-cells = <0>; 49 + reg = <8>; 50 + }; 51 + }; 52 + }; 53 + 45 54 usart3: serial@f8028000 { 46 55 compatible = "atmel,at91sam9260-usart"; 47 56 reg = <0xf8028000 0x200>; 48 57 interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 49 58 pinctrl-names = "default"; 50 59 pinctrl-0 = <&pinctrl_usart3>; 60 + clocks = <&usart3_clk>; 61 + clock-names = "usart"; 51 62 status = "disabled"; 52 63 }; 53 64 };
+8
arch/arm/boot/dts/at91sam9x5cm.dtsi
··· 23 23 }; 24 24 }; 25 25 26 + slow_xtal { 27 + clock-frequency = <32768>; 28 + }; 29 + 30 + main_xtal { 31 + clock-frequency = <12000000>; 32 + }; 33 + 26 34 ahb { 27 35 apb { 28 36 pinctrl@fffff400 {
+1 -1
arch/arm/boot/dts/sama5d3.dtsi
··· 13 13 #include <dt-bindings/pinctrl/at91.h> 14 14 #include <dt-bindings/interrupt-controller/irq.h> 15 15 #include <dt-bindings/gpio/gpio.h> 16 - #include <dt-bindings/clk/at91.h> 16 + #include <dt-bindings/clock/at91.h> 17 17 18 18 / { 19 19 model = "Atmel SAMA5D3 family SoC";
+1 -1
arch/arm/boot/dts/sama5d3_mci2.dtsi
··· 9 9 10 10 #include <dt-bindings/pinctrl/at91.h> 11 11 #include <dt-bindings/interrupt-controller/irq.h> 12 - #include <dt-bindings/clk/at91.h> 12 + #include <dt-bindings/clock/at91.h> 13 13 14 14 / { 15 15 ahb {
+1 -1
arch/arm/boot/dts/sama5d3_tcb1.dtsi
··· 9 9 10 10 #include <dt-bindings/pinctrl/at91.h> 11 11 #include <dt-bindings/interrupt-controller/irq.h> 12 - #include <dt-bindings/clk/at91.h> 12 + #include <dt-bindings/clock/at91.h> 13 13 14 14 / { 15 15 aliases {
+1 -1
arch/arm/boot/dts/sama5d3_uart.dtsi
··· 9 9 10 10 #include <dt-bindings/pinctrl/at91.h> 11 11 #include <dt-bindings/interrupt-controller/irq.h> 12 - #include <dt-bindings/clk/at91.h> 12 + #include <dt-bindings/clock/at91.h> 13 13 14 14 / { 15 15 aliases {
-2
arch/arm/mach-at91/Kconfig
··· 167 167 select HAVE_AT91_DBGU0 168 168 select HAVE_FB_ATMEL 169 169 select SOC_AT91SAM9 170 - select AT91_USE_OLD_CLK 171 170 select HAVE_AT91_UTMI 172 171 select HAVE_AT91_SMD 173 172 select HAVE_AT91_USB_CLK ··· 182 183 select HAVE_AT91_DBGU0 183 184 select HAVE_FB_ATMEL 184 185 select SOC_AT91SAM9 185 - select AT91_USE_OLD_CLK 186 186 select HAVE_AT91_USB_CLK 187 187 help 188 188 Select this if you are using Atmel's AT91SAM9N12 SoC.
+5 -1
arch/arm/mach-at91/at91sam9n12.c
··· 19 19 #include "board.h" 20 20 #include "soc.h" 21 21 #include "generic.h" 22 - #include "clock.h" 23 22 #include "sam9_smc.h" 24 23 24 + #if defined(CONFIG_OLD_CLK_AT91) 25 + #include "clock.h" 25 26 /* -------------------------------------------------------------------- 26 27 * Clocks 27 28 * -------------------------------------------------------------------- */ ··· 216 215 ARRAY_SIZE(periph_clocks_lookups)); 217 216 218 217 } 218 + #else 219 + #define at91sam9n12_register_clocks NULL 220 + #endif 219 221 220 222 /* -------------------------------------------------------------------- 221 223 * AT91SAM9N12 processor initialization
+5 -1
arch/arm/mach-at91/at91sam9x5.c
··· 19 19 #include "board.h" 20 20 #include "soc.h" 21 21 #include "generic.h" 22 - #include "clock.h" 23 22 #include "sam9_smc.h" 24 23 24 + #if defined(CONFIG_OLD_CLK_AT91) 25 + #include "clock.h" 25 26 /* -------------------------------------------------------------------- 26 27 * Clocks 27 28 * -------------------------------------------------------------------- */ ··· 314 313 clk_register(&pck0); 315 314 clk_register(&pck1); 316 315 } 316 + #else 317 + #define at91sam9x5_register_clocks NULL 318 + #endif 317 319 318 320 /* -------------------------------------------------------------------- 319 321 * AT91SAM9x5 processor initialization
include/dt-bindings/clk/at91.h include/dt-bindings/clock/at91.h