|
| 1 | +/* ============================================================================ |
| 2 | + * Copyright (C) 2002-2023 Texas Instruments Incorporated |
| 3 | + * |
| 4 | + * Redistribution and use in source and binary forms, with or without |
| 5 | + * modification, are permitted provided that the following conditions |
| 6 | + * are met: |
| 7 | + * |
| 8 | + * Redistributions of source code must retain the above copyright |
| 9 | + * notice, this list of conditions and the following disclaimer. |
| 10 | + * |
| 11 | + * Redistributions in binary form must reproduce the above copyright |
| 12 | + * notice, this list of conditions and the following disclaimer in the |
| 13 | + * documentation and/or other materials provided with the |
| 14 | + * distribution. |
| 15 | + * |
| 16 | + * Neither the name of Texas Instruments Incorporated nor the names of |
| 17 | + * its contributors may be used to endorse or promote products derived |
| 18 | + * from this software without specific prior written permission. |
| 19 | + * |
| 20 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | + * |
| 32 | +*/ |
| 33 | + |
| 34 | +/* |
| 35 | + file: AM243_AM64_PRU_pinmux.inc |
| 36 | +
|
| 37 | + brief: Device specific pinmux defines for direct PRU configuration |
| 38 | + SDK driver on PRU would consume too much memory |
| 39 | + This is a trade off between readablility and code size. |
| 40 | + |
| 41 | + author: Thomas Leyrer |
| 42 | + |
| 43 | + (C) Copyright 2024, Texas Instruments, Inc |
| 44 | +*/ |
| 45 | + |
| 46 | +#ifndef AM243_AM64_PRU_pinmux_h |
| 47 | +#define AM243_AM64_PRU_pinmux_h |
| 48 | + |
| 49 | +// LOCK UNLOCK defines |
| 50 | +#define PAD_PARTITION0_L0 (0x000f1008) |
| 51 | +#define PAD_PARTITION0_L1 (0x000f100C) |
| 52 | +#define PAD_PARTITION1_L0 (0x000f5008) |
| 53 | +#define PAD_PARTITION1_L1 (0x000f500C) |
| 54 | + |
| 55 | +#define PAD_KEY0 (0x68EF3490) |
| 56 | +#define PAD_KEY1 (0xD172BC5A) |
| 57 | + |
| 58 | +// Input/Output defines |
| 59 | +#define PRU_GPI (0x00040001) |
| 60 | +#define PRU_GPO (0x00010000) |
| 61 | +#define IEP_SYNC_OUT (0x00010002) |
| 62 | +#define IEP_LATCH_IN (0x00040002) |
| 63 | + |
| 64 | +// ICSS_G0 PRU0 |
| 65 | +#define PRG0_PRU0_GPO0 (0x000F4160) |
| 66 | +#define PRG0_PRU0_GPO1 (0x000F4164) |
| 67 | +#define PRG0_PRU0_GPO2 (0x000F4168) |
| 68 | +#define PRG0_PRU0_GPO3 (0x000F416C) |
| 69 | +#define PRG0_PRU0_GPO4 (0x000F4170) |
| 70 | +#define PRG0_PRU0_GPO5 (0x000F4174) |
| 71 | +#define PRG0_PRU0_GPO6 (0x000F4178) |
| 72 | +#define PRG0_PRU0_GPO7 (0x000F417C) |
| 73 | +#define PRG0_PRU0_GPO8 (0x000F4180) |
| 74 | +#define PRG0_PRU0_GPO9 (0x000F4184) |
| 75 | +#define PRG0_PRU0_GPO10 (0x000F4188) |
| 76 | +#define PRG0_PRU0_GPO11 (0x000F418C) |
| 77 | +#define PRG0_PRU0_GPO12 (0x000F4190) |
| 78 | +#define PRG0_PRU0_GPO13 (0x000F4194) |
| 79 | +#define PRG0_PRU0_GPO14 (0x000F4198) |
| 80 | +#define PRG0_PRU0_GPO15 (0x000F419C) |
| 81 | +#define PRG0_PRU0_GPO16 (0x000F41A0) |
| 82 | +#define PRG0_PRU0_GPO17 (0x000F41A4) |
| 83 | +#define PRG0_PRU0_GPO18 (0x000F41A8) |
| 84 | +#define PRG0_PRU0_GPO19 (0x000F41AC) |
| 85 | + |
| 86 | +// ICSS_G0 PRU1 |
| 87 | +#define PRG0_PRU1_GPO0 (0x000F41B0) |
| 88 | +#define PRG0_PRU1_GPO1 (0x000F41B4) |
| 89 | +#define PRG0_PRU1_GPO2 (0x000F41B8) |
| 90 | +#define PRG0_PRU1_GPO3 (0x000F41BC) |
| 91 | +#define PRG0_PRU1_GPO4 (0x000F41C0) |
| 92 | +#define PRG0_PRU1_GPO5 (0x000F41C4) |
| 93 | +#define PRG0_PRU1_GPO6 (0x000F41C8) |
| 94 | +#define PRG0_PRU1_GPO7 (0x000F41CC) |
| 95 | +#define PRG0_PRU1_GPO8 (0x000F41D0) |
| 96 | +#define PRG0_PRU1_GPO9 (0x000F41D4) |
| 97 | +#define PRG0_PRU1_GPO10 (0x000F41D8) |
| 98 | +#define PRG0_PRU1_GPO11 (0x000F41DC) |
| 99 | +#define PRG0_PRU1_GPO12 (0x000F41E0) |
| 100 | +#define PRG0_PRU1_GPO13 (0x000F41E4) |
| 101 | +#define PRG0_PRU1_GPO14 (0x000F41E8) |
| 102 | +#define PRG0_PRU1_GPO15 (0x000F41EC) |
| 103 | +#define PRG0_PRU1_GPO16 (0x000F41F0) |
| 104 | +#define PRG0_PRU1_GPO17 (0x000F41F4) |
| 105 | +#define PRG0_PRU1_GPO18 (0x000F41F8) |
| 106 | +#define PRG0_PRU1_GPO19 (0x000F41FC) |
| 107 | + |
| 108 | +// ICSS_G1 PRU0 |
| 109 | +#define PRG1_PRU0_GPO0 (0x000F40B8) |
| 110 | +#define PRG1_PRU0_GPO1 (0x000F40BC) |
| 111 | +#define PRG1_PRU0_GPO2 (0x000F40C0) |
| 112 | +#define PRG1_PRU0_GPO3 (0x000F40C4) |
| 113 | +#define PRG1_PRU0_GPO4 (0x000F40C8) |
| 114 | +#define PRG1_PRU0_GPO5 (0x000F40CC) |
| 115 | +#define PRG1_PRU0_GPO6 (0x000F40D0) |
| 116 | +#define PRG1_PRU0_GPO7 (0x000F40D4) |
| 117 | +#define PRG1_PRU0_GPO8 (0x000F40D8) |
| 118 | +#define PRG1_PRU0_GPO9 (0x000F40DC) |
| 119 | +#define PRG1_PRU0_GP010 (0x000F40E0) |
| 120 | +#define PRG1_PRU0_GPO11 (0x000F40E4) |
| 121 | +#define PRG1_PRU0_GPO12 (0x000F40E8) |
| 122 | +#define PRG1_PRU0_GPO13 (0x000F40EC) |
| 123 | +#define PRG1_PRU0_GPO14 (0x000F40F0) |
| 124 | +#define PRG1_PRU0_GPO15 (0x000F40F4) |
| 125 | +#define PRG1_PRU0_GPO16 (0x000F40F8) |
| 126 | +#define PRG1_PRU0_GPO17 (0x000F40FC) |
| 127 | +#define PRG1_PRU0_GPO18 (0x000F4100) |
| 128 | +#define PRG1_PRU0_GPO19 (0x000F4104) |
| 129 | + |
| 130 | +// ICSS_G1 PRU1 |
| 131 | +#define PRG1_PRU1_GPO0 (0x000F4108) |
| 132 | +#define PRG1_PRU1_GPO1 (0x000F410C) |
| 133 | +#define PRG1_PRU1_GPO2 (0x000F4110) |
| 134 | +#define PRG1_PRU1_GPO3 (0x000F4114) |
| 135 | +#define PRG1_PRU1_GPO4 (0x000F4118) |
| 136 | +#define PRG1_PRU1_GPO5 (0x000F411C) |
| 137 | +#define PRG1_PRU1_GPO6 (0x000F4120) |
| 138 | +#define PRG1_PRU1_GPO7 (0x000F4124) |
| 139 | +#define PRG1_PRU1_GPO8 (0x000F4128) |
| 140 | +#define PRG1_PRU1_GPO9 (0x000F412C) |
| 141 | +#define PRG1_PRU1_GPO10 (0x000F4130) |
| 142 | +#define PRG1_PRU1_GPO11 (0x000F4134) |
| 143 | +#define PRG1_PRU1_GPO12 (0x000F4138) |
| 144 | +#define PRG1_PRU1_GPO13 (0x000F413C) |
| 145 | +#define PRG1_PRU1_GPO14 (0x000F4140) |
| 146 | +#define PRG1_PRU1_GPO15 (0x000F4144) |
| 147 | +#define PRG1_PRU1_GPO16 (0x000F4148) |
| 148 | +#define PRG1_PRU1_GPO17 (0x000F414C) |
| 149 | +#define PRG1_PRU1_GPO18 (0x000F4150) |
| 150 | +#define PRG1_PRU1_GPO19 (0x000F4154) |
| 151 | + |
| 152 | +#endif |
0 commit comments