2 * TI DA850/OMAP-L138 chip specific setup
4 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
6 * Derived from: arch/arm/mach-davinci/da830.c
7 * Original Copyrights follow:
9 * 2009 (c) MontaVista Software, Inc. This file is licensed under
10 * the terms of the GNU General Public License version 2. This program
11 * is licensed "as is" without any warranty of any kind, whether express
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/clk.h>
17 #include <linux/platform_device.h>
19 #include <asm/mach/map.h>
21 #include <mach/clock.h>
24 #include <mach/irqs.h>
25 #include <mach/cputype.h>
26 #include <mach/common.h>
27 #include <mach/time.h>
28 #include <mach/da8xx.h>
33 #define DA850_PLL1_BASE 0x01e1a000
34 #define DA850_TIMER64P2_BASE 0x01f0c000
35 #define DA850_TIMER64P3_BASE 0x01f0d000
37 #define DA850_REF_FREQ 24000000
39 static struct pll_data pll0_data
= {
41 .phys_base
= DA8XX_PLL0_BASE
,
42 .flags
= PLL_HAS_PREDIV
| PLL_HAS_POSTDIV
,
45 static struct clk ref_clk
= {
47 .rate
= DA850_REF_FREQ
,
50 static struct clk pll0_clk
= {
53 .pll_data
= &pll0_data
,
57 static struct clk pll0_aux_clk
= {
58 .name
= "pll0_aux_clk",
60 .flags
= CLK_PLL
| PRE_PLL
,
63 static struct clk pll0_sysclk2
= {
64 .name
= "pll0_sysclk2",
70 static struct clk pll0_sysclk3
= {
71 .name
= "pll0_sysclk3",
77 static struct clk pll0_sysclk4
= {
78 .name
= "pll0_sysclk4",
84 static struct clk pll0_sysclk5
= {
85 .name
= "pll0_sysclk5",
91 static struct clk pll0_sysclk6
= {
92 .name
= "pll0_sysclk6",
98 static struct clk pll0_sysclk7
= {
99 .name
= "pll0_sysclk7",
105 static struct pll_data pll1_data
= {
107 .phys_base
= DA850_PLL1_BASE
,
108 .flags
= PLL_HAS_POSTDIV
,
111 static struct clk pll1_clk
= {
114 .pll_data
= &pll1_data
,
118 static struct clk pll1_aux_clk
= {
119 .name
= "pll1_aux_clk",
121 .flags
= CLK_PLL
| PRE_PLL
,
124 static struct clk pll1_sysclk2
= {
125 .name
= "pll1_sysclk2",
131 static struct clk pll1_sysclk3
= {
132 .name
= "pll1_sysclk3",
138 static struct clk pll1_sysclk4
= {
139 .name
= "pll1_sysclk4",
145 static struct clk pll1_sysclk5
= {
146 .name
= "pll1_sysclk5",
152 static struct clk pll1_sysclk6
= {
153 .name
= "pll0_sysclk6",
159 static struct clk pll1_sysclk7
= {
160 .name
= "pll1_sysclk7",
166 static struct clk i2c0_clk
= {
168 .parent
= &pll0_aux_clk
,
171 static struct clk timerp64_0_clk
= {
173 .parent
= &pll0_aux_clk
,
176 static struct clk timerp64_1_clk
= {
178 .parent
= &pll0_aux_clk
,
181 static struct clk arm_rom_clk
= {
183 .parent
= &pll0_sysclk2
,
184 .lpsc
= DA8XX_LPSC0_ARM_RAM_ROM
,
185 .flags
= ALWAYS_ENABLED
,
188 static struct clk tpcc0_clk
= {
190 .parent
= &pll0_sysclk2
,
191 .lpsc
= DA8XX_LPSC0_TPCC
,
192 .flags
= ALWAYS_ENABLED
| CLK_PSC
,
195 static struct clk tptc0_clk
= {
197 .parent
= &pll0_sysclk2
,
198 .lpsc
= DA8XX_LPSC0_TPTC0
,
199 .flags
= ALWAYS_ENABLED
,
202 static struct clk tptc1_clk
= {
204 .parent
= &pll0_sysclk2
,
205 .lpsc
= DA8XX_LPSC0_TPTC1
,
206 .flags
= ALWAYS_ENABLED
,
209 static struct clk tpcc1_clk
= {
211 .parent
= &pll0_sysclk2
,
212 .lpsc
= DA850_LPSC1_TPCC1
,
213 .flags
= CLK_PSC
| ALWAYS_ENABLED
,
217 static struct clk tptc2_clk
= {
219 .parent
= &pll0_sysclk2
,
220 .lpsc
= DA850_LPSC1_TPTC2
,
221 .flags
= ALWAYS_ENABLED
,
225 static struct clk uart0_clk
= {
227 .parent
= &pll0_sysclk2
,
228 .lpsc
= DA8XX_LPSC0_UART0
,
231 static struct clk uart1_clk
= {
233 .parent
= &pll0_sysclk2
,
234 .lpsc
= DA8XX_LPSC1_UART1
,
238 static struct clk uart2_clk
= {
240 .parent
= &pll0_sysclk2
,
241 .lpsc
= DA8XX_LPSC1_UART2
,
245 static struct clk aintc_clk
= {
247 .parent
= &pll0_sysclk4
,
248 .lpsc
= DA8XX_LPSC0_AINTC
,
249 .flags
= ALWAYS_ENABLED
,
252 static struct clk gpio_clk
= {
254 .parent
= &pll0_sysclk4
,
255 .lpsc
= DA8XX_LPSC1_GPIO
,
259 static struct clk i2c1_clk
= {
261 .parent
= &pll0_sysclk4
,
262 .lpsc
= DA8XX_LPSC1_I2C
,
266 static struct clk emif3_clk
= {
268 .parent
= &pll0_sysclk5
,
269 .lpsc
= DA8XX_LPSC1_EMIF3C
,
270 .flags
= ALWAYS_ENABLED
,
274 static struct clk arm_clk
= {
276 .parent
= &pll0_sysclk6
,
277 .lpsc
= DA8XX_LPSC0_ARM
,
278 .flags
= ALWAYS_ENABLED
,
281 static struct clk rmii_clk
= {
283 .parent
= &pll0_sysclk7
,
286 static struct clk emac_clk
= {
288 .parent
= &pll0_sysclk4
,
289 .lpsc
= DA8XX_LPSC1_CPGMAC
,
293 static struct clk mcasp_clk
= {
295 .parent
= &pll0_sysclk2
,
296 .lpsc
= DA8XX_LPSC1_McASP0
,
300 static struct davinci_clk da850_clks
[] = {
301 CLK(NULL
, "ref", &ref_clk
),
302 CLK(NULL
, "pll0", &pll0_clk
),
303 CLK(NULL
, "pll0_aux", &pll0_aux_clk
),
304 CLK(NULL
, "pll0_sysclk2", &pll0_sysclk2
),
305 CLK(NULL
, "pll0_sysclk3", &pll0_sysclk3
),
306 CLK(NULL
, "pll0_sysclk4", &pll0_sysclk4
),
307 CLK(NULL
, "pll0_sysclk5", &pll0_sysclk5
),
308 CLK(NULL
, "pll0_sysclk6", &pll0_sysclk6
),
309 CLK(NULL
, "pll0_sysclk7", &pll0_sysclk7
),
310 CLK(NULL
, "pll1", &pll1_clk
),
311 CLK(NULL
, "pll1_aux", &pll1_aux_clk
),
312 CLK(NULL
, "pll1_sysclk2", &pll1_sysclk2
),
313 CLK(NULL
, "pll1_sysclk3", &pll1_sysclk3
),
314 CLK(NULL
, "pll1_sysclk4", &pll1_sysclk4
),
315 CLK(NULL
, "pll1_sysclk5", &pll1_sysclk5
),
316 CLK(NULL
, "pll1_sysclk6", &pll1_sysclk6
),
317 CLK(NULL
, "pll1_sysclk7", &pll1_sysclk7
),
318 CLK("i2c_davinci.1", NULL
, &i2c0_clk
),
319 CLK(NULL
, "timer0", &timerp64_0_clk
),
320 CLK("watchdog", NULL
, &timerp64_1_clk
),
321 CLK(NULL
, "arm_rom", &arm_rom_clk
),
322 CLK(NULL
, "tpcc0", &tpcc0_clk
),
323 CLK(NULL
, "tptc0", &tptc0_clk
),
324 CLK(NULL
, "tptc1", &tptc1_clk
),
325 CLK(NULL
, "tpcc1", &tpcc1_clk
),
326 CLK(NULL
, "tptc2", &tptc2_clk
),
327 CLK(NULL
, "uart0", &uart0_clk
),
328 CLK(NULL
, "uart1", &uart1_clk
),
329 CLK(NULL
, "uart2", &uart2_clk
),
330 CLK(NULL
, "aintc", &aintc_clk
),
331 CLK(NULL
, "gpio", &gpio_clk
),
332 CLK("i2c_davinci.2", NULL
, &i2c1_clk
),
333 CLK(NULL
, "emif3", &emif3_clk
),
334 CLK(NULL
, "arm", &arm_clk
),
335 CLK(NULL
, "rmii", &rmii_clk
),
336 CLK("davinci_emac.1", NULL
, &emac_clk
),
337 CLK("davinci-mcasp.0", NULL
, &mcasp_clk
),
338 CLK(NULL
, NULL
, NULL
),
342 * Device specific mux setup
344 * soc description mux mode mode mux dbg
345 * reg offset mask mode
347 static const struct mux_config da850_pins
[] = {
348 #ifdef CONFIG_DAVINCI_MUX
350 MUX_CFG(DA850
, NUART0_CTS
, 3, 24, 15, 2, false)
351 MUX_CFG(DA850
, NUART0_RTS
, 3, 28, 15, 2, false)
352 MUX_CFG(DA850
, UART0_RXD
, 3, 16, 15, 2, false)
353 MUX_CFG(DA850
, UART0_TXD
, 3, 20, 15, 2, false)
355 MUX_CFG(DA850
, UART1_RXD
, 4, 24, 15, 2, false)
356 MUX_CFG(DA850
, UART1_TXD
, 4, 28, 15, 2, false)
358 MUX_CFG(DA850
, UART2_RXD
, 4, 16, 15, 2, false)
359 MUX_CFG(DA850
, UART2_TXD
, 4, 20, 15, 2, false)
361 MUX_CFG(DA850
, I2C1_SCL
, 4, 16, 15, 4, false)
362 MUX_CFG(DA850
, I2C1_SDA
, 4, 20, 15, 4, false)
364 MUX_CFG(DA850
, I2C0_SDA
, 4, 12, 15, 2, false)
365 MUX_CFG(DA850
, I2C0_SCL
, 4, 8, 15, 2, false)
367 MUX_CFG(DA850
, MII_TXEN
, 2, 4, 15, 8, false)
368 MUX_CFG(DA850
, MII_TXCLK
, 2, 8, 15, 8, false)
369 MUX_CFG(DA850
, MII_COL
, 2, 12, 15, 8, false)
370 MUX_CFG(DA850
, MII_TXD_3
, 2, 16, 15, 8, false)
371 MUX_CFG(DA850
, MII_TXD_2
, 2, 20, 15, 8, false)
372 MUX_CFG(DA850
, MII_TXD_1
, 2, 24, 15, 8, false)
373 MUX_CFG(DA850
, MII_TXD_0
, 2, 28, 15, 8, false)
374 MUX_CFG(DA850
, MII_RXCLK
, 3, 0, 15, 8, false)
375 MUX_CFG(DA850
, MII_RXDV
, 3, 4, 15, 8, false)
376 MUX_CFG(DA850
, MII_RXER
, 3, 8, 15, 8, false)
377 MUX_CFG(DA850
, MII_CRS
, 3, 12, 15, 8, false)
378 MUX_CFG(DA850
, MII_RXD_3
, 3, 16, 15, 8, false)
379 MUX_CFG(DA850
, MII_RXD_2
, 3, 20, 15, 8, false)
380 MUX_CFG(DA850
, MII_RXD_1
, 3, 24, 15, 8, false)
381 MUX_CFG(DA850
, MII_RXD_0
, 3, 28, 15, 8, false)
382 MUX_CFG(DA850
, MDIO_CLK
, 4, 0, 15, 8, false)
383 MUX_CFG(DA850
, MDIO_D
, 4, 4, 15, 8, false)
385 MUX_CFG(DA850
, ACLKR
, 0, 0, 15, 1, false)
386 MUX_CFG(DA850
, ACLKX
, 0, 4, 15, 1, false)
387 MUX_CFG(DA850
, AFSR
, 0, 8, 15, 1, false)
388 MUX_CFG(DA850
, AFSX
, 0, 12, 15, 1, false)
389 MUX_CFG(DA850
, AHCLKR
, 0, 16, 15, 1, false)
390 MUX_CFG(DA850
, AHCLKX
, 0, 20, 15, 1, false)
391 MUX_CFG(DA850
, AMUTE
, 0, 24, 15, 1, false)
392 MUX_CFG(DA850
, AXR_15
, 1, 0, 15, 1, false)
393 MUX_CFG(DA850
, AXR_14
, 1, 4, 15, 1, false)
394 MUX_CFG(DA850
, AXR_13
, 1, 8, 15, 1, false)
395 MUX_CFG(DA850
, AXR_12
, 1, 12, 15, 1, false)
396 MUX_CFG(DA850
, AXR_11
, 1, 16, 15, 1, false)
397 MUX_CFG(DA850
, AXR_10
, 1, 20, 15, 1, false)
398 MUX_CFG(DA850
, AXR_9
, 1, 24, 15, 1, false)
399 MUX_CFG(DA850
, AXR_8
, 1, 28, 15, 1, false)
400 MUX_CFG(DA850
, AXR_7
, 2, 0, 15, 1, false)
401 MUX_CFG(DA850
, AXR_6
, 2, 4, 15, 1, false)
402 MUX_CFG(DA850
, AXR_5
, 2, 8, 15, 1, false)
403 MUX_CFG(DA850
, AXR_4
, 2, 12, 15, 1, false)
404 MUX_CFG(DA850
, AXR_3
, 2, 16, 15, 1, false)
405 MUX_CFG(DA850
, AXR_2
, 2, 20, 15, 1, false)
406 MUX_CFG(DA850
, AXR_1
, 2, 24, 15, 1, false)
407 MUX_CFG(DA850
, AXR_0
, 2, 28, 15, 1, false)
411 const short da850_uart0_pins
[] __initdata
= {
412 DA850_NUART0_CTS
, DA850_NUART0_RTS
, DA850_UART0_RXD
, DA850_UART0_TXD
,
416 const short da850_uart1_pins
[] __initdata
= {
417 DA850_UART1_RXD
, DA850_UART1_TXD
,
421 const short da850_uart2_pins
[] __initdata
= {
422 DA850_UART2_RXD
, DA850_UART2_TXD
,
426 const short da850_i2c0_pins
[] __initdata
= {
427 DA850_I2C0_SDA
, DA850_I2C0_SCL
,
431 const short da850_i2c1_pins
[] __initdata
= {
432 DA850_I2C1_SCL
, DA850_I2C1_SDA
,
436 const short da850_cpgmac_pins
[] __initdata
= {
437 DA850_MII_TXEN
, DA850_MII_TXCLK
, DA850_MII_COL
, DA850_MII_TXD_3
,
438 DA850_MII_TXD_2
, DA850_MII_TXD_1
, DA850_MII_TXD_0
, DA850_MII_RXER
,
439 DA850_MII_CRS
, DA850_MII_RXCLK
, DA850_MII_RXDV
, DA850_MII_RXD_3
,
440 DA850_MII_RXD_2
, DA850_MII_RXD_1
, DA850_MII_RXD_0
, DA850_MDIO_CLK
,
445 const short da850_mcasp_pins
[] __initdata
= {
446 DA850_AHCLKX
, DA850_ACLKX
, DA850_AFSX
,
447 DA850_AHCLKR
, DA850_ACLKR
, DA850_AFSR
, DA850_AMUTE
,
448 DA850_AXR_11
, DA850_AXR_12
,
452 /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */
453 static u8 da850_default_priorities
[DA850_N_CP_INTC_IRQ
] = {
454 [IRQ_DA8XX_COMMTX
] = 7,
455 [IRQ_DA8XX_COMMRX
] = 7,
456 [IRQ_DA8XX_NINT
] = 7,
457 [IRQ_DA8XX_EVTOUT0
] = 7,
458 [IRQ_DA8XX_EVTOUT1
] = 7,
459 [IRQ_DA8XX_EVTOUT2
] = 7,
460 [IRQ_DA8XX_EVTOUT3
] = 7,
461 [IRQ_DA8XX_EVTOUT4
] = 7,
462 [IRQ_DA8XX_EVTOUT5
] = 7,
463 [IRQ_DA8XX_EVTOUT6
] = 7,
464 [IRQ_DA8XX_EVTOUT6
] = 7,
465 [IRQ_DA8XX_EVTOUT7
] = 7,
466 [IRQ_DA8XX_CCINT0
] = 7,
467 [IRQ_DA8XX_CCERRINT
] = 7,
468 [IRQ_DA8XX_TCERRINT0
] = 7,
469 [IRQ_DA8XX_AEMIFINT
] = 7,
470 [IRQ_DA8XX_I2CINT0
] = 7,
471 [IRQ_DA8XX_MMCSDINT0
] = 7,
472 [IRQ_DA8XX_MMCSDINT1
] = 7,
473 [IRQ_DA8XX_ALLINT0
] = 7,
475 [IRQ_DA8XX_SPINT0
] = 7,
476 [IRQ_DA8XX_TINT12_0
] = 7,
477 [IRQ_DA8XX_TINT34_0
] = 7,
478 [IRQ_DA8XX_TINT12_1
] = 7,
479 [IRQ_DA8XX_TINT34_1
] = 7,
480 [IRQ_DA8XX_UARTINT0
] = 7,
481 [IRQ_DA8XX_KEYMGRINT
] = 7,
482 [IRQ_DA8XX_SECINT
] = 7,
483 [IRQ_DA8XX_SECKEYERR
] = 7,
484 [IRQ_DA850_MPUADDRERR0
] = 7,
485 [IRQ_DA850_MPUPROTERR0
] = 7,
486 [IRQ_DA850_IOPUADDRERR0
] = 7,
487 [IRQ_DA850_IOPUPROTERR0
] = 7,
488 [IRQ_DA850_IOPUADDRERR1
] = 7,
489 [IRQ_DA850_IOPUPROTERR1
] = 7,
490 [IRQ_DA850_IOPUADDRERR2
] = 7,
491 [IRQ_DA850_IOPUPROTERR2
] = 7,
492 [IRQ_DA850_BOOTCFG_ADDR_ERR
] = 7,
493 [IRQ_DA850_BOOTCFG_PROT_ERR
] = 7,
494 [IRQ_DA850_MPUADDRERR1
] = 7,
495 [IRQ_DA850_MPUPROTERR1
] = 7,
496 [IRQ_DA850_IOPUADDRERR3
] = 7,
497 [IRQ_DA850_IOPUPROTERR3
] = 7,
498 [IRQ_DA850_IOPUADDRERR4
] = 7,
499 [IRQ_DA850_IOPUPROTERR4
] = 7,
500 [IRQ_DA850_IOPUADDRERR5
] = 7,
501 [IRQ_DA850_IOPUPROTERR5
] = 7,
502 [IRQ_DA850_MIOPU_BOOTCFG_ERR
] = 7,
503 [IRQ_DA8XX_CHIPINT0
] = 7,
504 [IRQ_DA8XX_CHIPINT1
] = 7,
505 [IRQ_DA8XX_CHIPINT2
] = 7,
506 [IRQ_DA8XX_CHIPINT3
] = 7,
507 [IRQ_DA8XX_TCERRINT1
] = 7,
508 [IRQ_DA8XX_C0_RX_THRESH_PULSE
] = 7,
509 [IRQ_DA8XX_C0_RX_PULSE
] = 7,
510 [IRQ_DA8XX_C0_TX_PULSE
] = 7,
511 [IRQ_DA8XX_C0_MISC_PULSE
] = 7,
512 [IRQ_DA8XX_C1_RX_THRESH_PULSE
] = 7,
513 [IRQ_DA8XX_C1_RX_PULSE
] = 7,
514 [IRQ_DA8XX_C1_TX_PULSE
] = 7,
515 [IRQ_DA8XX_C1_MISC_PULSE
] = 7,
516 [IRQ_DA8XX_MEMERR
] = 7,
517 [IRQ_DA8XX_GPIO0
] = 7,
518 [IRQ_DA8XX_GPIO1
] = 7,
519 [IRQ_DA8XX_GPIO2
] = 7,
520 [IRQ_DA8XX_GPIO3
] = 7,
521 [IRQ_DA8XX_GPIO4
] = 7,
522 [IRQ_DA8XX_GPIO5
] = 7,
523 [IRQ_DA8XX_GPIO6
] = 7,
524 [IRQ_DA8XX_GPIO7
] = 7,
525 [IRQ_DA8XX_GPIO8
] = 7,
526 [IRQ_DA8XX_I2CINT1
] = 7,
527 [IRQ_DA8XX_LCDINT
] = 7,
528 [IRQ_DA8XX_UARTINT1
] = 7,
529 [IRQ_DA8XX_MCASPINT
] = 7,
530 [IRQ_DA8XX_ALLINT1
] = 7,
531 [IRQ_DA8XX_SPINT1
] = 7,
532 [IRQ_DA8XX_UHPI_INT1
] = 7,
533 [IRQ_DA8XX_USB_INT
] = 7,
534 [IRQ_DA8XX_IRQN
] = 7,
535 [IRQ_DA8XX_RWAKEUP
] = 7,
536 [IRQ_DA8XX_UARTINT2
] = 7,
537 [IRQ_DA8XX_DFTSSINT
] = 7,
538 [IRQ_DA8XX_EHRPWM0
] = 7,
539 [IRQ_DA8XX_EHRPWM0TZ
] = 7,
540 [IRQ_DA8XX_EHRPWM1
] = 7,
541 [IRQ_DA8XX_EHRPWM1TZ
] = 7,
542 [IRQ_DA850_SATAINT
] = 7,
543 [IRQ_DA850_TINT12_2
] = 7,
544 [IRQ_DA850_TINT34_2
] = 7,
545 [IRQ_DA850_TINTALL_2
] = 7,
546 [IRQ_DA8XX_ECAP0
] = 7,
547 [IRQ_DA8XX_ECAP1
] = 7,
548 [IRQ_DA8XX_ECAP2
] = 7,
549 [IRQ_DA850_MMCSDINT0_1
] = 7,
550 [IRQ_DA850_MMCSDINT1_1
] = 7,
551 [IRQ_DA850_T12CMPINT0_2
] = 7,
552 [IRQ_DA850_T12CMPINT1_2
] = 7,
553 [IRQ_DA850_T12CMPINT2_2
] = 7,
554 [IRQ_DA850_T12CMPINT3_2
] = 7,
555 [IRQ_DA850_T12CMPINT4_2
] = 7,
556 [IRQ_DA850_T12CMPINT5_2
] = 7,
557 [IRQ_DA850_T12CMPINT6_2
] = 7,
558 [IRQ_DA850_T12CMPINT7_2
] = 7,
559 [IRQ_DA850_T12CMPINT0_3
] = 7,
560 [IRQ_DA850_T12CMPINT1_3
] = 7,
561 [IRQ_DA850_T12CMPINT2_3
] = 7,
562 [IRQ_DA850_T12CMPINT3_3
] = 7,
563 [IRQ_DA850_T12CMPINT4_3
] = 7,
564 [IRQ_DA850_T12CMPINT5_3
] = 7,
565 [IRQ_DA850_T12CMPINT6_3
] = 7,
566 [IRQ_DA850_T12CMPINT7_3
] = 7,
567 [IRQ_DA850_RPIINT
] = 7,
568 [IRQ_DA850_VPIFINT
] = 7,
569 [IRQ_DA850_CCINT1
] = 7,
570 [IRQ_DA850_CCERRINT1
] = 7,
571 [IRQ_DA850_TCERRINT2
] = 7,
572 [IRQ_DA850_TINT12_3
] = 7,
573 [IRQ_DA850_TINT34_3
] = 7,
574 [IRQ_DA850_TINTALL_3
] = 7,
575 [IRQ_DA850_MCBSP0RINT
] = 7,
576 [IRQ_DA850_MCBSP0XINT
] = 7,
577 [IRQ_DA850_MCBSP1RINT
] = 7,
578 [IRQ_DA850_MCBSP1XINT
] = 7,
579 [IRQ_DA8XX_ARMCLKSTOPREQ
] = 7,
582 static struct map_desc da850_io_desc
[] = {
585 .pfn
= __phys_to_pfn(IO_PHYS
),
590 .virtual = DA8XX_CP_INTC_VIRT
,
591 .pfn
= __phys_to_pfn(DA8XX_CP_INTC_BASE
),
592 .length
= DA8XX_CP_INTC_SIZE
,
597 static void __iomem
*da850_psc_bases
[] = {
598 IO_ADDRESS(DA8XX_PSC0_BASE
),
599 IO_ADDRESS(DA8XX_PSC1_BASE
),
602 /* Contents of JTAG ID register used to identify exact cpu type */
603 static struct davinci_id da850_ids
[] = {
607 .manufacturer
= 0x017, /* 0x02f >> 1 */
608 .cpu_id
= DAVINCI_CPU_ID_DA850
,
609 .name
= "da850/omap-l138",
613 static struct davinci_timer_instance da850_timer_instance
[4] = {
615 .base
= IO_ADDRESS(DA8XX_TIMER64P0_BASE
),
616 .bottom_irq
= IRQ_DA8XX_TINT12_0
,
617 .top_irq
= IRQ_DA8XX_TINT34_0
,
620 .base
= IO_ADDRESS(DA8XX_TIMER64P1_BASE
),
621 .bottom_irq
= IRQ_DA8XX_TINT12_1
,
622 .top_irq
= IRQ_DA8XX_TINT34_1
,
625 .base
= IO_ADDRESS(DA850_TIMER64P2_BASE
),
626 .bottom_irq
= IRQ_DA850_TINT12_2
,
627 .top_irq
= IRQ_DA850_TINT34_2
,
630 .base
= IO_ADDRESS(DA850_TIMER64P3_BASE
),
631 .bottom_irq
= IRQ_DA850_TINT12_3
,
632 .top_irq
= IRQ_DA850_TINT34_3
,
637 * T0_BOT: Timer 0, bottom : Used for clock_event
638 * T0_TOP: Timer 0, top : Used for clocksource
639 * T1_BOT, T1_TOP: Timer 1, bottom & top: Used for watchdog timer
641 static struct davinci_timer_info da850_timer_info
= {
642 .timers
= da850_timer_instance
,
643 .clockevent_id
= T0_BOT
,
644 .clocksource_id
= T0_TOP
,
647 static struct davinci_soc_info davinci_soc_info_da850
= {
648 .io_desc
= da850_io_desc
,
649 .io_desc_num
= ARRAY_SIZE(da850_io_desc
),
650 .jtag_id_base
= IO_ADDRESS(DA8XX_JTAG_ID_REG
),
652 .ids_num
= ARRAY_SIZE(da850_ids
),
653 .cpu_clks
= da850_clks
,
654 .psc_bases
= da850_psc_bases
,
655 .psc_bases_num
= ARRAY_SIZE(da850_psc_bases
),
656 .pinmux_base
= IO_ADDRESS(DA8XX_BOOT_CFG_BASE
+ 0x120),
657 .pinmux_pins
= da850_pins
,
658 .pinmux_pins_num
= ARRAY_SIZE(da850_pins
),
659 .intc_base
= (void __iomem
*)DA8XX_CP_INTC_VIRT
,
660 .intc_type
= DAVINCI_INTC_TYPE_CP_INTC
,
661 .intc_irq_prios
= da850_default_priorities
,
662 .intc_irq_num
= DA850_N_CP_INTC_IRQ
,
663 .timer_info
= &da850_timer_info
,
664 .gpio_base
= IO_ADDRESS(DA8XX_GPIO_BASE
),
666 .gpio_irq
= IRQ_DA8XX_GPIO0
,
667 .serial_dev
= &da8xx_serial_device
,
668 .emac_pdata
= &da8xx_emac_pdata
,
671 void __init
da850_init(void)
673 davinci_common_init(&davinci_soc_info_da850
);