]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/uart/firmware/icss_uart/src/icss_defines.h
uart-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / uart / firmware / icss_uart / src / icss_defines.h
1
2 ; Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
3
4
5 ; Redistribution and use in source and binary forms, with or without
6 ; modification, are permitted provided that the following conditions
7 ; are met:
8
9 ;        * Redistributions of source code must retain the above copyright
10 ;          notice, this list of conditions and the following disclaimer.
11
12 ;        * Redistributions in binary form must reproduce the above copyright
13 ;          notice, this list of conditions and the following disclaimer in the
14 ;          documentation and/or other materials provided with the
15 ;          distribution.
16
17 ;        * Neither the name of Texas Instruments Incorporated nor the names of
18 ;          its contributors may be used to endorse or promote products derived
19 ;          from this software without specific prior written permission.
20
21 ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 ; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 ; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 ; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 ; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 ; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 ; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 ; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 ; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
34 ; file:   icss_defines.h
35 ;
36 ; brief:  ICSS Global Defines
37 ;
38         
39     .if    !$defined("__icss_defines_h")
40 __icss_defines_h    .set 1
41         
42 ; Bank ids for Xfer instructions
43 BANK0                 .set    10
44 BANK1                 .set    11
45 BANK2                 .set    12
46     
47 ; Constants need to be defined with correct offset before using. Typically done on HOST side.
48     .asg    c0,     ICSS_INTC_CONST
49     .asg    c26,    ICSS_IEP_CONST
50     .asg    c4,     ICSS_CFG_CONST
51     .asg    c24,    PRU0_DMEM_CONST
52     .asg    c25,    PRU1_DMEM_CONST
53     .asg    c28,    ICSS_SHARED_CONST
55     .asg    R24.w2, CALL_REG    
56     .asg    R24.w0, L1_CALL_REG   
58 ; PRU-ICSS Control Regs
59 ICSS_PRU0_CTRL_LOCAL    .set    (0x00022000U)   ; PRU0
60 ICSS_PRU1_CTRL_LOCAL    .set    (0x00024000U)   ; PRU1
62 ; PRU-ICSS IEP Regs
63 ICSS_IEP_LOCAL          .set    (0x0002e000U)
65 ; PRU-ICSS Ext Port
66 ICSS_EXT_PORT_LOCAL     .set    (0x00040000U)
69     .endif      ;__icss_defines_h