navienginebsp/ne1_tb/hcr/hcrconfig_mha.h
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * This file is part of the NE1_TB Variant Base Port
       
    16 * Hardware Configuration Respoitory Published Setting IDs header. 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /** 
       
    23 @file hcrconfig_assp.h
       
    24 File provides definitions for the published set of HCR settings
       
    25 identifiers applicable to the MHA Services on the NEC NaviEngine 
       
    26 base port.
       
    27 
       
    28 @publishedPartner
       
    29 @prototype
       
    30 */
       
    31 
       
    32 #ifndef HCRCONFIG_MHA_H
       
    33 #define HCRCONFIG_MHA_H
       
    34 
       
    35 
       
    36 
       
    37 // -- INCLUDES ----------------------------------------------------------------
       
    38 
       
    39 #include  <drivers/hcr.h>
       
    40 
       
    41 
       
    42 
       
    43 // -- CATEGORY UIDs -----------------------------------------------------------
       
    44 
       
    45 
       
    46 
       
    47 // -- KEYS --------------------------------------------------------------------
       
    48 
       
    49 /**
       
    50 HCR Settings identifing the assignment of Interrrupt lines. 
       
    51 
       
    52 These element keys are used along with the KHcrCat_MHA_Interrupt category UID
       
    53 to identify and read the HCR setting.
       
    54 */
       
    55 #define INT_SRC 0x00010000
       
    56 const HCR::TElementId KHcrKey_Interrupt_ExBus			= INT_SRC +  11; //< 
       
    57 
       
    58 const HCR::TElementId KHcrKey_Interrupt_I2C				= INT_SRC +  12; //<
       
    59  
       
    60 const HCR::TElementId KHcrKey_Interrupt_CSI0			= INT_SRC +  13; //< 
       
    61 const HCR::TElementId KHcrKey_Interrupt_CSI1			= INT_SRC +  14; //< 
       
    62 
       
    63 const HCR::TElementId KHcrKey_Interrupt_Timer0			= INT_SRC +  21; //< SoC Timer0 interrupt
       
    64 const HCR::TElementId KHcrKey_Interrupt_Timer1			= INT_SRC +  22; //< SoC Timer1 interrupt
       
    65 const HCR::TElementId KHcrKey_Interrupt_Timer2			= INT_SRC +  23; //< SoC Timer2 interrupt
       
    66 const HCR::TElementId KHcrKey_Interrupt_Timer3			= INT_SRC +  24; //< SoC Timer3 interrupt
       
    67 const HCR::TElementId KHcrKey_Interrupt_Timer4			= INT_SRC +  25; //< SoC Timer4 interrupt
       
    68 const HCR::TElementId KHcrKey_Interrupt_Timer5			= INT_SRC +  26; //< SoC Timer5 interrupt
       
    69 
       
    70 const HCR::TElementId KHcrKey_Interrupt_PWM 			= INT_SRC +  31; //<
       
    71  
       
    72 const HCR::TElementId KHcrKey_Interrupt_SD0				= INT_SRC +  32; //< SD #0 : OXMNIRQ
       
    73 const HCR::TElementId KHcrKey_Interrupt_SD1				= INT_SRC +  33; //< SD #1 : OXASIOIRQ //SDIO
       
    74 
       
    75 const HCR::TElementId KHcrKey_Interrupt_CF				= INT_SRC +  41; //< 
       
    76 const HCR::TElementId KHcrKey_Interrupt_NAND			= INT_SRC +  42; //<  Nand Controller
       
    77 const HCR::TElementId KHcrKey_Interrupt_MIF				= INT_SRC +  43; //< 
       
    78 const HCR::TElementId KHcrKey_Interrupt_DTV				= INT_SRC +  44; //< 
       
    79 const HCR::TElementId KHcrKey_Interrupt_SGX				= INT_SRC +  45; //<
       
    80  
       
    81 const HCR::TElementId KHcrKey_Interrupt_DISP0 			= INT_SRC +  51; //< DISP 0
       
    82 const HCR::TElementId KHcrKey_Interrupt_DISP1			= INT_SRC +  52; //< 
       
    83 const HCR::TElementId KHcrKey_Interrupt_DISP2			= INT_SRC +  53; //< 
       
    84 
       
    85 const HCR::TElementId KHcrKey_Interrupt_Video			= INT_SRC +  61; //< 
       
    86 const HCR::TElementId KHcrKey_Interrupt_SPDIF0			= INT_SRC +  62; //< 
       
    87 const HCR::TElementId KHcrKey_Interrupt_SPDIF1			= INT_SRC +  63; //< 
       
    88 
       
    89 const HCR::TElementId KHcrKey_Interrupt_I2S0			= INT_SRC +  71; //< I2S 0 Interrupts
       
    90 const HCR::TElementId KHcrKey_Interrupt_I2S1   		  	= INT_SRC +  72; //< 
       
    91 const HCR::TElementId KHcrKey_Interrupt_I2S2			= INT_SRC +  73; //< 
       
    92 const HCR::TElementId KHcrKey_Interrupt_I2S3			= INT_SRC +  74; //<
       
    93 
       
    94 const HCR::TElementId KHcrKey_Interrupt_APB				= INT_SRC +  81; //< 
       
    95 const HCR::TElementId KHcrKey_Interrupt_AHB0			= INT_SRC +  82; //< 
       
    96 const HCR::TElementId KHcrKey_Interrupt_AHB1			= INT_SRC +  83; //< 
       
    97 const HCR::TElementId KHcrKey_Interrupt_AHB2			= INT_SRC +  84; //<
       
    98 
       
    99 const HCR::TElementId KHcrKey_Interrupt_AXI				= INT_SRC +  91; //<
       
   100  
       
   101 const HCR::TElementId KHcrKey_Interrupt_PCIint			= INT_SRC + 101; //< PCI Int                              
       
   102 const HCR::TElementId KHcrKey_Interrupt_PCIserrb		= INT_SRC + 102; //< PCI Systerm Error                     
       
   103 const HCR::TElementId KHcrKey_Interrupt_PCIperrb		= INT_SRC + 103; //< PCI Parity Error                      
       
   104 const HCR::TElementId KHcrKey_Interrupt_PCIExInt		= INT_SRC + 104; //<                   
       
   105 const HCR::TElementId KHcrKey_Interrupt_PCIExSerrb		= INT_SRC + 105; //<
       
   106 const HCR::TElementId KHcrKey_Interrupt_PCIExPerrb		= INT_SRC + 106; //<
       
   107                                                                              
       
   108 const HCR::TElementId KHcrKey_Interrupt_USBHintA 		= INT_SRC + 111; //< USB Host Int A   
       
   109 const HCR::TElementId KHcrKey_Interrupt_USBHintB		= INT_SRC + 112; //< USB Host Int B       
       
   110 const HCR::TElementId KHcrKey_Interrupt_USBHsmi			= INT_SRC + 113; //< USB Host System Management Interrupt       
       
   111 const HCR::TElementId KHcrKey_Interrupt_USBHpme			= INT_SRC + 114; //< USB Host Power Management Event
       
   112 
       
   113 const HCR::TElementId KHcrKey_Interrupt_ATA6			= INT_SRC + 121; //<
       
   114  
       
   115 const HCR::TElementId KHcrKey_Interrupt_DMAC32_0end		= INT_SRC + 131; //< 
       
   116 const HCR::TElementId KHcrKey_Interrupt_DMAC32_0err		= INT_SRC + 132; //< 
       
   117 const HCR::TElementId KHcrKey_Interrupt_DMAC32_1end		= INT_SRC + 133; //< 
       
   118 const HCR::TElementId KHcrKey_Interrupt_DMAC32_1err		= INT_SRC + 134; //< 
       
   119 const HCR::TElementId KHcrKey_Interrupt_DMAC32_2end		= INT_SRC + 135; //< 
       
   120 const HCR::TElementId KHcrKey_Interrupt_DMAC32_2err		= INT_SRC + 136; //< 
       
   121 const HCR::TElementId KHcrKey_Interrupt_DMAC32_3end		= INT_SRC + 137; //< 
       
   122 const HCR::TElementId KHcrKey_Interrupt_DMAC32_3err		= INT_SRC + 138; //<
       
   123 const HCR::TElementId KHcrKey_Interrupt_DMAC32_4end		= INT_SRC + 139; //< 
       
   124 const HCR::TElementId KHcrKey_Interrupt_DMAC32_4err		= INT_SRC + 140; //<
       
   125 
       
   126 const HCR::TElementId KHcrKey_Interrupt_UART0			= INT_SRC + 151; //< SoC Uart #0 
       
   127 const HCR::TElementId KHcrKey_Interrupt_UART1			= INT_SRC + 152; //< SoC Uart #1 
       
   128 const HCR::TElementId KHcrKey_Interrupt_UART2			= INT_SRC + 153; //< SoC Uart #2 
       
   129 const HCR::TElementId KHcrKey_Interrupt_UART3			= INT_SRC + 154; //< 
       
   130 const HCR::TElementId KHcrKey_Interrupt_UART4			= INT_SRC + 155; //< 
       
   131 const HCR::TElementId KHcrKey_Interrupt_UART5			= INT_SRC + 156; //< 
       
   132 const HCR::TElementId KHcrKey_Interrupt_UART6			= INT_SRC + 157; //< 
       
   133 const HCR::TElementId KHcrKey_Interrupt_UART7			= INT_SRC + 158; //<
       
   134  
       
   135 const HCR::TElementId KHcrKey_Interrupt_GPIO			= INT_SRC + 161; //< 
       
   136 const HCR::TElementId KHcrKey_Interrupt_eWDT			= INT_SRC + 162; //<
       
   137 const HCR::TElementId KHcrKey_Interrupt_SATA			= INT_SRC + 163; //<
       
   138  
       
   139 const HCR::TElementId KHcrKey_Interrupt_DMACaxi_End		= INT_SRC + 171; //< 
       
   140 const HCR::TElementId KHcrKey_Interrupt_DMACaxi_Err		= INT_SRC + 172; //<
       
   141  
       
   142 const HCR::TElementId KHcrKey_Interrupt_PMUIRG0  		= INT_SRC + 181; //< 
       
   143 const HCR::TElementId KHcrKey_Interrupt_PMUIRG1			= INT_SRC + 182; //< 
       
   144 const HCR::TElementId KHcrKey_Interrupt_PMUIRG2			= INT_SRC + 183; //< 
       
   145 const HCR::TElementId KHcrKey_Interrupt_PMUIRG3			= INT_SRC + 184; //< 
       
   146 const HCR::TElementId KHcrKey_Interrupt_PMUIRG4			= INT_SRC + 185; //< 
       
   147 const HCR::TElementId KHcrKey_Interrupt_PMUIRG5			= INT_SRC + 186; //< 
       
   148 const HCR::TElementId KHcrKey_Interrupt_PMUIRG6			= INT_SRC + 187; //< 
       
   149 const HCR::TElementId KHcrKey_Interrupt_PMUIRG7			= INT_SRC + 188; //< 
       
   150 const HCR::TElementId KHcrKey_Interrupt_PMUIRG8			= INT_SRC + 189; //< 
       
   151 const HCR::TElementId KHcrKey_Interrupt_PMUIRG9			= INT_SRC + 190; //< 
       
   152 const HCR::TElementId KHcrKey_Interrupt_PMUIRG10		= INT_SRC + 191; //< 
       
   153 const HCR::TElementId KHcrKey_Interrupt_PMUIRG11		= INT_SRC + 192; //< 
       
   154 
       
   155 const HCR::TElementId KHcrKey_Interrupt_COMMRX0			= INT_SRC + 201; //< 
       
   156 const HCR::TElementId KHcrKey_Interrupt_COMMRX1			= INT_SRC + 202; //< 
       
   157 const HCR::TElementId KHcrKey_Interrupt_COMMRX2			= INT_SRC + 203; //< 
       
   158 const HCR::TElementId KHcrKey_Interrupt_COMMRX3			= INT_SRC + 204; //< 
       
   159 const HCR::TElementId KHcrKey_Interrupt_COMMTX0			= INT_SRC + 205; //< 
       
   160 const HCR::TElementId KHcrKey_Interrupt_COMMTX1			= INT_SRC + 206; //< 
       
   161 const HCR::TElementId KHcrKey_Interrupt_COMMTX2			= INT_SRC + 207; //< 
       
   162 const HCR::TElementId KHcrKey_Interrupt_COMMTX3			= INT_SRC + 208; //<
       
   163 
       
   164 const HCR::TElementId KHcrKey_Interrupt_PWRCTLO0		= INT_SRC + 211; //< 
       
   165 const HCR::TElementId KHcrKey_Interrupt_PWRCTLO1		= INT_SRC + 212; //< 
       
   166 const HCR::TElementId KHcrKey_Interrupt_PWRCTLO2		= INT_SRC + 213; //< 
       
   167 const HCR::TElementId KHcrKey_Interrupt_PWRCTLO3		= INT_SRC + 214; //< 
       
   168 
       
   169 const HCR::TElementId KHcrKey_Interrupt_DMACexbus_End	= INT_SRC + 221; //< 
       
   170 const HCR::TElementId KHcrKey_Interrupt_DMACexbus_Err	= INT_SRC + 222; //< 
       
   171 const HCR::TElementId KHcrKey_Interrupt_AHBbridge3		= INT_SRC + 223; //< 
       
   172 
       
   173 #undef INT_SRC
       
   174 
       
   175 
       
   176 /**
       
   177 HCR Settings identifing the GPIO pin assignments.
       
   178 
       
   179 These element keys are used along with the KHcrCat_MHA_GPIO category UID
       
   180 to identify and read the HCR setting.
       
   181 */
       
   182 #define GPIO_PIN 0x00020000
       
   183 const HCR::TElementId KHcrKey_GpioPin_UART1_DSR		= GPIO_PIN +  11; //< Serial DSR on RGB board
       
   184 const HCR::TElementId KHcrKey_GpioPin_UART1_DTR		= GPIO_PIN +  12; //< Serial DTR on RGB board
       
   185 const HCR::TElementId KHcrKey_GpioPin_UART1_DCD		= GPIO_PIN +  13; //< Serial DCD on RGB board
       
   186 	
       
   187 const HCR::TElementId KHcrKey_GpioPin_CKERST		= GPIO_PIN +  21; //< Line to FPGA
       
   188 
       
   189 const HCR::TElementId KHcrKey_GpioPin_CSI_CS42L51	= GPIO_PIN +  22; //< Line to CS42L51
       
   190 const HCR::TElementId KHcrKey_GpioPin_CSIa 			= GPIO_PIN +  23; //< Line to Test Pin Header
       
   191 const HCR::TElementId KHcrKey_GpioPin_CSIb			= GPIO_PIN +  24; //< Line to Test Pin Header
       
   192 const HCR::TElementId KHcrKey_GpioPin_CSIc			= GPIO_PIN +  25; //< Line to Test Pin Header
       
   193 
       
   194 const HCR::TElementId KHcrKey_GpioPin_PCIa			= GPIO_PIN +  26; //< ExtBus Connector
       
   195 const HCR::TElementId KHcrKey_GpioPin_PCIb			= GPIO_PIN +  27; //< ExtBus Connector
       
   196 const HCR::TElementId KHcrKey_GpioPin_PCIc			= GPIO_PIN +  28; //< ExtBus Connector
       
   197 	
       
   198 const HCR::TElementId KHcrKey_GpioPin_RGB			= GPIO_PIN +  41; //< Line to FPGA
       
   199 
       
   200 const HCR::TElementId KHcrKey_GpioPin_eTRON		 	= GPIO_PIN +  42; //< Line to FPGA
       
   201 
       
   202 const HCR::TElementId KHcrKey_GpioPin_LCDl			= GPIO_PIN +  43; //< Line to FPGA
       
   203 
       
   204 const HCR::TElementId KHcrKey_GpioPin_RTC			= GPIO_PIN +  44; //< Line to FPGA
       
   205 
       
   206 const HCR::TElementId KHcrKey_GpioPin_LINT20		= GPIO_PIN +  45; //< Line to FPGA
       
   207 
       
   208 const HCR::TElementId KHcrKey_GpioPin_AUDIO_RESET	= GPIO_PIN +  46; //< CS42L51 codec reset line
       
   209 
       
   210 const HCR::TElementId KHcrKey_GpioPin_SWb0			= GPIO_PIN +  61; //< Line to FPGA
       
   211 const HCR::TElementId KHcrKey_GpioPin_SWb1			= GPIO_PIN +  62; //< Line to FPGA
       
   212 #undef GPIO_PIN
       
   213 
       
   214 
       
   215 /**
       
   216 HCR Settings identifing the I2S Bus Channels. 
       
   217 
       
   218 These element keys are used along with the KHcrCat_MHA_I2S category UID
       
   219 to identify and read the HCR setting.
       
   220 */
       
   221 #define I2S_CHAN 0x00030000
       
   222 const HCR::TElementId KHcrKey_I2S_CS42L51			= I2S_CHAN +  11; //< Channel used with the Audio Codec
       
   223 const HCR::TElementId KHcrKey_I2S_Reserved1			= I2S_CHAN +  12; //< 
       
   224 const HCR::TElementId KHcrKey_I2S_Reserved2			= I2S_CHAN +  13; //< 
       
   225 const HCR::TElementId KHcrKey_I2S_Reserved3			= I2S_CHAN +  14; //< 
       
   226 #undef I2S_CHAN
       
   227 
       
   228 
       
   229 /**
       
   230 HCR Settings identifing the I2C Bus IDs. 
       
   231 
       
   232 These element keys are used along with the KHcrCat_MHA_I2C category UID
       
   233 to identify and read the HCR setting.
       
   234 */
       
   235 #define I2C_BUS 0x00040000
       
   236 const HCR::TElementId KHcrKey_I2C_ReservedA			= I2C_BUS +  11; //< 
       
   237 const HCR::TElementId KHcrKey_I2C_ReservedB			= I2C_BUS +  12; //< 
       
   238 #undef I2S_BUS
       
   239 
       
   240 
       
   241 /**
       
   242 HCR Settings identifing the SPI/CSI Bus Channels. 
       
   243 
       
   244 These element keys are used along with the KHcrCat_MHA_SPI_CSI category UID
       
   245 to identify and read the HCR setting.
       
   246 */
       
   247 #define CSI_CHAN 0x00050000
       
   248 const HCR::TElementId KHcrKey_CSI_CS42L51			= CSI_CHAN +  11; //< 
       
   249 const HCR::TElementId KHcrKey_CSI_ReservedB			= CSI_CHAN +  12; //< 
       
   250 #undef CSI_CHAN
       
   251 
       
   252 
       
   253 #endif HCRCONFIG_MHA_H
       
   254