123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- /*
- * Copyright (c) 2012, Freescale Semiconductor, Inc.
- * All rights reserved.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- // File: sjc_iomux_config.c
- /* ------------------------------------------------------------------------------
- * <auto-generated>
- * This code was generated by a tool.
- * Runtime Version:3.4.0.0
- *
- * Changes to this file may cause incorrect behavior and will be lost if
- * the code is regenerated.
- * </auto-generated>
- * ------------------------------------------------------------------------------
- */
- #include "iomux_config.h"
- #include "registers/regsiomuxc.h"
- // Function to configure IOMUXC for sjc module.
- void sjc_iomux_config(void)
- {
- // Config sjc.JTAG_MOD to pad JTAG_MOD(H6)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD_WR(0x0000B060);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD(0x020E0614)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 100K_OHM_PU
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: PULL
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 50MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 60_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: SLOW
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD_HYS_V(DISABLED) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD_PUS_V(100K_OHM_PU) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_MOD_PKE_V(ENABLED));
- // Config sjc.JTAG_TCK to pad JTAG_TCK(H5)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK_WR(0x00007060);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK(0x020E0618)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 47K_OHM_PU
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: PULL
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 50MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 60_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: SLOW
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK_HYS_V(DISABLED) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK_PUS_V(47K_OHM_PU) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TCK_PKE_V(ENABLED));
- // Config sjc.JTAG_TDI to pad JTAG_TDI(G5)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI_WR(0x00007060);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI(0x020E061C)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 47K_OHM_PU
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: PULL
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 50MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 60_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: SLOW
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI_HYS_V(DISABLED) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI_PUS_V(47K_OHM_PU) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDI_PKE_V(ENABLED));
- // Config sjc.JTAG_TDO to pad JTAG_TDO(G6)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDO_WR(0x000090B1);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_TDO(0x020E0620)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 100K_OHM_PU
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: KEEP
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 100MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 40_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: FAST
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDO_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TDO_PKE_V(ENABLED));
- // Config sjc.JTAG_TMS to pad JTAG_TMS(C3)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS_WR(0x00007060);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS(0x020E0624)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 47K_OHM_PU
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: PULL
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 50MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 60_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: SLOW
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS_HYS_V(DISABLED) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS_PUS_V(47K_OHM_PU) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TMS_PKE_V(ENABLED));
- // Config sjc.JTAG_TRSTB to pad JTAG_TRSTB(C2)
- // HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB_WR(0x00007060);
- // Pad Control Register:
- // IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB(0x020E0628)
- // HYS [16] - Hysteresis Enable Field Reset: DISABLED
- // DISABLED (0) - CMOS input
- // ENABLED (1) - Schmitt trigger input
- // PUS [15:14] - Pull Up / Down Config. Field Reset: 47K_OHM_PU
- // 100K_OHM_PD (0) - 100K Ohm Pull Down
- // 47K_OHM_PU (1) - 47K Ohm Pull Up
- // 100K_OHM_PU (2) - 100K Ohm Pull Up
- // 22K_OHM_PU (3) - 22K Ohm Pull Up
- // PUE [13] - Pull / Keep Select Field Reset: PULL
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // KEEP (0) - Keeper Enabled
- // PULL (1) - Pull Enabled
- // PKE [12] - Pull / Keep Enable Field Reset: ENABLED
- // DISABLED (0) - Pull/Keeper Disabled
- // ENABLED (1) - Pull/Keeper Enabled
- // ODE [11] - Open Drain Enable Field Reset: DISABLED
- // Enables open drain of the pin.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // DISABLED (0) - Output is CMOS.
- // ENABLED (1) - Output is Open Drain.
- // SPEED [7:6] - Speed Field Reset: 50MHZ
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // RESERVED0 (0) - Reserved
- // 50MHZ (1) - Low (50 MHz)
- // 100MHZ (2) - Medium (100 MHz)
- // 200MHZ (3) - Maximum (200 MHz)
- // DSE [5:3] - Drive Strength Field Reset: 60_OHM
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // HIZ (0) - HI-Z
- // 240_OHM (1) - 240 Ohm
- // 120_OHM (2) - 120 Ohm
- // 80_OHM (3) - 80 Ohm
- // 60_OHM (4) - 60 Ohm
- // 48_OHM (5) - 48 Ohm
- // 40_OHM (6) - 40 Ohm
- // 34_OHM (7) - 34 Ohm
- // SRE [0] - Slew Rate Field Reset: SLOW
- // Slew rate control.
- // NOTE: Read Only Field
- // The value of this field is fixed and cannot be changed.
- // SLOW (0) - Slow Slew Rate
- // FAST (1) - Fast Slew Rate
- HW_IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB_WR(
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB_HYS_V(DISABLED) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB_PUS_V(47K_OHM_PU) |
- BF_IOMUXC_SW_PAD_CTL_PAD_JTAG_TRSTB_PKE_V(ENABLED));
- }
|