RTEMS 6.1-rc1
tms570.h
1/* This file is generated by make_central_header.py */
2/* Current script's version can be found at: */
3/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
4
5/*
6 * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
7 *
8 * Czech Technical University in Prague
9 * Zikova 1903/4
10 * 166 36 Praha 6
11 * Czech Republic
12 *
13 * All rights reserved.
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions are met:
17 *
18 * 1. Redistributions of source code must retain the above copyright notice, this
19 * list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright notice,
21 * this list of conditions and the following disclaimer in the documentation
22 * and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
28 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 *
35 * The views and conclusions contained in the software and documentation are those
36 * of the authors and should not be interpreted as representing official policies,
37 * either expressed or implied, of the FreeBSD Project.
38*/
39#ifndef LIBBSP_ARM_TMS570
40#define LIBBSP_ARM_TMS570
41
42#include <bsp/tms570-pins.h>
43
44#include <bsp/ti_herc/reg_adc.h>
45#include <bsp/ti_herc/reg_ccmsr.h>
46#include <bsp/ti_herc/reg_crc.h>
47#include <bsp/ti_herc/reg_dcan.h>
48#include <bsp/ti_herc/reg_dcc.h>
49#include <bsp/ti_herc/reg_dma.h>
50#include <bsp/ti_herc/reg_dmm.h>
51#include <bsp/ti_herc/reg_efuse.h>
52#include <bsp/ti_herc/reg_emacc.h>
53#include <bsp/ti_herc/reg_emacm.h>
54#include <bsp/ti_herc/reg_emif.h>
55#include <bsp/ti_herc/reg_esm.h>
56#include <bsp/ti_herc/reg_flash.h>
57#include <bsp/ti_herc/reg_flex_ray.h>
58#include <bsp/ti_herc/reg_gio.h>
59#include <bsp/ti_herc/reg_htu.h>
60#include <bsp/ti_herc/reg_i2c.h>
61#include <bsp/ti_herc/reg_iomm.h>
62#include <bsp/ti_herc/reg_lin.h>
63#include <bsp/ti_herc/reg_mdio.h>
64#include <bsp/ti_herc/reg_n2het.h>
65#include <bsp/ti_herc/reg_pbist.h>
66#include <bsp/ti_herc/reg_pll.h>
67#include <bsp/ti_herc/reg_pmm.h>
68#include <bsp/ti_herc/reg_rti.h>
69#include <bsp/ti_herc/reg_rtp.h>
70#include <bsp/ti_herc/reg_sci.h>
71#include <bsp/ti_herc/reg_tcr.h>
72#include <bsp/ti_herc/reg_tcram.h>
73#include <bsp/ti_herc/reg_vim.h>
74#include <bsp/ti_herc/reg_pom.h>
75#include <bsp/ti_herc/reg_spi.h>
76#include <bsp/ti_herc/reg_stc.h>
77#include <bsp/ti_herc/reg_sys.h>
78#include <bsp/ti_herc/reg_sys2.h>
79#include <bsp/ti_herc/reg_pcr.h>
80
81#include <bspopts.h>
82
83#define TMS570_ADC1 (*(volatile tms570_adc_t*)0xFFF7C000)
84#define TMS570_ADC2 (*(volatile tms570_adc_t*)0xFFF7C200)
85#define TMS570_CCMSR (*(volatile tms570_ccmsr_t*)0xFFFFF600)
86#define TMS570_CRC (*(volatile tms570_crc_t*)0xFE000000)
87#if TMS570_VARIANT == 4357
88#define TMS570_CRC2 (*(volatile tms570_crc_t*)0xFB000000)
89#endif
90#define TMS570_DCAN1 (*(volatile tms570_dcan_t*)0xFFF7DC00)
91#define TMS570_DCAN2 (*(volatile tms570_dcan_t*)0xFFF7DE00)
92#define TMS570_DCAN3 (*(volatile tms570_dcan_t*)0xFFF7E000)
93#if TMS570_VARIANT == 4357
94#define TMS570_DCAN4 (*(volatile tms570_dcan_t*)0xFFF7E200)
95#endif
96#define TMS570_DCC1 (*(volatile tms570_dcc_t*)0xFFFFEC00)
97#define TMS570_DCC2 (*(volatile tms570_dcc_t*)0xFFFFF400)
98#define TMS570_DMA (*(volatile tms570_dma_t*)0xFFFFF000)
99#define TMS570_DMM (*(volatile tms570_dmm_t*)0xFFFFF700)
100#define TMS570_EFUSE (*(volatile tms570_efuse_t*)0xFFF8C01C)
101#define TMS570_EMACC (*(volatile tms570_emacc_t*)0xFCF78800)
102#define TMS570_EMACM (*(volatile tms570_emacm_t*)0xFCF78000)
103#define TMS570_EMIF (*(volatile tms570_emif_t*)0xFCFFE800)
104#define TMS570_ESM (*(volatile tms570_esm_t*)0xFFFFF500)
105#define TMS570_FLASH (*(volatile tms570_flash_t*)0xFFF87000)
106#define TMS570_FLEX_RAY (*(volatile tms570_flex_ray_t*)0xFFF7C800)
107#define TMS570_GIO (*(volatile tms570_gio_t*)0xFFF7BC00)
108#define TMS570_GIO_PORTA (*(volatile tms570_gio_port_t*)0xFFF7BC34)
109#define TMS570_GIO_PORTB (*(volatile tms570_gio_port_t*)0xFFF7BC54)
110#define TMS570_GIO_PORTC (*(volatile tms570_gio_port_t*)0xFFF7BC74)
111#define TMS570_GIO_PORTD (*(volatile tms570_gio_port_t*)0xFFF7BC94)
112#define TMS570_GIO_PORTE (*(volatile tms570_gio_port_t*)0xFFF7BCB4)
113#define TMS570_GIO_PORTF (*(volatile tms570_gio_port_t*)0xFFF7BCD4)
114#define TMS570_GIO_PORTG (*(volatile tms570_gio_port_t*)0xFFF7BCF4)
115#define TMS570_GIO_PORTH (*(volatile tms570_gio_port_t*)0xFFF7BD14)
116#define TMS570_HTU1 (*(volatile tms570_htu_t*)0xFFF7A400)
117#define TMS570_HTU2 (*(volatile tms570_htu_t*)0xFFF7A500)
118#define TMS570_I2C (*(volatile tms570_i2c_t*)0xFFF7D400)
119#if TMS570_VARIANT == 4357
120#define TMS570_I2C2 (*(volatile tms570_i2c_t*)0xFFF7D500)
121#endif
122#if TMS570_VARIANT == 4357
123#define TMS570_IOMM (*(volatile tms570_iomm_t*)0xFFFF1C00)
124#define TMS570_PINMUX (*(volatile tms570_pinmux_t*)0xFFFF1D10)
125#else
126#define TMS570_IOMM (*(volatile tms570_iomm_t*)0xFFFFEA00)
127#define TMS570_PINMUX (*(volatile tms570_pinmux_t*)0xFFFFEB10)
128#endif
129#define TMS570_LIN (*(volatile tms570_lin_t*)0xFFF7E400)
130#if TMS570_VARIANT == 4357
131#define TMS570_LIN2 (*(volatile tms570_lin_t*)0xFFF7E600)
132#endif
133#define TMS570_MDIO (*(volatile tms570_mdio_t*)0xFCF78900)
134#define TMS570_NHET1 (*(volatile tms570_nhet_t*)0xFFF7B800)
135#define TMS570_NHET2 (*(volatile tms570_nhet_t*)0xFFF7B900)
136#define TMS570_PBIST (*(volatile tms570_pbist_t*)0xFFFFE400)
137#define TMS570_PLL (*(volatile tms570_pll_t*)0xFFFFE100)
138#define TMS570_PMM (*(volatile tms570_pmm_t*)0xFFFF0000)
139#define TMS570_RTI (*(volatile tms570_rti_t*)0xFFFFFC00)
140#define TMS570_RTP (*(volatile tms570_rtp_t*)0xFFFFFA00)
141#define TMS570_SCI (*(volatile tms570_sci_t*)0xFFF7E500)
142#if TMS570_VARIANT == 4357
143#define TMS570_SCI2 (*(volatile tms570_sci_t*)0xFFF7E700)
144#endif
145#define TMS570_TCR (*(volatile tms570_tcr_t*)0xFFF7C800)
146#define TMS570_TCRAM1 (*(volatile tms570_tcram_t*)0xFFFFF800)
147#define TMS570_TCRAM2 (*(volatile tms570_tcram_t*)0xFFFFF900)
148#define TMS570_VIM (*(volatile tms570_vim_t*)0xFFFFFDEC)
149#define TMS570_POM (*(volatile tms570_pom_t*)0xFFA04000)
150#define TMS570_SPI1 (*(volatile tms570_spi_t*)0xFFF7F400)
151#define TMS570_SPI2 (*(volatile tms570_spi_t*)0xFFF7F600)
152#define TMS570_SPI3 (*(volatile tms570_spi_t*)0xFFF7F800)
153#define TMS570_SPI4 (*(volatile tms570_spi_t*)0xFFF7FA00)
154#define TMS570_SPI5 (*(volatile tms570_spi_t*)0xFFF7FC00)
155#define TMS570_STC (*(volatile tms570_stc_t*)0xFFFFE600)
156#define TMS570_SYS1 (*(volatile tms570_sys1_t*)0xFFFFFF00)
157#define TMS570_SYS2 (*(volatile tms570_sys2_t*)0xFFFFE100)
158#define TMS570_PCR (*(volatile tms570_pcr_t*)0xFFFFE000)
159#endif /* LIBBSP_ARM_TMS570 */
Select pin mapping according to selected chip. Defaults to TMS570LS3137ZWT for now.