19 #ifndef _PRU_CAN_API_H_
20 #define _PRU_CAN_API_H_
28 #include <linux/types.h>
30 typedef unsigned int u32;
31 typedef unsigned short u16;
32 typedef unsigned char u8;
33 typedef unsigned char bool;
40 #define CAN_BIT_TIMINGS (0x273)
43 #define TIMER_CLK_FREQ 132000000
45 #define TIMER_SETUP_DELAY 14
46 #define GPIO_SETUP_DELAY 150
49 #define DELAY_LOOP_LENGTH 2
53 #define PRU_CAN_PRU1_BASE_ADDRESS 0x2000
55 #define PRU_CAN_TX_GLOBAL_CONTROL_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS)
56 #define PRU_CAN_TX_GLOBAL_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x04)
57 #define PRU_CAN_TX_INTERRUPT_MASK_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x08)
58 #define PRU_CAN_TX_INTERRUPT_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x0C)
59 #define PRU_CAN_TX_MAILBOX0_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x10)
60 #define PRU_CAN_TX_MAILBOX1_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x14)
61 #define PRU_CAN_TX_MAILBOX2_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x18)
62 #define PRU_CAN_TX_MAILBOX3_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x1C)
63 #define PRU_CAN_TX_MAILBOX4_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x20)
64 #define PRU_CAN_TX_MAILBOX5_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x24)
65 #define PRU_CAN_TX_MAILBOX6_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x28)
66 #define PRU_CAN_TX_MAILBOX7_STATUS_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x2C)
67 #define PRU_CAN_TX_ERROR_COUNTER_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x30)
68 #define PRU_CAN_TX_TIMING_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x34)
69 #define PRU_CAN_TX_CLOCK_BRP_REGISTER (PRU_CAN_PRU1_BASE_ADDRESS + 0x38)
71 #define PRU_CAN_TX_MAILBOX0 (PRU_CAN_PRU1_BASE_ADDRESS + 0x40)
72 #define PRU_CAN_TX_MAILBOX1 (PRU_CAN_PRU1_BASE_ADDRESS + 0x50)
73 #define PRU_CAN_TX_MAILBOX2 (PRU_CAN_PRU1_BASE_ADDRESS + 0x60)
74 #define PRU_CAN_TX_MAILBOX3 (PRU_CAN_PRU1_BASE_ADDRESS + 0x70)
75 #define PRU_CAN_TX_MAILBOX4 (PRU_CAN_PRU1_BASE_ADDRESS + 0x80)
76 #define PRU_CAN_TX_MAILBOX5 (PRU_CAN_PRU1_BASE_ADDRESS + 0x90)
77 #define PRU_CAN_TX_MAILBOX6 (PRU_CAN_PRU1_BASE_ADDRESS + 0xA0)
78 #define PRU_CAN_TX_MAILBOX7 (PRU_CAN_PRU1_BASE_ADDRESS + 0xB0)
80 #define PRU_CAN_TIMING_VAL_TX (PRU_CAN_PRU1_BASE_ADDRESS + 0xC0)
81 #define PRU_CAN_TIMING_VAL_TX_SJW (PRU_CAN_PRU1_BASE_ADDRESS + 0xC4)
82 #define PRU_CAN_TRANSMIT_FRAME (PRU_CAN_PRU1_BASE_ADDRESS + 0xE0)
86 #define PRU_CAN_PRU0_BASE_ADDRESS 0
88 #define PRU_CAN_RX_GLOBAL_CONTROL_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS)
89 #define PRU_CAN_RX_GLOBAL_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x04)
90 #define PRU_CAN_RX_INTERRUPT_MASK_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x08)
91 #define PRU_CAN_RX_INTERRUPT_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x0C)
92 #define PRU_CAN_RX_MAILBOX0_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x10)
93 #define PRU_CAN_RX_MAILBOX1_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x14)
94 #define PRU_CAN_RX_MAILBOX2_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x18)
95 #define PRU_CAN_RX_MAILBOX3_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x1C)
96 #define PRU_CAN_RX_MAILBOX4_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x20)
97 #define PRU_CAN_RX_MAILBOX5_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x24)
98 #define PRU_CAN_RX_MAILBOX6_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x28)
99 #define PRU_CAN_RX_MAILBOX7_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x2C)
100 #define PRU_CAN_RX_MAILBOX8_STATUS_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x30)
101 #define PRU_CAN_RX_ERROR_COUNTER_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x34)
102 #define PRU_CAN_RX_TIMING_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x38)
103 #define PRU_CAN_RX_CLOCK_BRP_REGISTER (PRU_CAN_PRU0_BASE_ADDRESS + 0x3C)
105 #define PRU_CAN_RX_MAILBOX0 (PRU_CAN_PRU0_BASE_ADDRESS + 0x40)
106 #define PRU_CAN_RX_MAILBOX1 (PRU_CAN_PRU0_BASE_ADDRESS + 0x50)
107 #define PRU_CAN_RX_MAILBOX2 (PRU_CAN_PRU0_BASE_ADDRESS + 0x60)
108 #define PRU_CAN_RX_MAILBOX3 (PRU_CAN_PRU0_BASE_ADDRESS + 0x70)
109 #define PRU_CAN_RX_MAILBOX4 (PRU_CAN_PRU0_BASE_ADDRESS + 0x80)
110 #define PRU_CAN_RX_MAILBOX5 (PRU_CAN_PRU0_BASE_ADDRESS + 0x90)
111 #define PRU_CAN_RX_MAILBOX6 (PRU_CAN_PRU0_BASE_ADDRESS + 0xA0)
112 #define PRU_CAN_RX_MAILBOX7 (PRU_CAN_PRU0_BASE_ADDRESS + 0xB0)
113 #define PRU_CAN_RX_MAILBOX8 (PRU_CAN_PRU0_BASE_ADDRESS + 0xC0)
115 #define PRU_CAN_TIMING_VAL_RX (PRU_CAN_PRU0_BASE_ADDRESS + 0xD0)
116 #define PRU_CAN_RECEIVE_FRAME (PRU_CAN_PRU0_BASE_ADDRESS + 0xD4)
117 #define PRU_CAN_ID_MAP (PRU_CAN_PRU0_BASE_ADDRESS + 0xF0)
119 #define PRU_CAN_ERROR_ACTIVE 128
121 #define CAN_ACK_FAILED 0xE
122 #define CAN_ARBTR_FAIL 0xD
123 #define CAN_BIT_ERROR 0xC
124 #define CAN_TRANSMISSION_SUCCESS 0xA
126 #define STD_DATA_FRAME 0x1
127 #define EXTD_DATA_FRAME 0x2
128 #define STD_REMOTE_FRAME 0x3
129 #define EXTD_REMOTE_FRAME 0x4
131 #define PRU_CAN_MAX_SJW 8
132 #define PRU_CAN_MAX_PHSEG1 25
133 #define PRU_CAN_MAX_PHSEG2 25
135 #define CSL_PRUCANCORE_0_REGS 0x7000
136 #define CSL_PRUCANCORE_1_REGS 0x7800
137 #define PRU0_PROG_RAM_START_OFFSET 0x8000
138 #define PRU1_PROG_RAM_START_OFFSET 0xC000
139 #define PRU_CAN_INIT_MAX_TIMEOUT 0xFF
214 #define CSL_FMK(PER_REG_FIELD, val) \
215 (((val) << CSL_##PER_REG_FIELD##_SHIFT) & CSL_##PER_REG_FIELD##_MASK)
218 #define CSL_FEXT(reg, PER_REG_FIELD) \
219 (((reg) & CSL_##PER_REG_FIELD##_MASK) >> CSL_##PER_REG_FIELD##_SHIFT)
222 #define CSL_FINS(reg, PER_REG_FIELD, val) \
223 ((reg) = ((reg) & ~CSL_##PER_REG_FIELD##_MASK) \
224 | CSL_FMK(PER_REG_FIELD, val))
229 #define CSL_FMKT(PER_REG_FIELD, TOKEN) \
230 CSL_FMK(PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)
233 #define CSL_FINST(reg, PER_REG_FIELD, TOKEN) \
234 CSL_FINS((reg), PER_REG_FIELD, CSL_##PER_REG_FIELD##_##TOKEN)
239 #define CSL_FMKR(msb, lsb, val) \
240 (((val) & ((1 << ((msb) - (lsb) + 1)) - 1)) << (lsb))
243 #define CSL_FEXTR(reg, msb, lsb) \
244 (((reg) >> (lsb)) & ((1 << ((msb) - (lsb) + 1)) - 1))
247 #define CSL_FINSR(reg, msb, lsb, val) \
248 ((reg) = ((reg) &~ (((1 << ((msb) - (lsb) + 1)) - 1) << (lsb))) \
249 | CSL_FMKR(msb, lsb, val))
345 #define CSL_PRUCORE_CONTROL_PCRESETVAL_MASK (0xFFFF0000u)
346 #define CSL_PRUCORE_CONTROL_PCRESETVAL_SHIFT (0x00000010u)
347 #define CSL_PRUCORE_CONTROL_PCRESETVAL_RESETVAL (0x00000000u)
349 #define CSL_PRUCORE_CONTROL_RUNSTATE_MASK (0x00008000u)
350 #define CSL_PRUCORE_CONTROL_RUNSTATE_SHIFT (0x0000000Fu)
351 #define CSL_PRUCORE_CONTROL_RUNSTATE_RESETVAL (0x00000000u)
353 #define CSL_PRUCORE_CONTROL_RUNSTATE_HALT (0x00000000u)
354 #define CSL_PRUCORE_CONTROL_RUNSTATE_RUN (0x00000001u)
356 #define CSL_PRUCORE_CONTROL_SINGLESTEP_MASK (0x00000100u)
357 #define CSL_PRUCORE_CONTROL_SINGLESTEP_SHIFT (0x00000008u)
358 #define CSL_PRUCORE_CONTROL_SINGLESTEP_RESETVAL (0x00000000u)
360 #define CSL_PRUCORE_CONTROL_SINGLESTEP_FREERUN (0x00000000u)
361 #define CSL_PRUCORE_CONTROL_SINGLESTEP_SINGLE (0x00000001u)
363 #define CSL_PRUCORE_CONTROL_COUNTENABLE_MASK (0x00000008u)
364 #define CSL_PRUCORE_CONTROL_COUNTENABLE_SHIFT (0x00000003u)
365 #define CSL_PRUCORE_CONTROL_COUNTENABLE_RESETVAL (0x00000000u)
367 #define CSL_PRUCORE_CONTROL_COUNTENABLE_DISABLE (0x00000000u)
368 #define CSL_PRUCORE_CONTROL_COUNTENABLE_ENABLE (0x00000001u)
370 #define CSL_PRUCORE_CONTROL_SLEEPING_MASK (0x00000004u)
371 #define CSL_PRUCORE_CONTROL_SLEEPING_SHIFT (0x00000002u)
372 #define CSL_PRUCORE_CONTROL_SLEEPING_RESETVAL (0x00000000u)
374 #define CSL_PRUCORE_CONTROL_SLEEPING_NOTASLEEP (0x00000000u)
375 #define CSL_PRUCORE_CONTROL_SLEEPING_ASLEEP (0x00000001u)
377 #define CSL_PRUCORE_CONTROL_ENABLE_MASK (0x00000002u)
378 #define CSL_PRUCORE_CONTROL_ENABLE_SHIFT (0x00000001u)
379 #define CSL_PRUCORE_CONTROL_ENABLE_RESETVAL (0x00000000u)
381 #define CSL_PRUCORE_CONTROL_ENABLE_DISABLE (0x00000000u)
382 #define CSL_PRUCORE_CONTROL_ENABLE_ENABLE (0x00000001u)
384 #define CSL_PRUCORE_CONTROL_SOFTRESET_MASK (0x00000001u)
385 #define CSL_PRUCORE_CONTROL_SOFTRESET_SHIFT (0x00000000u)
386 #define CSL_PRUCORE_CONTROL_SOFTRESET_RESETVAL (0x00000000u)
388 #define CSL_PRUCORE_CONTROL_SOFTRESET_RESET (0x00000000u)
389 #define CSL_PRUCORE_CONTROL_SOFTRESET_OUT_OF_RESET (0x00000001u)
391 #define CSL_PRUCORE_CONTROL_RESETVAL (0x00000000u)
395 #define CSL_PRUCORE_STATUS_PCOUNTER_MASK (0x0000FFFFu)
396 #define CSL_PRUCORE_STATUS_PCOUNTER_SHIFT (0x00000000u)
397 #define CSL_PRUCORE_STATUS_PCOUNTER_RESETVAL (0x00000000u)
399 #define CSL_PRUCORE_STATUS_RESETVAL (0x00000000u)
403 #define CSL_PRUCORE_WAKEUP_BITWISEENABLES_MASK (0xFFFFFFFFu)
404 #define CSL_PRUCORE_WAKEUP_BITWISEENABLES_SHIFT (0x00000000u)
405 #define CSL_PRUCORE_WAKEUP_BITWISEENABLES_RESETVAL (0x00000000u)
407 #define CSL_PRUCORE_WAKEUP_RESETVAL (0x00000000u)
411 #define CSL_PRUCORE_CYCLECNT_CYCLECOUNT_MASK (0xFFFFFFFFu)
412 #define CSL_PRUCORE_CYCLECNT_CYCLECOUNT_SHIFT (0x00000000u)
413 #define CSL_PRUCORE_CYCLECNT_CYCLECOUNT_RESETVAL (0x00000000u)
415 #define CSL_PRUCORE_CYCLECNT_RESETVAL (0x00000000u)
419 #define CSL_PRUCORE_STALLCNT_STALLCOUNT_MASK (0xFFFFFFFFu)
420 #define CSL_PRUCORE_STALLCNT_STALLCOUNT_SHIFT (0x00000000u)
421 #define CSL_PRUCORE_STALLCNT_STALLCOUNT_RESETVAL (0x00000000u)
423 #define CSL_PRUCORE_STALLCNT_RESETVAL (0x00000000u)
427 #define CSL_PRUCORE_CONTABBLKIDX0_C25_MASK (0x000F0000u)
428 #define CSL_PRUCORE_CONTABBLKIDX0_C25_SHIFT (0x00000010u)
429 #define CSL_PRUCORE_CONTABBLKIDX0_C25_RESETVAL (0x00000000u)
431 #define CSL_PRUCORE_CONTABBLKIDX0_C24_MASK (0x0000000Fu)
432 #define CSL_PRUCORE_CONTABBLKIDX0_C24_SHIFT (0x00000000u)
433 #define CSL_PRUCORE_CONTABBLKIDX0_C24_RESETVAL (0x00000000u)
435 #define CSL_PRUCORE_CONTABBLKIDX0_RESETVAL (0x00000000u)
439 #define CSL_PRUCORE_CONTABBLKIDX1_C27_MASK (0x000F0000u)
440 #define CSL_PRUCORE_CONTABBLKIDX1_C27_SHIFT (0x00000010u)
441 #define CSL_PRUCORE_CONTABBLKIDX1_C27_RESETVAL (0x00000000u)
443 #define CSL_PRUCORE_CONTABBLKIDX1_C26_MASK (0x0000000Fu)
444 #define CSL_PRUCORE_CONTABBLKIDX1_C26_SHIFT (0x00000000u)
445 #define CSL_PRUCORE_CONTABBLKIDX1_C26_RESETVAL (0x00000000u)
447 #define CSL_PRUCORE_CONTABBLKIDX1_RESETVAL (0x00000000u)
451 #define CSL_PRUCORE_CONTABPROPTR0_C29_MASK (0xFFFF0000u)
452 #define CSL_PRUCORE_CONTABPROPTR0_C29_SHIFT (0x00000010u)
453 #define CSL_PRUCORE_CONTABPROPTR0_C29_RESETVAL (0x00000000u)
455 #define CSL_PRUCORE_CONTABPROPTR0_C28_MASK (0x0000FFFFu)
456 #define CSL_PRUCORE_CONTABPROPTR0_C28_SHIFT (0x00000000u)
457 #define CSL_PRUCORE_CONTABPROPTR0_C28_RESETVAL (0x00000000u)
459 #define CSL_PRUCORE_CONTABPROPTR0_RESETVAL (0x00000000u)
463 #define CSL_PRUCORE_CONTABPROPTR1_C31_MASK (0xFFFF0000u)
464 #define CSL_PRUCORE_CONTABPROPTR1_C31_SHIFT (0x00000010u)
465 #define CSL_PRUCORE_CONTABPROPTR1_C31_RESETVAL (0x00000000u)
467 #define CSL_PRUCORE_CONTABPROPTR1_C30_MASK (0x0000FFFFu)
468 #define CSL_PRUCORE_CONTABPROPTR1_C30_SHIFT (0x00000000u)
469 #define CSL_PRUCORE_CONTABPROPTR1_C30_RESETVAL (0x00000000u)
471 #define CSL_PRUCORE_CONTABPROPTR1_RESETVAL (0x00000000u)
475 #define CSL_PRUCORE_INTGPR0_REG_MASK (0xFFFFFFFFu)
476 #define CSL_PRUCORE_INTGPR0_REG_SHIFT (0x00000000u)
477 #define CSL_PRUCORE_INTGPR0_REG_RESETVAL (0x00000000u)
479 #define CSL_PRUCORE_INTGPR0_RESETVAL (0x00000000u)
483 #define CSL_PRUCORE_INTGPR1_REG_MASK (0xFFFFFFFFu)
484 #define CSL_PRUCORE_INTGPR1_REG_SHIFT (0x00000000u)
485 #define CSL_PRUCORE_INTGPR1_REG_RESETVAL (0x00000000u)
487 #define CSL_PRUCORE_INTGPR1_RESETVAL (0x00000000u)
491 #define CSL_PRUCORE_INTGPR2_REG_MASK (0xFFFFFFFFu)
492 #define CSL_PRUCORE_INTGPR2_REG_SHIFT (0x00000000u)
493 #define CSL_PRUCORE_INTGPR2_REG_RESETVAL (0x00000000u)
495 #define CSL_PRUCORE_INTGPR2_RESETVAL (0x00000000u)
499 #define CSL_PRUCORE_INTGPR3_REG_MASK (0xFFFFFFFFu)
500 #define CSL_PRUCORE_INTGPR3_REG_SHIFT (0x00000000u)
501 #define CSL_PRUCORE_INTGPR3_REG_RESETVAL (0x00000000u)
503 #define CSL_PRUCORE_INTGPR3_RESETVAL (0x00000000u)
507 #define CSL_PRUCORE_INTGPR4_REG_MASK (0xFFFFFFFFu)
508 #define CSL_PRUCORE_INTGPR4_REG_SHIFT (0x00000000u)
509 #define CSL_PRUCORE_INTGPR4_REG_RESETVAL (0x00000000u)
511 #define CSL_PRUCORE_INTGPR4_RESETVAL (0x00000000u)
515 #define CSL_PRUCORE_INTGPR5_REG_MASK (0xFFFFFFFFu)
516 #define CSL_PRUCORE_INTGPR5_REG_SHIFT (0x00000000u)
517 #define CSL_PRUCORE_INTGPR5_REG_RESETVAL (0x00000000u)
519 #define CSL_PRUCORE_INTGPR5_RESETVAL (0x00000000u)
523 #define CSL_PRUCORE_INTGPR6_REG_MASK (0xFFFFFFFFu)
524 #define CSL_PRUCORE_INTGPR6_REG_SHIFT (0x00000000u)
525 #define CSL_PRUCORE_INTGPR6_REG_RESETVAL (0x00000000u)
527 #define CSL_PRUCORE_INTGPR6_RESETVAL (0x00000000u)
531 #define CSL_PRUCORE_INTGPR7_REG_MASK (0xFFFFFFFFu)
532 #define CSL_PRUCORE_INTGPR7_REG_SHIFT (0x00000000u)
533 #define CSL_PRUCORE_INTGPR7_REG_RESETVAL (0x00000000u)
535 #define CSL_PRUCORE_INTGPR7_RESETVAL (0x00000000u)
539 #define CSL_PRUCORE_INTGPR8_REG_MASK (0xFFFFFFFFu)
540 #define CSL_PRUCORE_INTGPR8_REG_SHIFT (0x00000000u)
541 #define CSL_PRUCORE_INTGPR8_REG_RESETVAL (0x00000000u)
543 #define CSL_PRUCORE_INTGPR8_RESETVAL (0x00000000u)
547 #define CSL_PRUCORE_INTGPR9_REG_MASK (0xFFFFFFFFu)
548 #define CSL_PRUCORE_INTGPR9_REG_SHIFT (0x00000000u)
549 #define CSL_PRUCORE_INTGPR9_REG_RESETVAL (0x00000000u)
551 #define CSL_PRUCORE_INTGPR9_RESETVAL (0x00000000u)
555 #define CSL_PRUCORE_INTGPR10_REG_MASK (0xFFFFFFFFu)
556 #define CSL_PRUCORE_INTGPR10_REG_SHIFT (0x00000000u)
557 #define CSL_PRUCORE_INTGPR10_REG_RESETVAL (0x00000000u)
559 #define CSL_PRUCORE_INTGPR10_RESETVAL (0x00000000u)
563 #define CSL_PRUCORE_INTGPR11_REG_MASK (0xFFFFFFFFu)
564 #define CSL_PRUCORE_INTGPR11_REG_SHIFT (0x00000000u)
565 #define CSL_PRUCORE_INTGPR11_REG_RESETVAL (0x00000000u)
567 #define CSL_PRUCORE_INTGPR11_RESETVAL (0x00000000u)
571 #define CSL_PRUCORE_INTGPR12_REG_MASK (0xFFFFFFFFu)
572 #define CSL_PRUCORE_INTGPR12_REG_SHIFT (0x00000000u)
573 #define CSL_PRUCORE_INTGPR12_REG_RESETVAL (0x00000000u)
575 #define CSL_PRUCORE_INTGPR12_RESETVAL (0x00000000u)
579 #define CSL_PRUCORE_INTGPR13_REG_MASK (0xFFFFFFFFu)
580 #define CSL_PRUCORE_INTGPR13_REG_SHIFT (0x00000000u)
581 #define CSL_PRUCORE_INTGPR13_REG_RESETVAL (0x00000000u)
583 #define CSL_PRUCORE_INTGPR13_RESETVAL (0x00000000u)
587 #define CSL_PRUCORE_INTGPR14_REG_MASK (0xFFFFFFFFu)
588 #define CSL_PRUCORE_INTGPR14_REG_SHIFT (0x00000000u)
589 #define CSL_PRUCORE_INTGPR14_REG_RESETVAL (0x00000000u)
591 #define CSL_PRUCORE_INTGPR14_RESETVAL (0x00000000u)
595 #define CSL_PRUCORE_INTGPR15_REG_MASK (0xFFFFFFFFu)
596 #define CSL_PRUCORE_INTGPR15_REG_SHIFT (0x00000000u)
597 #define CSL_PRUCORE_INTGPR15_REG_RESETVAL (0x00000000u)
599 #define CSL_PRUCORE_INTGPR15_RESETVAL (0x00000000u)
603 #define CSL_PRUCORE_INTGPR16_REG_MASK (0xFFFFFFFFu)
604 #define CSL_PRUCORE_INTGPR16_REG_SHIFT (0x00000000u)
605 #define CSL_PRUCORE_INTGPR16_REG_RESETVAL (0x00000000u)
607 #define CSL_PRUCORE_INTGPR16_RESETVAL (0x00000000u)
611 #define CSL_PRUCORE_INTGPR17_REG_MASK (0xFFFFFFFFu)
612 #define CSL_PRUCORE_INTGPR17_REG_SHIFT (0x00000000u)
613 #define CSL_PRUCORE_INTGPR17_REG_RESETVAL (0x00000000u)
615 #define CSL_PRUCORE_INTGPR17_RESETVAL (0x00000000u)
619 #define CSL_PRUCORE_INTGPR18_REG_MASK (0xFFFFFFFFu)
620 #define CSL_PRUCORE_INTGPR18_REG_SHIFT (0x00000000u)
621 #define CSL_PRUCORE_INTGPR18_REG_RESETVAL (0x00000000u)
623 #define CSL_PRUCORE_INTGPR18_RESETVAL (0x00000000u)
627 #define CSL_PRUCORE_INTGPR19_REG_MASK (0xFFFFFFFFu)
628 #define CSL_PRUCORE_INTGPR19_REG_SHIFT (0x00000000u)
629 #define CSL_PRUCORE_INTGPR19_REG_RESETVAL (0x00000000u)
631 #define CSL_PRUCORE_INTGPR19_RESETVAL (0x00000000u)
635 #define CSL_PRUCORE_INTGPR20_REG_MASK (0xFFFFFFFFu)
636 #define CSL_PRUCORE_INTGPR20_REG_SHIFT (0x00000000u)
637 #define CSL_PRUCORE_INTGPR20_REG_RESETVAL (0x00000000u)
639 #define CSL_PRUCORE_INTGPR20_RESETVAL (0x00000000u)
643 #define CSL_PRUCORE_INTGPR21_REG_MASK (0xFFFFFFFFu)
644 #define CSL_PRUCORE_INTGPR21_REG_SHIFT (0x00000000u)
645 #define CSL_PRUCORE_INTGPR21_REG_RESETVAL (0x00000000u)
647 #define CSL_PRUCORE_INTGPR21_RESETVAL (0x00000000u)
651 #define CSL_PRUCORE_INTGPR22_REG_MASK (0xFFFFFFFFu)
652 #define CSL_PRUCORE_INTGPR22_REG_SHIFT (0x00000000u)
653 #define CSL_PRUCORE_INTGPR22_REG_RESETVAL (0x00000000u)
655 #define CSL_PRUCORE_INTGPR22_RESETVAL (0x00000000u)
659 #define CSL_PRUCORE_INTGPR23_REG_MASK (0xFFFFFFFFu)
660 #define CSL_PRUCORE_INTGPR23_REG_SHIFT (0x00000000u)
661 #define CSL_PRUCORE_INTGPR23_REG_RESETVAL (0x00000000u)
663 #define CSL_PRUCORE_INTGPR23_RESETVAL (0x00000000u)
667 #define CSL_PRUCORE_INTGPR24_REG_MASK (0xFFFFFFFFu)
668 #define CSL_PRUCORE_INTGPR24_REG_SHIFT (0x00000000u)
669 #define CSL_PRUCORE_INTGPR24_REG_RESETVAL (0x00000000u)
671 #define CSL_PRUCORE_INTGPR24_RESETVAL (0x00000000u)
675 #define CSL_PRUCORE_INTGPR25_REG_MASK (0xFFFFFFFFu)
676 #define CSL_PRUCORE_INTGPR25_REG_SHIFT (0x00000000u)
677 #define CSL_PRUCORE_INTGPR25_REG_RESETVAL (0x00000000u)
679 #define CSL_PRUCORE_INTGPR25_RESETVAL (0x00000000u)
683 #define CSL_PRUCORE_INTGPR26_REG_MASK (0xFFFFFFFFu)
684 #define CSL_PRUCORE_INTGPR26_REG_SHIFT (0x00000000u)
685 #define CSL_PRUCORE_INTGPR26_REG_RESETVAL (0x00000000u)
687 #define CSL_PRUCORE_INTGPR26_RESETVAL (0x00000000u)
691 #define CSL_PRUCORE_INTGPR27_REG_MASK (0xFFFFFFFFu)
692 #define CSL_PRUCORE_INTGPR27_REG_SHIFT (0x00000000u)
693 #define CSL_PRUCORE_INTGPR27_REG_RESETVAL (0x00000000u)
695 #define CSL_PRUCORE_INTGPR27_RESETVAL (0x00000000u)
699 #define CSL_PRUCORE_INTGPR28_REG_MASK (0xFFFFFFFFu)
700 #define CSL_PRUCORE_INTGPR28_REG_SHIFT (0x00000000u)
701 #define CSL_PRUCORE_INTGPR28_REG_RESETVAL (0x00000000u)
703 #define CSL_PRUCORE_INTGPR28_RESETVAL (0x00000000u)
707 #define CSL_PRUCORE_INTGPR29_REG_MASK (0xFFFFFFFFu)
708 #define CSL_PRUCORE_INTGPR29_REG_SHIFT (0x00000000u)
709 #define CSL_PRUCORE_INTGPR29_REG_RESETVAL (0x00000000u)
711 #define CSL_PRUCORE_INTGPR29_RESETVAL (0x00000000u)
715 #define CSL_PRUCORE_INTGPR30_REG_MASK (0xFFFFFFFFu)
716 #define CSL_PRUCORE_INTGPR30_REG_SHIFT (0x00000000u)
717 #define CSL_PRUCORE_INTGPR30_REG_RESETVAL (0x00000000u)
719 #define CSL_PRUCORE_INTGPR30_RESETVAL (0x00000000u)
723 #define CSL_PRUCORE_INTGPR31_REG_MASK (0xFFFFFFFFu)
724 #define CSL_PRUCORE_INTGPR31_REG_SHIFT (0x00000000u)
725 #define CSL_PRUCORE_INTGPR31_REG_RESETVAL (0x00000000u)
727 #define CSL_PRUCORE_INTGPR31_RESETVAL (0x00000000u)
731 #define CSL_PRUCORE_INTCTER0_ENTRY_MASK (0xFFFFFFFFu)
732 #define CSL_PRUCORE_INTCTER0_ENTRY_SHIFT (0x00000000u)
733 #define CSL_PRUCORE_INTCTER0_ENTRY_RESETVAL (0x00000000u)
735 #define CSL_PRUCORE_INTCTER0_RESETVAL (0x00000000u)
739 #define CSL_PRUCORE_INTCTER1_ENTRY_MASK (0xFFFFFFFFu)
740 #define CSL_PRUCORE_INTCTER1_ENTRY_SHIFT (0x00000000u)
741 #define CSL_PRUCORE_INTCTER1_ENTRY_RESETVAL (0x00000000u)
743 #define CSL_PRUCORE_INTCTER1_RESETVAL (0x00000000u)
747 #define CSL_PRUCORE_INTCTER2_ENTRY_MASK (0xFFFFFFFFu)
748 #define CSL_PRUCORE_INTCTER2_ENTRY_SHIFT (0x00000000u)
749 #define CSL_PRUCORE_INTCTER2_ENTRY_RESETVAL (0x00000000u)
751 #define CSL_PRUCORE_INTCTER2_RESETVAL (0x00000000u)
755 #define CSL_PRUCORE_INTCTER3_ENTRY_MASK (0xFFFFFFFFu)
756 #define CSL_PRUCORE_INTCTER3_ENTRY_SHIFT (0x00000000u)
757 #define CSL_PRUCORE_INTCTER3_ENTRY_RESETVAL (0x00000000u)
759 #define CSL_PRUCORE_INTCTER3_RESETVAL (0x00000000u)
763 #define CSL_PRUCORE_INTCTER4_ENTRY_MASK (0xFFFFFFFFu)
764 #define CSL_PRUCORE_INTCTER4_ENTRY_SHIFT (0x00000000u)
765 #define CSL_PRUCORE_INTCTER4_ENTRY_RESETVAL (0x00000000u)
767 #define CSL_PRUCORE_INTCTER4_RESETVAL (0x00000000u)
771 #define CSL_PRUCORE_INTCTER5_ENTRY_MASK (0xFFFFFFFFu)
772 #define CSL_PRUCORE_INTCTER5_ENTRY_SHIFT (0x00000000u)
773 #define CSL_PRUCORE_INTCTER5_ENTRY_RESETVAL (0x00000000u)
775 #define CSL_PRUCORE_INTCTER5_RESETVAL (0x00000000u)
779 #define CSL_PRUCORE_INTCTER6_ENTRY_MASK (0xFFFFFFFFu)
780 #define CSL_PRUCORE_INTCTER6_ENTRY_SHIFT (0x00000000u)
781 #define CSL_PRUCORE_INTCTER6_ENTRY_RESETVAL (0x00000000u)
783 #define CSL_PRUCORE_INTCTER6_RESETVAL (0x00000000u)
787 #define CSL_PRUCORE_INTCTER7_ENTRY_MASK (0xFFFFFFFFu)
788 #define CSL_PRUCORE_INTCTER7_ENTRY_SHIFT (0x00000000u)
789 #define CSL_PRUCORE_INTCTER7_ENTRY_RESETVAL (0x00000000u)
791 #define CSL_PRUCORE_INTCTER7_RESETVAL (0x00000000u)
795 #define CSL_PRUCORE_INTCTER8_ENTRY_MASK (0xFFFFFFFFu)
796 #define CSL_PRUCORE_INTCTER8_ENTRY_SHIFT (0x00000000u)
797 #define CSL_PRUCORE_INTCTER8_ENTRY_RESETVAL (0x00000000u)
799 #define CSL_PRUCORE_INTCTER8_RESETVAL (0x00000000u)
803 #define CSL_PRUCORE_INTCTER9_ENTRY_MASK (0xFFFFFFFFu)
804 #define CSL_PRUCORE_INTCTER9_ENTRY_SHIFT (0x00000000u)
805 #define CSL_PRUCORE_INTCTER9_ENTRY_RESETVAL (0x00000000u)
807 #define CSL_PRUCORE_INTCTER9_RESETVAL (0x00000000u)
811 #define CSL_PRUCORE_INTCTER10_ENTRY_MASK (0xFFFFFFFFu)
812 #define CSL_PRUCORE_INTCTER10_ENTRY_SHIFT (0x00000000u)
813 #define CSL_PRUCORE_INTCTER10_ENTRY_RESETVAL (0x00000000u)
815 #define CSL_PRUCORE_INTCTER10_RESETVAL (0x00000000u)
819 #define CSL_PRUCORE_INTCTER11_ENTRY_MASK (0xFFFFFFFFu)
820 #define CSL_PRUCORE_INTCTER11_ENTRY_SHIFT (0x00000000u)
821 #define CSL_PRUCORE_INTCTER11_ENTRY_RESETVAL (0x00000000u)
823 #define CSL_PRUCORE_INTCTER11_RESETVAL (0x00000000u)
827 #define CSL_PRUCORE_INTCTER12_ENTRY_MASK (0xFFFFFFFFu)
828 #define CSL_PRUCORE_INTCTER12_ENTRY_SHIFT (0x00000000u)
829 #define CSL_PRUCORE_INTCTER12_ENTRY_RESETVAL (0x00000000u)
831 #define CSL_PRUCORE_INTCTER12_RESETVAL (0x00000000u)
835 #define CSL_PRUCORE_INTCTER13_ENTRY_MASK (0xFFFFFFFFu)
836 #define CSL_PRUCORE_INTCTER13_ENTRY_SHIFT (0x00000000u)
837 #define CSL_PRUCORE_INTCTER13_ENTRY_RESETVAL (0x00000000u)
839 #define CSL_PRUCORE_INTCTER13_RESETVAL (0x00000000u)
843 #define CSL_PRUCORE_INTCTER14_ENTRY_MASK (0xFFFFFFFFu)
844 #define CSL_PRUCORE_INTCTER14_ENTRY_SHIFT (0x00000000u)
845 #define CSL_PRUCORE_INTCTER14_ENTRY_RESETVAL (0x00000000u)
847 #define CSL_PRUCORE_INTCTER14_RESETVAL (0x00000000u)
851 #define CSL_PRUCORE_INTCTER15_ENTRY_MASK (0xFFFFFFFFu)
852 #define CSL_PRUCORE_INTCTER15_ENTRY_SHIFT (0x00000000u)
853 #define CSL_PRUCORE_INTCTER15_ENTRY_RESETVAL (0x00000000u)
855 #define CSL_PRUCORE_INTCTER15_RESETVAL (0x00000000u)
859 #define CSL_PRUCORE_INTCTER16_ENTRY_MASK (0xFFFFFFFFu)
860 #define CSL_PRUCORE_INTCTER16_ENTRY_SHIFT (0x00000000u)
861 #define CSL_PRUCORE_INTCTER16_ENTRY_RESETVAL (0x00000000u)
863 #define CSL_PRUCORE_INTCTER16_RESETVAL (0x00000000u)
867 #define CSL_PRUCORE_INTCTER17_ENTRY_MASK (0xFFFFFFFFu)
868 #define CSL_PRUCORE_INTCTER17_ENTRY_SHIFT (0x00000000u)
869 #define CSL_PRUCORE_INTCTER17_ENTRY_RESETVAL (0x00000000u)
871 #define CSL_PRUCORE_INTCTER17_RESETVAL (0x00000000u)
875 #define CSL_PRUCORE_INTCTER18_ENTRY_MASK (0xFFFFFFFFu)
876 #define CSL_PRUCORE_INTCTER18_ENTRY_SHIFT (0x00000000u)
877 #define CSL_PRUCORE_INTCTER18_ENTRY_RESETVAL (0x00000000u)
879 #define CSL_PRUCORE_INTCTER18_RESETVAL (0x00000000u)
883 #define CSL_PRUCORE_INTCTER19_ENTRY_MASK (0xFFFFFFFFu)
884 #define CSL_PRUCORE_INTCTER19_ENTRY_SHIFT (0x00000000u)
885 #define CSL_PRUCORE_INTCTER19_ENTRY_RESETVAL (0x00000000u)
887 #define CSL_PRUCORE_INTCTER19_RESETVAL (0x00000000u)
891 #define CSL_PRUCORE_INTCTER20_ENTRY_MASK (0xFFFFFFFFu)
892 #define CSL_PRUCORE_INTCTER20_ENTRY_SHIFT (0x00000000u)
893 #define CSL_PRUCORE_INTCTER20_ENTRY_RESETVAL (0x00000000u)
895 #define CSL_PRUCORE_INTCTER20_RESETVAL (0x00000000u)
899 #define CSL_PRUCORE_INTCTER21_ENTRY_MASK (0xFFFFFFFFu)
900 #define CSL_PRUCORE_INTCTER21_ENTRY_SHIFT (0x00000000u)
901 #define CSL_PRUCORE_INTCTER21_ENTRY_RESETVAL (0x00000000u)
903 #define CSL_PRUCORE_INTCTER21_RESETVAL (0x00000000u)
907 #define CSL_PRUCORE_INTCTER22_ENTRY_MASK (0xFFFFFFFFu)
908 #define CSL_PRUCORE_INTCTER22_ENTRY_SHIFT (0x00000000u)
909 #define CSL_PRUCORE_INTCTER22_ENTRY_RESETVAL (0x00000000u)
911 #define CSL_PRUCORE_INTCTER22_RESETVAL (0x00000000u)
915 #define CSL_PRUCORE_INTCTER23_ENTRY_MASK (0xFFFFFFFFu)
916 #define CSL_PRUCORE_INTCTER23_ENTRY_SHIFT (0x00000000u)
917 #define CSL_PRUCORE_INTCTER23_ENTRY_RESETVAL (0x00000000u)
919 #define CSL_PRUCORE_INTCTER23_RESETVAL (0x00000000u)
923 #define CSL_PRUCORE_INTCTER24_ENTRY_MASK (0xFFFFFFFFu)
924 #define CSL_PRUCORE_INTCTER24_ENTRY_SHIFT (0x00000000u)
925 #define CSL_PRUCORE_INTCTER24_ENTRY_RESETVAL (0x00000000u)
927 #define CSL_PRUCORE_INTCTER24_RESETVAL (0x00000000u)
931 #define CSL_PRUCORE_INTCTER25_ENTRY_MASK (0xFFFFFFFFu)
932 #define CSL_PRUCORE_INTCTER25_ENTRY_SHIFT (0x00000000u)
933 #define CSL_PRUCORE_INTCTER25_ENTRY_RESETVAL (0x00000000u)
935 #define CSL_PRUCORE_INTCTER25_RESETVAL (0x00000000u)
939 #define CSL_PRUCORE_INTCTER26_ENTRY_MASK (0xFFFFFFFFu)
940 #define CSL_PRUCORE_INTCTER26_ENTRY_SHIFT (0x00000000u)
941 #define CSL_PRUCORE_INTCTER26_ENTRY_RESETVAL (0x00000000u)
943 #define CSL_PRUCORE_INTCTER26_RESETVAL (0x00000000u)
947 #define CSL_PRUCORE_INTCTER27_ENTRY_MASK (0xFFFFFFFFu)
948 #define CSL_PRUCORE_INTCTER27_ENTRY_SHIFT (0x00000000u)
949 #define CSL_PRUCORE_INTCTER27_ENTRY_RESETVAL (0x00000000u)
951 #define CSL_PRUCORE_INTCTER27_RESETVAL (0x00000000u)
955 #define CSL_PRUCORE_INTCTER28_ENTRY_MASK (0xFFFFFFFFu)
956 #define CSL_PRUCORE_INTCTER28_ENTRY_SHIFT (0x00000000u)
957 #define CSL_PRUCORE_INTCTER28_ENTRY_RESETVAL (0x00000000u)
959 #define CSL_PRUCORE_INTCTER28_RESETVAL (0x00000000u)
963 #define CSL_PRUCORE_INTCTER29_ENTRY_MASK (0xFFFFFFFFu)
964 #define CSL_PRUCORE_INTCTER29_ENTRY_SHIFT (0x00000000u)
965 #define CSL_PRUCORE_INTCTER29_ENTRY_RESETVAL (0x00000000u)
967 #define CSL_PRUCORE_INTCTER29_RESETVAL (0x00000000u)
971 #define CSL_PRUCORE_INTCTER30_ENTRY_MASK (0xFFFFFFFFu)
972 #define CSL_PRUCORE_INTCTER30_ENTRY_SHIFT (0x00000000u)
973 #define CSL_PRUCORE_INTCTER30_ENTRY_RESETVAL (0x00000000u)
975 #define CSL_PRUCORE_INTCTER30_RESETVAL (0x00000000u)
979 #define CSL_PRUCORE_INTCTER31_ENTRY_MASK (0xFFFFFFFFu)
980 #define CSL_PRUCORE_INTCTER31_ENTRY_SHIFT (0x00000000u)
981 #define CSL_PRUCORE_INTCTER31_ENTRY_RESETVAL (0x00000000u)
983 #define CSL_PRUCORE_INTCTER31_RESETVAL (0x00000000u)
993 volatile u8 RSVD0[20];
995 volatile u8 RSVD1[36];
997 volatile u8 RSVD2[12];
999 volatile u8 RSVD3[12];
1001 volatile u8 RSVD4[4];
1003 volatile u8 RSVD5[180];
1005 volatile u8 RSVD6[4];
1007 volatile u8 RSVD7[212];
1010 volatile u8 RSVD8[248];
1013 volatile u8 RSVD9[248];
1016 volatile u8 RSVD10[1016];
1017 volatile u32 MDSTAT[32];
1018 volatile u8 RSVD11[384];
1019 volatile u32 MDCTL[32];
1033 #define CSL_PSC_REVID_REV_MASK (0xFFFFFFFFu)
1034 #define CSL_PSC_REVID_REV_SHIFT (0x00000000u)
1035 #define CSL_PSC_REVID_REV_RESETVAL (0x44823A00u)
1037 #define CSL_PSC_REVID_RESETVAL (0x44823A00u)
1041 #define CSL_PSC_INTEVAL_ALLEV_MASK (0x00000001u)
1042 #define CSL_PSC_INTEVAL_ALLEV_SHIFT (0x00000000u)
1043 #define CSL_PSC_INTEVAL_ALLEV_RESETVAL (0x00000000u)
1045 #define CSL_PSC_INTEVAL_ALLEV_NO_EFFECT (0x00000000u)
1046 #define CSL_PSC_INTEVAL_ALLEV_RE_EVALUATE (0x00000001u)
1048 #define CSL_PSC_INTEVAL_RESETVAL (0x00000000u)
1052 #define CSL_PSC_MERRPR0_M15_MASK (0x0000C000u)
1053 #define CSL_PSC_MERRPR0_M15_SHIFT (0x0000000Eu)
1054 #define CSL_PSC_MERRPR0_M15_RESETVAL (0x00000000u)
1056 #define CSL_PSC_MERRPR0_M15_NO_ERR (0x00000000u)
1057 #define CSL_PSC_MERRPR0_M15_ERROR (0x00000001u)
1059 #define CSL_PSC_MERRPR0_M14_MASK (0x00006000u)
1060 #define CSL_PSC_MERRPR0_M14_SHIFT (0x0000000Du)
1061 #define CSL_PSC_MERRPR0_M14_RESETVAL (0x00000000u)
1063 #define CSL_PSC_MERRPR0_M14_NO_ERR (0x00000000u)
1064 #define CSL_PSC_MERRPR0_M14_ERROR (0x00000001u)
1066 #define CSL_PSC_MERRPR0_RESETVAL (0x00000000u)
1070 #define CSL_PSC_MERRCR0_M15_MASK (0x0000C000u)
1071 #define CSL_PSC_MERRCR0_M15_SHIFT (0x0000000Eu)
1072 #define CSL_PSC_MERRCR0_M15_RESETVAL (0x00000000u)
1074 #define CSL_PSC_MERRCR0_M15_NO_EFFECT (0x00000000u)
1075 #define CSL_PSC_MERRCR0_M15_CLR_ERR (0x00000001u)
1077 #define CSL_PSC_MERRCR0_M14_MASK (0x00006000u)
1078 #define CSL_PSC_MERRCR0_M14_SHIFT (0x0000000Du)
1079 #define CSL_PSC_MERRCR0_M14_RESETVAL (0x00000000u)
1081 #define CSL_PSC_MERRCR0_M14_NO_EFFECT (0x00000000u)
1082 #define CSL_PSC_MERRCR0_M14_CLR_ERR (0x00000001u)
1084 #define CSL_PSC_MERRCR0_RESETVAL (0x00000000u)
1088 #define CSL_PSC_PERRPR_P1_MASK (0x00000002u)
1089 #define CSL_PSC_PERRPR_P1_SHIFT (0x00000001u)
1090 #define CSL_PSC_PERRPR_P1_RESETVAL (0x00000000u)
1092 #define CSL_PSC_PERRPR_P1_NO_ERR (0x00000000u)
1093 #define CSL_PSC_PERRPR_P1_ERROR (0x00000001u)
1095 #define CSL_PSC_PERRPR_P0_MASK (0x00000001u)
1096 #define CSL_PSC_PERRPR_P0_SHIFT (0x00000000u)
1097 #define CSL_PSC_PERRPR_P0_RESETVAL (0x00000000u)
1099 #define CSL_PSC_PERRPR_P0_NO_ERR (0x00000000u)
1100 #define CSL_PSC_PERRPR_P0_ERROR (0x00000001u)
1102 #define CSL_PSC_PERRPR_RESETVAL (0x00000000u)
1106 #define CSL_PSC_PERRCR_P1_MASK (0x00000002u)
1107 #define CSL_PSC_PERRCR_P1_SHIFT (0x00000001u)
1108 #define CSL_PSC_PERRCR_P1_RESETVAL (0x00000000u)
1110 #define CSL_PSC_PERRCR_P1_NO_EFFECT (0x00000000u)
1111 #define CSL_PSC_PERRCR_P1_CLR_ERR (0x00000001u)
1113 #define CSL_PSC_PERRCR_P0_MASK (0x00000001u)
1114 #define CSL_PSC_PERRCR_P0_SHIFT (0x00000000u)
1115 #define CSL_PSC_PERRCR_P0_RESETVAL (0x00000000u)
1117 #define CSL_PSC_PERRCR_P0_NO_EFFECT (0x00000000u)
1118 #define CSL_PSC_PERRCR_P0_CLR_ERR (0x00000001u)
1120 #define CSL_PSC_PERRCR_RESETVAL (0x00000000u)
1124 #define CSL_PSC_PTCMD_GO1_MASK (0x00000002u)
1125 #define CSL_PSC_PTCMD_GO1_SHIFT (0x00000001u)
1126 #define CSL_PSC_PTCMD_GO1_RESETVAL (0x00000000u)
1128 #define CSL_PSC_PTCMD_GO1_NO_EFFECT (0x00000000u)
1129 #define CSL_PSC_PTCMD_GO1_SET (0x00000001u)
1131 #define CSL_PSC_PTCMD_GO0_MASK (0x00000001u)
1132 #define CSL_PSC_PTCMD_GO0_SHIFT (0x00000000u)
1133 #define CSL_PSC_PTCMD_GO0_RESETVAL (0x00000000u)
1135 #define CSL_PSC_PTCMD_GO0_NO_EFFECT (0x00000000u)
1136 #define CSL_PSC_PTCMD_GO0_SET (0x00000001u)
1138 #define CSL_PSC_PTCMD_RESETVAL (0x00000000u)
1142 #define CSL_PSC_PTSTAT_GOSTAT1_MASK (0x00000002u)
1143 #define CSL_PSC_PTSTAT_GOSTAT1_SHIFT (0x00000001u)
1144 #define CSL_PSC_PTSTAT_GOSTAT1_RESETVAL (0x00000000u)
1146 #define CSL_PSC_PTSTAT_GOSTAT1_NO_TRANSITION (0x00000000u)
1147 #define CSL_PSC_PTSTAT_GOSTAT1_IN_TRANSITION (0x00000001u)
1149 #define CSL_PSC_PTSTAT_GOSTAT0_MASK (0x00000001u)
1150 #define CSL_PSC_PTSTAT_GOSTAT0_SHIFT (0x00000000u)
1151 #define CSL_PSC_PTSTAT_GOSTAT0_RESETVAL (0x00000000u)
1153 #define CSL_PSC_PTSTAT_GOSTAT0_NO_TRANSITION (0x00000000u)
1154 #define CSL_PSC_PTSTAT_GOSTAT0_IN_TRANSITION (0x00000001u)
1156 #define CSL_PSC_PTSTAT_RESETVAL (0x00000000u)
1160 #define CSL_PSC_PDSTAT0_EMUIHB_MASK (0x00000800u)
1161 #define CSL_PSC_PDSTAT0_EMUIHB_SHIFT (0x0000000Bu)
1162 #define CSL_PSC_PDSTAT0_EMUIHB_RESETVAL (0x00000000u)
1164 #define CSL_PSC_PDSTAT0_EMUIHB_INHIBIT_OFF (0x00000000u)
1165 #define CSL_PSC_PDSTAT0_EMUIHB_INHIBIT_ON (0x00000001u)
1167 #define CSL_PSC_PDSTAT0_STATE_MASK (0x0000001Fu)
1168 #define CSL_PSC_PDSTAT0_STATE_SHIFT (0x00000000u)
1169 #define CSL_PSC_PDSTAT0_STATE_RESETVAL (0x00000000u)
1171 #define CSL_PSC_PDSTAT0_STATE_OFF (0x00000000u)
1172 #define CSL_PSC_PDSTAT0_STATE_ON (0x00000001u)
1174 #define CSL_PSC_PDSTAT0_RESETVAL (0x00000000u)
1178 #define CSL_PSC_PDSTAT1_EMUIHB_MASK (0x00000800u)
1179 #define CSL_PSC_PDSTAT1_EMUIHB_SHIFT (0x0000000Bu)
1180 #define CSL_PSC_PDSTAT1_EMUIHB_RESETVAL (0x00000000u)
1182 #define CSL_PSC_PDSTAT1_EMUIHB_INHIBIT_OFF (0x00000000u)
1183 #define CSL_PSC_PDSTAT1_EMUIHB_INHIBIT_ON (0x00000001u)
1185 #define CSL_PSC_PDSTAT1_STATE_MASK (0x0000001Fu)
1186 #define CSL_PSC_PDSTAT1_STATE_SHIFT (0x00000000u)
1187 #define CSL_PSC_PDSTAT1_STATE_RESETVAL (0x00000000u)
1189 #define CSL_PSC_PDSTAT1_STATE_OFF (0x00000000u)
1190 #define CSL_PSC_PDSTAT1_STATE_ON (0x00000001u)
1192 #define CSL_PSC_PDSTAT1_RESETVAL (0x00000000u)
1196 #define CSL_PSC_PDCTL0_WAKECNT_MASK (0x00FF0000u)
1197 #define CSL_PSC_PDCTL0_WAKECNT_SHIFT (0x00000010u)
1198 #define CSL_PSC_PDCTL0_WAKECNT_RESETVAL (0x0000001Fu)
1200 #define CSL_PSC_PDCTL0_PDMODE_MASK (0x0000F000u)
1201 #define CSL_PSC_PDCTL0_PDMODE_SHIFT (0x0000000Cu)
1202 #define CSL_PSC_PDCTL0_PDMODE_RESETVAL (0x0000000Fu)
1204 #define CSL_PSC_PDCTL0_EMUIHBIE_MASK (0x00000200u)
1205 #define CSL_PSC_PDCTL0_EMUIHBIE_SHIFT (0x00000009u)
1206 #define CSL_PSC_PDCTL0_EMUIHBIE_RESETVAL (0x00000000u)
1208 #define CSL_PSC_PDCTL0_EMUIHBIE_DISABLE (0x00000000u)
1209 #define CSL_PSC_PDCTL0_EMUIHBIE_ENABLE (0x00000001u)
1211 #define CSL_PSC_PDCTL0_NEXT_MASK (0x00000001u)
1212 #define CSL_PSC_PDCTL0_NEXT_SHIFT (0x00000000u)
1213 #define CSL_PSC_PDCTL0_NEXT_RESETVAL (0x00000001u)
1215 #define CSL_PSC_PDCTL0_NEXT_OFF (0x00000000u)
1216 #define CSL_PSC_PDCTL0_NEXT_ON (0x00000001u)
1218 #define CSL_PSC_PDCTL0_RESETVAL (0x001FF101u)
1222 #define CSL_PSC_PDCTL1_WAKECNT_MASK (0x00FF0000u)
1223 #define CSL_PSC_PDCTL1_WAKECNT_SHIFT (0x00000010u)
1224 #define CSL_PSC_PDCTL1_WAKECNT_RESETVAL (0x0000001Fu)
1226 #define CSL_PSC_PDCTL1_PDMODE_MASK (0x0000F000u)
1227 #define CSL_PSC_PDCTL1_PDMODE_SHIFT (0x0000000Cu)
1228 #define CSL_PSC_PDCTL1_PDMODE_RESETVAL (0x0000000Fu)
1230 #define CSL_PSC_PDCTL1_PDMODE_OFF (0x00000000u)
1231 #define CSL_PSC_PDCTL1_PDMODE_RAM_OFF (0x00000008u)
1232 #define CSL_PSC_PDCTL1_PDMODE_DEEP_SLEEP (0x00000009u)
1233 #define CSL_PSC_PDCTL1_PDMODE_LIGHT_SLEEP (0x0000000Au)
1234 #define CSL_PSC_PDCTL1_PDMODE_RETENTION (0x0000000Bu)
1235 #define CSL_PSC_PDCTL1_PDMODE_ON (0x0000000Fu)
1237 #define CSL_PSC_PDCTL1_EMUIHBIE_MASK (0x00000200u)
1238 #define CSL_PSC_PDCTL1_EMUIHBIE_SHIFT (0x00000009u)
1239 #define CSL_PSC_PDCTL1_EMUIHBIE_RESETVAL (0x00000000u)
1241 #define CSL_PSC_PDCTL1_EMUIHBIE_DISABLE (0x00000000u)
1242 #define CSL_PSC_PDCTL1_EMUIHBIE_ENABLE (0x00000001u)
1244 #define CSL_PSC_PDCTL1_NEXT_MASK (0x00000001u)
1245 #define CSL_PSC_PDCTL1_NEXT_SHIFT (0x00000000u)
1246 #define CSL_PSC_PDCTL1_NEXT_RESETVAL (0x00000001u)
1248 #define CSL_PSC_PDCTL1_NEXT_OFF (0x00000000u)
1249 #define CSL_PSC_PDCTL1_NEXT_ON (0x00000001u)
1251 #define CSL_PSC_PDCTL1_RESETVAL (0x001FF101u)
1255 #define CSL_PSC_PDCFG0_PDLOCK_MASK (0x00000008u)
1256 #define CSL_PSC_PDCFG0_PDLOCK_SHIFT (0x00000003u)
1257 #define CSL_PSC_PDCFG0_PDLOCK_RESETVAL (0x00000001u)
1259 #define CSL_PSC_PDCFG0_PDLOCK_YES (0x00000000u)
1260 #define CSL_PSC_PDCFG0_PDLOCK_NO (0x00000001u)
1262 #define CSL_PSC_PDCFG0_ICEPICK_MASK (0x00000004u)
1263 #define CSL_PSC_PDCFG0_ICEPICK_SHIFT (0x00000002u)
1264 #define CSL_PSC_PDCFG0_ICEPICK_RESETVAL (0x00000001u)
1266 #define CSL_PSC_PDCFG0_ICEPICK_ABSENT (0x00000000u)
1267 #define CSL_PSC_PDCFG0_ICEPICK_PRESENT (0x00000001u)
1269 #define CSL_PSC_PDCFG0_RAM_PSM_MASK (0x00000002u)
1270 #define CSL_PSC_PDCFG0_RAM_PSM_SHIFT (0x00000001u)
1271 #define CSL_PSC_PDCFG0_RAM_PSM_RESETVAL (0x00000000u)
1273 #define CSL_PSC_PDCFG0_RAM_PSM_NO (0x00000000u)
1274 #define CSL_PSC_PDCFG0_RAM_PSM_YES (0x00000001u)
1276 #define CSL_PSC_PDCFG0_ALWAYSON_MASK (0x00000001u)
1277 #define CSL_PSC_PDCFG0_ALWAYSON_SHIFT (0x00000000u)
1278 #define CSL_PSC_PDCFG0_ALWAYSON_RESETVAL (0x00000001u)
1280 #define CSL_PSC_PDCFG0_ALWAYSON_NO (0x00000000u)
1281 #define CSL_PSC_PDCFG0_ALWAYSON_YES (0x00000001u)
1283 #define CSL_PSC_PDCFG0_RESETVAL (0x0000000Du)
1287 #define CSL_PSC_PDCFG1_PDLOCK_MASK (0x00000008u)
1288 #define CSL_PSC_PDCFG1_PDLOCK_SHIFT (0x00000003u)
1289 #define CSL_PSC_PDCFG1_PDLOCK_RESETVAL (0x00000001u)
1291 #define CSL_PSC_PDCFG1_PDLOCK_YES (0x00000000u)
1292 #define CSL_PSC_PDCFG1_PDLOCK_NO (0x00000001u)
1294 #define CSL_PSC_PDCFG1_ICEPICK_MASK (0x00000004u)
1295 #define CSL_PSC_PDCFG1_ICEPICK_SHIFT (0x00000002u)
1296 #define CSL_PSC_PDCFG1_ICEPICK_RESETVAL (0x00000001u)
1298 #define CSL_PSC_PDCFG1_ICEPICK_ABSENT (0x00000000u)
1299 #define CSL_PSC_PDCFG1_ICEPICK_PRESENT (0x00000001u)
1301 #define CSL_PSC_PDCFG1_RAM_PSM_MASK (0x00000002u)
1302 #define CSL_PSC_PDCFG1_RAM_PSM_SHIFT (0x00000001u)
1303 #define CSL_PSC_PDCFG1_RAM_PSM_RESETVAL (0x00000001u)
1305 #define CSL_PSC_PDCFG1_RAM_PSM_NO (0x00000000u)
1306 #define CSL_PSC_PDCFG1_RAM_PSM_YES (0x00000001u)
1308 #define CSL_PSC_PDCFG1_ALWAYSON_MASK (0x00000001u)
1309 #define CSL_PSC_PDCFG1_ALWAYSON_SHIFT (0x00000000u)
1310 #define CSL_PSC_PDCFG1_ALWAYSON_RESETVAL (0x00000000u)
1312 #define CSL_PSC_PDCFG1_ALWAYSON_NO (0x00000000u)
1313 #define CSL_PSC_PDCFG1_ALWAYSON_YES (0x00000001u)
1315 #define CSL_PSC_PDCFG1_RESETVAL (0x0000000Eu)
1319 #define CSL_PSC_MDSTAT_EMUIHB_MASK (0x00020000u)
1320 #define CSL_PSC_MDSTAT_EMUIHB_SHIFT (0x00000011u)
1321 #define CSL_PSC_MDSTAT_EMUIHB_RESETVAL (0x00000000u)
1323 #define CSL_PSC_MDSTAT_EMUIHB_DISABLE (0x00000000u)
1324 #define CSL_PSC_MDSTAT_EMUIHB_ENABLE (0x00000001u)
1326 #define CSL_PSC_MDSTAT_EMURST_MASK (0x00010000u)
1327 #define CSL_PSC_MDSTAT_EMURST_SHIFT (0x00000010u)
1328 #define CSL_PSC_MDSTAT_EMURST_RESETVAL (0x00000000u)
1330 #define CSL_PSC_MDSTAT_EMURST_DISABLE (0x00000000u)
1331 #define CSL_PSC_MDSTAT_EMURST_ENABLE (0x00000001u)
1333 #define CSL_PSC_MDSTAT_MCKOUT_MASK (0x00001000u)
1334 #define CSL_PSC_MDSTAT_MCKOUT_SHIFT (0x0000000Cu)
1335 #define CSL_PSC_MDSTAT_MCKOUT_RESETVAL (0x00000000u)
1337 #define CSL_PSC_MDSTAT_MCKOUT_OFF (0x00000000u)
1338 #define CSL_PSC_MDSTAT_MCKOUT_ON (0x00000001u)
1340 #define CSL_PSC_MDSTAT_MRSTDONE_MASK (0x00000800u)
1341 #define CSL_PSC_MDSTAT_MRSTDONE_SHIFT (0x0000000Bu)
1342 #define CSL_PSC_MDSTAT_MRSTDONE_RESETVAL (0x00000000u)
1344 #define CSL_PSC_MDSTAT_MRSTDONE_COMPLETE (0x00000000u)
1345 #define CSL_PSC_MDSTAT_MRSTDONE_INCOMPLETE (0x00000001u)
1347 #define CSL_PSC_MDSTAT_MRST_MASK (0x00000400u)
1348 #define CSL_PSC_MDSTAT_MRST_SHIFT (0x0000000Au)
1349 #define CSL_PSC_MDSTAT_MRST_RESETVAL (0x00000000u)
1351 #define CSL_PSC_MDSTAT_MRST_ASSERT (0x00000000u)
1352 #define CSL_PSC_MDSTAT_MRST_DEASSERT (0x00000001u)
1354 #define CSL_PSC_MDSTAT_LRSTDONE_MASK (0x00000200u)
1355 #define CSL_PSC_MDSTAT_LRSTDONE_SHIFT (0x00000009u)
1356 #define CSL_PSC_MDSTAT_LRSTDONE_RESETVAL (0x00000000u)
1358 #define CSL_PSC_MDSTAT_LRSTDONE_NOTDONE (0x00000000u)
1359 #define CSL_PSC_MDSTAT_LRSTDONE_DONE (0x00000001u)
1361 #define CSL_PSC_MDSTAT_LRST_MASK (0x00000100u)
1362 #define CSL_PSC_MDSTAT_LRST_SHIFT (0x00000008u)
1363 #define CSL_PSC_MDSTAT_LRST_RESETVAL (0x00000000u)
1365 #define CSL_PSC_MDSTAT_LRST_ASSERT (0x00000000u)
1366 #define CSL_PSC_MDSTAT_LRST_DEASSERT (0x00000001u)
1368 #define CSL_PSC_MDSTAT_STATE_MASK (0x0000003Fu)
1369 #define CSL_PSC_MDSTAT_STATE_SHIFT (0x00000000u)
1370 #define CSL_PSC_MDSTAT_STATE_RESETVAL (0x00000000u)
1372 #define CSL_PSC_MDSTAT_STATE_SWRSTDISABLE (0x00000000u)
1373 #define CSL_PSC_MDSTAT_STATE_SYNCRST (0x00000001u)
1374 #define CSL_PSC_MDSTAT_STATE_DISABLE (0x00000002u)
1375 #define CSL_PSC_MDSTAT_STATE_ENABLE (0x00000003u)
1376 #define CSL_PSC_MDSTAT_STATE_AUTOSLEEP (0x00000004u)
1377 #define CSL_PSC_MDSTAT_STATE_AUTOWAKE (0x00000005u)
1379 #define CSL_PSC_MDSTAT_RESETVAL (0x00000000u)
1383 #define CSL_PSC_MDCTL_FORCE_MASK (0x80000000u)
1384 #define CSL_PSC_MDCTL_FORCE_SHIFT (0x0000001Fu)
1385 #define CSL_PSC_MDCTL_FORCE_RESETVAL (0x00000000u)
1387 #define CSL_PSC_MDCTL_FORCE_DISABLE (0x00000000u)
1388 #define CSL_PSC_MDCTL_FORCE_ENABLE (0x00000001u)
1390 #define CSL_PSC_MDCTL_EMUIHBIE_MASK (0x00000400u)
1391 #define CSL_PSC_MDCTL_EMUIHBIE_SHIFT (0x0000000Au)
1392 #define CSL_PSC_MDCTL_EMUIHBIE_RESETVAL (0x00000000u)
1394 #define CSL_PSC_MDCTL_EMUIHBIE_DISABLE (0x00000000u)
1395 #define CSL_PSC_MDCTL_EMUIHBIE_ENABLE (0x00000001u)
1397 #define CSL_PSC_MDCTL_EMURSTIE_MASK (0x00000200u)
1398 #define CSL_PSC_MDCTL_EMURSTIE_SHIFT (0x00000009u)
1399 #define CSL_PSC_MDCTL_EMURSTIE_RESETVAL (0x00000000u)
1401 #define CSL_PSC_MDCTL_EMURSTIE_DISABLE (0x00000000u)
1402 #define CSL_PSC_MDCTL_EMURSTIE_ENABLE (0x00000001u)
1404 #define CSL_PSC_MDCTL_LRST_MASK (0x00000100u)
1405 #define CSL_PSC_MDCTL_LRST_SHIFT (0x00000008u)
1406 #define CSL_PSC_MDCTL_LRST_RESETVAL (0x00000000u)
1408 #define CSL_PSC_MDCTL_LRST_ASSERT (0x00000000u)
1409 #define CSL_PSC_MDCTL_LRST_DEASSERT (0x00000001u)
1411 #define CSL_PSC_MDCTL_NEXT_MASK (0x0000001Fu)
1412 #define CSL_PSC_MDCTL_NEXT_SHIFT (0x00000000u)
1413 #define CSL_PSC_MDCTL_NEXT_RESETVAL (0x00000000u)
1415 #define CSL_PSC_MDCTL_NEXT_SWRSTDISABLE (0x00000000u)
1416 #define CSL_PSC_MDCTL_NEXT_SYNCRST (0x00000001u)
1417 #define CSL_PSC_MDCTL_NEXT_DISABLE (0x00000002u)
1418 #define CSL_PSC_MDCTL_NEXT_ENABLE (0x00000003u)
1419 #define CSL_PSC_MDCTL_NEXT_AUTOSLEEP (0x00000004u)
1420 #define CSL_PSC_MDCTL_NEXT_AUTOWAKE (0x00000005u)
1422 #define CSL_PSC_MDCTL_RESETVAL (0x00000000u)
1501 (u32 u32offset, u32 * pu32datatowrite, u16 u16wordstowrite);
1515 (u32 u32offset, u32 * pu32datatoread, u16 u16wordstoread);
1568 (u32 u32canbittiming, u32 u32bitrateprescaler);
short pru_can_configuration_mode_set(bool bconfigmodeenabledisableflag)
pru_can_configuration_mode_set() Sets the timing value for data transfer
short pru_can_check_init_status(void)
can_transfer_direction ecantransferdirection
short pru_can_write_data_to_mailbox(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_write_data_to_mailbox() Updates the transmit mailboxes of PRU1 of OMAP L138.
short pru_can_emulation_open(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_emulation_open() Opens the can emulation for application to use
short pru_can_download_firmware(pru_can_firmware_structure *pstrfirmwaredata, u8 u8prunum)
pru_can_download_firmware() Download the firmware into PRU0 and PRU1 of OMAP L138.
short pru_can_ram_read_data(u32 u32offset, u32 *pu32datatoread, u16 u16wordstoread)
pru_can_ram_read_data() Download the data into data RAM of PRU0 or PRU1 of OMAP L138.
short pru_can_enable(void)
pru_can_enable() Configure and Enable PRU0 and PRU1 of OMAP L138.
short pru_can_get_mailbox_status(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_get_mailbox_status() Gets the mailbox status register value
can_transfer_direction ecantransferdirection
can_instance_enum ecaninstance
short pru_can_psc_disable(void)
pru_can_psc_disable () Disable state transition of PRU
can_mailbox_number ecanmailboxnumber
short pru_can_disable(void)
pru_can_disable() Disable PRU0 and PRU1 of OMAP L138.
short pru_can_transfer_mode_set(bool btransfer_flag, can_transfer_direction ecan_trx)
short pru_can_emulation_exit(void)
pru_can_emulation_exit() Diables all the PRUs
short pru_can_psc_enable(void)
pru_can_psc_enable () Enable state transition of PRU
short pru_can_emulation_sreset(void)
short pru_can_get_interrupt_status(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_get_interrupt_status() Gets the interrupts status register value
short pru_can_set_bit_timing(can_bit_timing_consts *pstrcanbittiming)
pru_can_set_bit_timing() Updates the timing register of PRU0 and PRU1 of OMAP L138.
short pru_can_emulation_init(arm_pru_iomap *pstr_pru_iomap, u32 u32pruclock)
pru_can_emulation_init() Initializes the Can Emulation Parameters
short pru_can_mask_ints(u32 int_mask)
volatile CSL_PscRegs * CSL_PscRegsOvly
short pru_can_get_data_from_mailbox(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_get_data_from_mailbox() Receive data from the receive mailboxes of PRU0 of OMAP L138...
can_mail_box_structure strcanmailbox
short pru_can_start_or_abort_transmission(bool bcantransmitabortflag)
can_transfer_direction ecantransferdirection
short pru_can_ram_write_data(u32 u32offset, u32 *pu32datatowrite, u16 u16wordstowrite)
pru_can_ram_write_data() Download the data into data RAM of PRU0 or PRU1 of OMAP L138.
short pru_can_run(u8 u8prunum)
pru_can_run () Allows the PRU0 or PRU1 of OMAP L138 to execute the code loaded into its Instruction R...
short pru_can_get_global_status(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_get_global_status() Gets the globalstatus register value
int pru_can_get_error_cnt(u8 u8prunumber)
short pru_can_set_brp(u16 u16bitrateprescaler)
pru_can_set_brp() Updates the BRP register of PRU0 and PRU1 of OMAP L138.
short pru_can_emulation_close(can_emulation_app_hndl *pstrcanemuapphndl)
pru_can_emulation_close() Closes the can emulation for other applications to use
int pru_can_intc_status_get(void)
short pru_can_transfer(u8 u8mailboxnumber, u8 u8prunumber)
short pru_can_calculatetiming(u32 u32canbittiming, u32 u32bitrateprescaler)
pru_can_calculatetiming() Updates the timing values of PRU0 and PRU1 of OMAP L138.
u16 u16extendedidentifier
short pru_can_receive_id_map(u32 u32nodeid, can_mailbox_number ecanmailboxno)
pru_can_receive_id_map() Receive mailboxes ID Mapping of PRU0 of OMAP L138.