mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										215
									
								
								arch/blackfin/mach-bf538/include/mach/anomaly.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										215
									
								
								arch/blackfin/mach-bf538/include/mach/anomaly.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,215 @@ | |||
| /*
 | ||||
|  * DO NOT EDIT THIS FILE | ||||
|  * This file is under version control at | ||||
|  *   svn://sources.blackfin.uclinux.org/toolchain/trunk/proc-defs/header-frags/
 | ||||
|  * and can be replaced with that version at any time | ||||
|  * DO NOT EDIT THIS FILE | ||||
|  * | ||||
|  * Copyright 2004-2011 Analog Devices Inc. | ||||
|  * Licensed under the Clear BSD license. | ||||
|  */ | ||||
| 
 | ||||
| /* This file should be up to date with:
 | ||||
|  *  - Revision J, 05/23/2011; ADSP-BF538/BF538F Blackfin Processor Anomaly List | ||||
|  *  - Revision O, 05/23/2011; ADSP-BF539/BF539F Blackfin Processor Anomaly List | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _MACH_ANOMALY_H_ | ||||
| #define _MACH_ANOMALY_H_ | ||||
| 
 | ||||
| /* We do not support old silicon - sorry */ | ||||
| #if __SILICON_REVISION__ < 4 | ||||
| # error will not work on BF538/BF539 silicon version 0.0, 0.1, 0.2, or 0.3 | ||||
| #endif | ||||
| 
 | ||||
| #if defined(__ADSPBF538__) | ||||
| # define ANOMALY_BF538 1 | ||||
| #else | ||||
| # define ANOMALY_BF538 0 | ||||
| #endif | ||||
| #if defined(__ADSPBF539__) | ||||
| # define ANOMALY_BF539 1 | ||||
| #else | ||||
| # define ANOMALY_BF539 0 | ||||
| #endif | ||||
| 
 | ||||
| /* Multi-Issue Instruction with dsp32shiftimm in slot1 and P-reg Store in slot2 Not Supported */ | ||||
| #define ANOMALY_05000074 (1) | ||||
| /* DMA_RUN Bit Is Not Valid after a Peripheral Receive Channel DMA Stops */ | ||||
| #define ANOMALY_05000119 (1) | ||||
| /* Rx.H Cannot Be Used to Access 16-bit System MMR Registers */ | ||||
| #define ANOMALY_05000122 (1) | ||||
| /* PPI Data Lengths between 8 and 16 Do Not Zero Out Upper Bits */ | ||||
| #define ANOMALY_05000166 (1) | ||||
| /* PPI_COUNT Cannot Be Programmed to 0 in General Purpose TX or RX Modes */ | ||||
| #define ANOMALY_05000179 (1) | ||||
| /* PPI_DELAY Not Functional in PPI Modes with 0 Frame Syncs */ | ||||
| #define ANOMALY_05000180 (1) | ||||
| /* False I/O Pin Interrupts on Edge-Sensitive Inputs When Polarity Setting Is Changed */ | ||||
| #define ANOMALY_05000193 (1) | ||||
| /* Current DMA Address Shows Wrong Value During Carry Fix */ | ||||
| #define ANOMALY_05000199 (__SILICON_REVISION__ < 4) | ||||
| /* NMI Event at Boot Time Results in Unpredictable State */ | ||||
| #define ANOMALY_05000219 (1) | ||||
| /* SPI Slave Boot Mode Modifies Registers from Reset Value */ | ||||
| #define ANOMALY_05000229 (1) | ||||
| /* PPI_FS3 Is Not Driven in 2 or 3 Internal Frame Sync Transmit Modes */ | ||||
| #define ANOMALY_05000233 (1) | ||||
| /* False Hardware Error from an Access in the Shadow of a Conditional Branch */ | ||||
| #define ANOMALY_05000245 (1) | ||||
| /* Maximum External Clock Speed for Timers */ | ||||
| #define ANOMALY_05000253 (1) | ||||
| /* High I/O Activity Causes Output Voltage of Internal Voltage Regulator (Vddint) to Decrease */ | ||||
| #define ANOMALY_05000270 (__SILICON_REVISION__ < 4) | ||||
| /* Certain Data Cache Writethrough Modes Fail for Vddint <= 0.9V */ | ||||
| #define ANOMALY_05000272 (ANOMALY_BF538) | ||||
| /* Writes to Synchronous SDRAM Memory May Be Lost */ | ||||
| #define ANOMALY_05000273 (__SILICON_REVISION__ < 4) | ||||
| /* Writes to an I/O Data Register One SCLK Cycle after an Edge Is Detected May Clear Interrupt */ | ||||
| #define ANOMALY_05000277 (__SILICON_REVISION__ < 4) | ||||
| /* Disabling Peripherals with DMA Running May Cause DMA System Instability */ | ||||
| #define ANOMALY_05000278 (__SILICON_REVISION__ < 4) | ||||
| /* False Hardware Error when ISR Context Is Not Restored */ | ||||
| #define ANOMALY_05000281 (__SILICON_REVISION__ < 4) | ||||
| /* Memory DMA Corruption with 32-Bit Data and Traffic Control */ | ||||
| #define ANOMALY_05000282 (__SILICON_REVISION__ < 4) | ||||
| /* System MMR Write Is Stalled Indefinitely when Killed in a Particular Stage */ | ||||
| #define ANOMALY_05000283 (__SILICON_REVISION__ < 4) | ||||
| /* SPORTs May Receive Bad Data If FIFOs Fill Up */ | ||||
| #define ANOMALY_05000288 (__SILICON_REVISION__ < 4) | ||||
| /* Reads from CAN Mailbox and Acceptance Mask Area Can Fail */ | ||||
| #define ANOMALY_05000291 (__SILICON_REVISION__ < 4) | ||||
| /* Hibernate Leakage Current Is Higher Than Specified */ | ||||
| #define ANOMALY_05000293 (__SILICON_REVISION__ < 4) | ||||
| /* Timer Pin Limitations for PPI TX Modes with External Frame Syncs */ | ||||
| #define ANOMALY_05000294 (1) | ||||
| /* Memory-To-Memory DMA Source/Destination Descriptors Must Be in Same Memory Space */ | ||||
| #define ANOMALY_05000301 (__SILICON_REVISION__ < 4) | ||||
| /* SSYNCs After Writes To CAN/DMA MMR Registers Are Not Always Handled Correctly */ | ||||
| #define ANOMALY_05000304 (__SILICON_REVISION__ < 4) | ||||
| /* SCKELOW Bit Does Not Maintain State Through Hibernate */ | ||||
| #define ANOMALY_05000307 (__SILICON_REVISION__ < 4) | ||||
| /* False Hardware Errors Caused by Fetches at the Boundary of Reserved Memory */ | ||||
| #define ANOMALY_05000310 (1) | ||||
| /* Errors when SSYNC, CSYNC, or Loads to LT, LB and LC Registers Are Interrupted */ | ||||
| #define ANOMALY_05000312 (__SILICON_REVISION__ < 5) | ||||
| /* PPI Is Level-Sensitive on First Transfer In Single Frame Sync Modes */ | ||||
| #define ANOMALY_05000313 (__SILICON_REVISION__ < 4) | ||||
| /* Killed System MMR Write Completes Erroneously on Next System MMR Access */ | ||||
| #define ANOMALY_05000315 (__SILICON_REVISION__ < 4) | ||||
| /* PFx Glitch on Write to PORTFIO or PORTFIO_TOGGLE */ | ||||
| #define ANOMALY_05000317 (__SILICON_REVISION__ < 4)	/* XXX: Same as 05000318 */ | ||||
| /* PFx Glitch on Write to FIO_FLAG_D or FIO_FLAG_T */ | ||||
| #define ANOMALY_05000318 (__SILICON_REVISION__ < 4)	/* XXX: Same as 05000317 */ | ||||
| /* Regulator Programming Blocked when Hibernate Wakeup Source Remains Active */ | ||||
| #define ANOMALY_05000355 (__SILICON_REVISION__ < 5) | ||||
| /* Serial Port (SPORT) Multichannel Transmit Failure when Channel 0 Is Disabled */ | ||||
| #define ANOMALY_05000357 (__SILICON_REVISION__ < 5) | ||||
| /* PPI Underflow Error Goes Undetected in ITU-R 656 Mode */ | ||||
| #define ANOMALY_05000366 (1) | ||||
| /* Possible RETS Register Corruption when Subroutine Is under 5 Cycles in Duration */ | ||||
| #define ANOMALY_05000371 (__SILICON_REVISION__ < 5) | ||||
| /* Entering Hibernate State with Peripheral Wakeups Enabled Draws Excess Current */ | ||||
| #define ANOMALY_05000374 (__SILICON_REVISION__ == 4) | ||||
| /* GPIO Pins PC1 and PC4 Can Function as Normal Outputs */ | ||||
| #define ANOMALY_05000375 (__SILICON_REVISION__ < 4) | ||||
| /* SSYNC Stalls Processor when Executed from Non-Cacheable Memory */ | ||||
| #define ANOMALY_05000402 (__SILICON_REVISION__ == 3) | ||||
| /* Level-Sensitive External GPIO Wakeups May Cause Indefinite Stall */ | ||||
| #define ANOMALY_05000403 (1) | ||||
| /* Speculative Fetches Can Cause Undesired External FIFO Operations */ | ||||
| #define ANOMALY_05000416 (1) | ||||
| /* Multichannel SPORT Channel Misalignment Under Specific Configuration */ | ||||
| #define ANOMALY_05000425 (1) | ||||
| /* Speculative Fetches of Indirect-Pointer Instructions Can Cause False Hardware Errors */ | ||||
| #define ANOMALY_05000426 (1) | ||||
| /* Specific GPIO Pins May Change State when Entering Hibernate */ | ||||
| #define ANOMALY_05000436 (__SILICON_REVISION__ > 3) | ||||
| /* IFLUSH Instruction at End of Hardware Loop Causes Infinite Stall */ | ||||
| #define ANOMALY_05000443 (1) | ||||
| /* False Hardware Error when RETI Points to Invalid Memory */ | ||||
| #define ANOMALY_05000461 (1) | ||||
| /* Synchronization Problem at Startup May Cause SPORT Transmit Channels to Misalign */ | ||||
| #define ANOMALY_05000462 (1) | ||||
| /* Interrupted SPORT Receive Data Register Read Results In Underflow when SLEN > 15 */ | ||||
| #define ANOMALY_05000473 (1) | ||||
| /* Possible Lockup Condition when Modifying PLL from External Memory */ | ||||
| #define ANOMALY_05000475 (1) | ||||
| /* TESTSET Instruction Cannot Be Interrupted */ | ||||
| #define ANOMALY_05000477 (1) | ||||
| /* Reads of ITEST_COMMAND and ITEST_DATA Registers Cause Cache Corruption */ | ||||
| #define ANOMALY_05000481 (1) | ||||
| /* PLL May Latch Incorrect Values Coming Out of Reset */ | ||||
| #define ANOMALY_05000489 (1) | ||||
| /* Instruction Memory Stalls Can Cause IFLUSH to Fail */ | ||||
| #define ANOMALY_05000491 (1) | ||||
| /* EXCPT Instruction May Be Lost If NMI Happens Simultaneously */ | ||||
| #define ANOMALY_05000494 (1) | ||||
| /* RXS Bit in SPI_STAT May Become Stuck In RX DMA Modes */ | ||||
| #define ANOMALY_05000501 (1) | ||||
| 
 | ||||
| /*
 | ||||
|  * These anomalies have been "phased" out of analog.com anomaly sheets and are | ||||
|  * here to show running on older silicon just isn't feasible. | ||||
|  */ | ||||
| 
 | ||||
| /* If I-Cache Is On, CSYNC/SSYNC/IDLE Around Change of Control Causes Failures */ | ||||
| #define ANOMALY_05000244 (__SILICON_REVISION__ < 3) | ||||
| /* DCPLB_FAULT_ADDR MMR Register May Be Corrupted */ | ||||
| #define ANOMALY_05000261 (__SILICON_REVISION__ < 3) | ||||
| 
 | ||||
| /* Anomalies that don't exist on this proc */ | ||||
| #define ANOMALY_05000099 (0) | ||||
| #define ANOMALY_05000120 (0) | ||||
| #define ANOMALY_05000125 (0) | ||||
| #define ANOMALY_05000149 (0) | ||||
| #define ANOMALY_05000158 (0) | ||||
| #define ANOMALY_05000171 (0) | ||||
| #define ANOMALY_05000182 (0) | ||||
| #define ANOMALY_05000189 (0) | ||||
| #define ANOMALY_05000198 (0) | ||||
| #define ANOMALY_05000202 (0) | ||||
| #define ANOMALY_05000215 (0) | ||||
| #define ANOMALY_05000220 (0) | ||||
| #define ANOMALY_05000227 (0) | ||||
| #define ANOMALY_05000230 (0) | ||||
| #define ANOMALY_05000231 (0) | ||||
| #define ANOMALY_05000234 (0) | ||||
| #define ANOMALY_05000242 (0) | ||||
| #define ANOMALY_05000248 (0) | ||||
| #define ANOMALY_05000250 (0) | ||||
| #define ANOMALY_05000254 (0) | ||||
| #define ANOMALY_05000257 (0) | ||||
| #define ANOMALY_05000263 (0) | ||||
| #define ANOMALY_05000266 (0) | ||||
| #define ANOMALY_05000274 (0) | ||||
| #define ANOMALY_05000287 (0) | ||||
| #define ANOMALY_05000305 (0) | ||||
| #define ANOMALY_05000311 (0) | ||||
| #define ANOMALY_05000323 (0) | ||||
| #define ANOMALY_05000353 (1) | ||||
| #define ANOMALY_05000362 (1) | ||||
| #define ANOMALY_05000363 (0) | ||||
| #define ANOMALY_05000364 (0) | ||||
| #define ANOMALY_05000380 (0) | ||||
| #define ANOMALY_05000383 (0) | ||||
| #define ANOMALY_05000386 (1) | ||||
| #define ANOMALY_05000389 (0) | ||||
| #define ANOMALY_05000400 (0) | ||||
| #define ANOMALY_05000412 (0) | ||||
| #define ANOMALY_05000430 (0) | ||||
| #define ANOMALY_05000432 (0) | ||||
| #define ANOMALY_05000435 (0) | ||||
| #define ANOMALY_05000440 (0) | ||||
| #define ANOMALY_05000447 (0) | ||||
| #define ANOMALY_05000448 (0) | ||||
| #define ANOMALY_05000456 (0) | ||||
| #define ANOMALY_05000450 (0) | ||||
| #define ANOMALY_05000465 (0) | ||||
| #define ANOMALY_05000467 (0) | ||||
| #define ANOMALY_05000474 (0) | ||||
| #define ANOMALY_05000480 (0) | ||||
| #define ANOMALY_05000485 (0) | ||||
| #define ANOMALY_16000030 (0) | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										103
									
								
								arch/blackfin/mach-bf538/include/mach/bf538.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								arch/blackfin/mach-bf538/include/mach/bf538.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,103 @@ | |||
| /*
 | ||||
|  * SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF538 | ||||
|  * | ||||
|  * Copyright 2008 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __MACH_BF538_H__ | ||||
| #define __MACH_BF538_H__ | ||||
| 
 | ||||
| #define OFFSET_(x) ((x) & 0x0000FFFF) | ||||
| 
 | ||||
| /*some misc defines*/ | ||||
| #define IMASK_IVG15		0x8000 | ||||
| #define IMASK_IVG14		0x4000 | ||||
| #define IMASK_IVG13		0x2000 | ||||
| #define IMASK_IVG12		0x1000 | ||||
| 
 | ||||
| #define IMASK_IVG11		0x0800 | ||||
| #define IMASK_IVG10		0x0400 | ||||
| #define IMASK_IVG9		0x0200 | ||||
| #define IMASK_IVG8		0x0100 | ||||
| 
 | ||||
| #define IMASK_IVG7		0x0080 | ||||
| #define IMASK_IVGTMR	0x0040 | ||||
| #define IMASK_IVGHW		0x0020 | ||||
| 
 | ||||
| /***************************/ | ||||
| 
 | ||||
| #define BFIN_DSUBBANKS	4 | ||||
| #define BFIN_DWAYS		2 | ||||
| #define BFIN_DLINES		64 | ||||
| #define BFIN_ISUBBANKS	4 | ||||
| #define BFIN_IWAYS		4 | ||||
| #define BFIN_ILINES		32 | ||||
| 
 | ||||
| #define WAY0_L			0x1 | ||||
| #define WAY1_L			0x2 | ||||
| #define WAY01_L			0x3 | ||||
| #define WAY2_L			0x4 | ||||
| #define WAY02_L			0x5 | ||||
| #define	WAY12_L			0x6 | ||||
| #define	WAY012_L		0x7 | ||||
| 
 | ||||
| #define	WAY3_L			0x8 | ||||
| #define	WAY03_L			0x9 | ||||
| #define	WAY13_L			0xA | ||||
| #define	WAY013_L		0xB | ||||
| 
 | ||||
| #define	WAY32_L			0xC | ||||
| #define	WAY320_L		0xD | ||||
| #define	WAY321_L		0xE | ||||
| #define	WAYALL_L		0xF | ||||
| 
 | ||||
| #define DMC_ENABLE (2<<2)	/*yes, 2, not 1 */ | ||||
| 
 | ||||
| /********************************* EBIU Settings ************************************/ | ||||
| #define AMBCTL0VAL	((CONFIG_BANK_1 << 16) | CONFIG_BANK_0) | ||||
| #define AMBCTL1VAL	((CONFIG_BANK_3 << 16) | CONFIG_BANK_2) | ||||
| 
 | ||||
| #ifdef CONFIG_C_AMBEN_ALL | ||||
| #define V_AMBEN AMBEN_ALL | ||||
| #endif | ||||
| #ifdef CONFIG_C_AMBEN | ||||
| #define V_AMBEN 0x0 | ||||
| #endif | ||||
| #ifdef CONFIG_C_AMBEN_B0 | ||||
| #define V_AMBEN AMBEN_B0 | ||||
| #endif | ||||
| #ifdef CONFIG_C_AMBEN_B0_B1 | ||||
| #define V_AMBEN AMBEN_B0_B1 | ||||
| #endif | ||||
| #ifdef CONFIG_C_AMBEN_B0_B1_B2 | ||||
| #define V_AMBEN AMBEN_B0_B1_B2 | ||||
| #endif | ||||
| #ifdef CONFIG_C_AMCKEN | ||||
| #define V_AMCKEN AMCKEN | ||||
| #else | ||||
| #define V_AMCKEN 0x0 | ||||
| #endif | ||||
| #ifdef CONFIG_C_CDPRIO | ||||
| #define V_CDPRIO 0x100 | ||||
| #else | ||||
| #define V_CDPRIO 0x0 | ||||
| #endif | ||||
| 
 | ||||
| #define AMGCTLVAL	(V_AMBEN | V_AMCKEN | V_CDPRIO) | ||||
| 
 | ||||
| #ifdef CONFIG_BF538 | ||||
| #define CPU "BF538" | ||||
| #define CPUID 0x27C4 | ||||
| #endif | ||||
| #ifdef CONFIG_BF539 | ||||
| #define CPU "BF539" | ||||
| #define CPUID 0x27C4	/* FXIME:? */ | ||||
| #endif | ||||
| 
 | ||||
| #ifndef CPU | ||||
| #error "Unknown CPU type - This kernel doesn't seem to be configured properly" | ||||
| #endif | ||||
| 
 | ||||
| #endif				/* __MACH_BF538_H__  */ | ||||
							
								
								
									
										14
									
								
								arch/blackfin/mach-bf538/include/mach/bfin_serial.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								arch/blackfin/mach-bf538/include/mach/bfin_serial.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| /*
 | ||||
|  * mach/bfin_serial.h - Blackfin UART/Serial definitions | ||||
|  * | ||||
|  * Copyright 2006-2010 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __BFIN_MACH_SERIAL_H__ | ||||
| #define __BFIN_MACH_SERIAL_H__ | ||||
| 
 | ||||
| #define BFIN_UART_NR_PORTS	3 | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										33
									
								
								arch/blackfin/mach-bf538/include/mach/blackfin.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								arch/blackfin/mach-bf538/include/mach/blackfin.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| /*
 | ||||
|  * Copyright 2008-2010 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _MACH_BLACKFIN_H_ | ||||
| #define _MACH_BLACKFIN_H_ | ||||
| 
 | ||||
| #define BF538_FAMILY | ||||
| 
 | ||||
| #include "bf538.h" | ||||
| #include "anomaly.h" | ||||
| 
 | ||||
| #include <asm/def_LPBlackfin.h> | ||||
| #ifdef CONFIG_BF538 | ||||
| # include "defBF538.h" | ||||
| #endif | ||||
| #ifdef CONFIG_BF539 | ||||
| # include "defBF539.h" | ||||
| #endif | ||||
| 
 | ||||
| #ifndef __ASSEMBLY__ | ||||
| # include <asm/cdef_LPBlackfin.h> | ||||
| # ifdef CONFIG_BF538 | ||||
| #  include "cdefBF538.h" | ||||
| # endif | ||||
| # ifdef CONFIG_BF539 | ||||
| #  include "cdefBF539.h" | ||||
| # endif | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										1960
									
								
								arch/blackfin/mach-bf538/include/mach/cdefBF538.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1960
									
								
								arch/blackfin/mach-bf538/include/mach/cdefBF538.h
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										240
									
								
								arch/blackfin/mach-bf538/include/mach/cdefBF539.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										240
									
								
								arch/blackfin/mach-bf538/include/mach/cdefBF539.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,240 @@ | |||
| /*
 | ||||
|  * Copyright 2008-2010 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _CDEF_BF539_H | ||||
| #define _CDEF_BF539_H | ||||
| 
 | ||||
| /* Include MMRs Common to BF538 								*/ | ||||
| #include "cdefBF538.h" | ||||
| 
 | ||||
| #define bfin_read_MXVR_CONFIG()        bfin_read16(MXVR_CONFIG) | ||||
| #define bfin_write_MXVR_CONFIG(val)    bfin_write16(MXVR_CONFIG, val) | ||||
| #define bfin_read_MXVR_PLL_CTL_0()     bfin_read32(MXVR_PLL_CTL_0) | ||||
| #define bfin_write_MXVR_PLL_CTL_0(val) bfin_write32(MXVR_PLL_CTL_0, val) | ||||
| #define bfin_read_MXVR_STATE_0()       bfin_read32(MXVR_STATE_0) | ||||
| #define bfin_write_MXVR_STATE_0(val)   bfin_write32(MXVR_STATE_0, val) | ||||
| #define bfin_read_MXVR_STATE_1()       bfin_read32(MXVR_STATE_1) | ||||
| #define bfin_write_MXVR_STATE_1(val)   bfin_write32(MXVR_STATE_1, val) | ||||
| #define bfin_read_MXVR_INT_STAT_0()    bfin_read32(MXVR_INT_STAT_0) | ||||
| #define bfin_write_MXVR_INT_STAT_0(val) bfin_write32(MXVR_INT_STAT_0, val) | ||||
| #define bfin_read_MXVR_INT_STAT_1()    bfin_read32(MXVR_INT_STAT_1) | ||||
| #define bfin_write_MXVR_INT_STAT_1(val) bfin_write32(MXVR_INT_STAT_1, val) | ||||
| #define bfin_read_MXVR_INT_EN_0()      bfin_read32(MXVR_INT_EN_0) | ||||
| #define bfin_write_MXVR_INT_EN_0(val)  bfin_write32(MXVR_INT_EN_0, val) | ||||
| #define bfin_read_MXVR_INT_EN_1()      bfin_read32(MXVR_INT_EN_1) | ||||
| #define bfin_write_MXVR_INT_EN_1(val)  bfin_write32(MXVR_INT_EN_1, val) | ||||
| #define bfin_read_MXVR_POSITION()      bfin_read16(MXVR_POSITION) | ||||
| #define bfin_write_MXVR_POSITION(val)  bfin_write16(MXVR_POSITION, val) | ||||
| #define bfin_read_MXVR_MAX_POSITION()  bfin_read16(MXVR_MAX_POSITION) | ||||
| #define bfin_write_MXVR_MAX_POSITION(val) bfin_write16(MXVR_MAX_POSITION, val) | ||||
| #define bfin_read_MXVR_DELAY()         bfin_read16(MXVR_DELAY) | ||||
| #define bfin_write_MXVR_DELAY(val)     bfin_write16(MXVR_DELAY, val) | ||||
| #define bfin_read_MXVR_MAX_DELAY()     bfin_read16(MXVR_MAX_DELAY) | ||||
| #define bfin_write_MXVR_MAX_DELAY(val) bfin_write16(MXVR_MAX_DELAY, val) | ||||
| #define bfin_read_MXVR_LADDR()         bfin_read32(MXVR_LADDR) | ||||
| #define bfin_write_MXVR_LADDR(val)     bfin_write32(MXVR_LADDR, val) | ||||
| #define bfin_read_MXVR_GADDR()         bfin_read16(MXVR_GADDR) | ||||
| #define bfin_write_MXVR_GADDR(val)     bfin_write16(MXVR_GADDR, val) | ||||
| #define bfin_read_MXVR_AADDR()         bfin_read32(MXVR_AADDR) | ||||
| #define bfin_write_MXVR_AADDR(val)     bfin_write32(MXVR_AADDR, val) | ||||
| #define bfin_read_MXVR_ALLOC_0()       bfin_read32(MXVR_ALLOC_0) | ||||
| #define bfin_write_MXVR_ALLOC_0(val)   bfin_write32(MXVR_ALLOC_0, val) | ||||
| #define bfin_read_MXVR_ALLOC_1()       bfin_read32(MXVR_ALLOC_1) | ||||
| #define bfin_write_MXVR_ALLOC_1(val)   bfin_write32(MXVR_ALLOC_1, val) | ||||
| #define bfin_read_MXVR_ALLOC_2()       bfin_read32(MXVR_ALLOC_2) | ||||
| #define bfin_write_MXVR_ALLOC_2(val)   bfin_write32(MXVR_ALLOC_2, val) | ||||
| #define bfin_read_MXVR_ALLOC_3()       bfin_read32(MXVR_ALLOC_3) | ||||
| #define bfin_write_MXVR_ALLOC_3(val)   bfin_write32(MXVR_ALLOC_3, val) | ||||
| #define bfin_read_MXVR_ALLOC_4()       bfin_read32(MXVR_ALLOC_4) | ||||
| #define bfin_write_MXVR_ALLOC_4(val)   bfin_write32(MXVR_ALLOC_4, val) | ||||
| #define bfin_read_MXVR_ALLOC_5()       bfin_read32(MXVR_ALLOC_5) | ||||
| #define bfin_write_MXVR_ALLOC_5(val)   bfin_write32(MXVR_ALLOC_5, val) | ||||
| #define bfin_read_MXVR_ALLOC_6()       bfin_read32(MXVR_ALLOC_6) | ||||
| #define bfin_write_MXVR_ALLOC_6(val)   bfin_write32(MXVR_ALLOC_6, val) | ||||
| #define bfin_read_MXVR_ALLOC_7()       bfin_read32(MXVR_ALLOC_7) | ||||
| #define bfin_write_MXVR_ALLOC_7(val)   bfin_write32(MXVR_ALLOC_7, val) | ||||
| #define bfin_read_MXVR_ALLOC_8()       bfin_read32(MXVR_ALLOC_8) | ||||
| #define bfin_write_MXVR_ALLOC_8(val)   bfin_write32(MXVR_ALLOC_8, val) | ||||
| #define bfin_read_MXVR_ALLOC_9()       bfin_read32(MXVR_ALLOC_9) | ||||
| #define bfin_write_MXVR_ALLOC_9(val)   bfin_write32(MXVR_ALLOC_9, val) | ||||
| #define bfin_read_MXVR_ALLOC_10()      bfin_read32(MXVR_ALLOC_10) | ||||
| #define bfin_write_MXVR_ALLOC_10(val)  bfin_write32(MXVR_ALLOC_10, val) | ||||
| #define bfin_read_MXVR_ALLOC_11()      bfin_read32(MXVR_ALLOC_11) | ||||
| #define bfin_write_MXVR_ALLOC_11(val)  bfin_write32(MXVR_ALLOC_11, val) | ||||
| #define bfin_read_MXVR_ALLOC_12()      bfin_read32(MXVR_ALLOC_12) | ||||
| #define bfin_write_MXVR_ALLOC_12(val)  bfin_write32(MXVR_ALLOC_12, val) | ||||
| #define bfin_read_MXVR_ALLOC_13()      bfin_read32(MXVR_ALLOC_13) | ||||
| #define bfin_write_MXVR_ALLOC_13(val)  bfin_write32(MXVR_ALLOC_13, val) | ||||
| #define bfin_read_MXVR_ALLOC_14()      bfin_read32(MXVR_ALLOC_14) | ||||
| #define bfin_write_MXVR_ALLOC_14(val)  bfin_write32(MXVR_ALLOC_14, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_0()  bfin_read32(MXVR_SYNC_LCHAN_0) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_0(val) bfin_write32(MXVR_SYNC_LCHAN_0, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_1()  bfin_read32(MXVR_SYNC_LCHAN_1) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_1(val) bfin_write32(MXVR_SYNC_LCHAN_1, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_2()  bfin_read32(MXVR_SYNC_LCHAN_2) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_2(val) bfin_write32(MXVR_SYNC_LCHAN_2, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_3()  bfin_read32(MXVR_SYNC_LCHAN_3) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_3(val) bfin_write32(MXVR_SYNC_LCHAN_3, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_4()  bfin_read32(MXVR_SYNC_LCHAN_4) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_4(val) bfin_write32(MXVR_SYNC_LCHAN_4, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_5()  bfin_read32(MXVR_SYNC_LCHAN_5) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_5(val) bfin_write32(MXVR_SYNC_LCHAN_5, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_6()  bfin_read32(MXVR_SYNC_LCHAN_6) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_6(val) bfin_write32(MXVR_SYNC_LCHAN_6, val) | ||||
| #define bfin_read_MXVR_SYNC_LCHAN_7()  bfin_read32(MXVR_SYNC_LCHAN_7) | ||||
| #define bfin_write_MXVR_SYNC_LCHAN_7(val) bfin_write32(MXVR_SYNC_LCHAN_7, val) | ||||
| #define bfin_read_MXVR_DMA0_CONFIG()   bfin_read32(MXVR_DMA0_CONFIG) | ||||
| #define bfin_write_MXVR_DMA0_CONFIG(val) bfin_write32(MXVR_DMA0_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA0_START_ADDR() bfin_readPTR(MXVR_DMA0_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA0_START_ADDR(val) bfin_writePTR(MXVR_DMA0_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA0_COUNT()    bfin_read16(MXVR_DMA0_COUNT) | ||||
| #define bfin_write_MXVR_DMA0_COUNT(val) bfin_write16(MXVR_DMA0_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA0_CURR_ADDR() bfin_readPTR(MXVR_DMA0_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA0_CURR_ADDR(val) bfin_writePTR(MXVR_DMA0_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA0_CURR_COUNT() bfin_read16(MXVR_DMA0_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA0_CURR_COUNT(val) bfin_write16(MXVR_DMA0_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA1_CONFIG()   bfin_read32(MXVR_DMA1_CONFIG) | ||||
| #define bfin_write_MXVR_DMA1_CONFIG(val) bfin_write32(MXVR_DMA1_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA1_START_ADDR() bfin_readPTR(MXVR_DMA1_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA1_START_ADDR(val) bfin_writePTR(MXVR_DMA1_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA1_COUNT()    bfin_read16(MXVR_DMA1_COUNT) | ||||
| #define bfin_write_MXVR_DMA1_COUNT(val) bfin_write16(MXVR_DMA1_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA1_CURR_ADDR() bfin_readPTR(MXVR_DMA1_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA1_CURR_ADDR(val) bfin_writePTR(MXVR_DMA1_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA1_CURR_COUNT() bfin_read16(MXVR_DMA1_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA1_CURR_COUNT(val) bfin_write16(MXVR_DMA1_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA2_CONFIG()   bfin_read32(MXVR_DMA2_CONFIG) | ||||
| #define bfin_write_MXVR_DMA2_CONFIG(val) bfin_write32(MXVR_DMA2_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA2_START_ADDR() bfin_readPTR(MXVR_DMA2_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA2_START_ADDR(val) bfin_writePTR(MXVR_DMA2_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA2_COUNT()    bfin_read16(MXVR_DMA2_COUNT) | ||||
| #define bfin_write_MXVR_DMA2_COUNT(val) bfin_write16(MXVR_DMA2_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA2_CURR_ADDR() bfin_readPTR(MXVR_DMA2_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA2_CURR_ADDR(val) bfin_writePTR(MXVR_DMA2_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA2_CURR_COUNT() bfin_read16(MXVR_DMA2_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA2_CURR_COUNT(val) bfin_write16(MXVR_DMA2_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA3_CONFIG()   bfin_read32(MXVR_DMA3_CONFIG) | ||||
| #define bfin_write_MXVR_DMA3_CONFIG(val) bfin_write32(MXVR_DMA3_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA3_START_ADDR() bfin_readPTR(MXVR_DMA3_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA3_START_ADDR(val) bfin_writePTR(MXVR_DMA3_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA3_COUNT()    bfin_read16(MXVR_DMA3_COUNT) | ||||
| #define bfin_write_MXVR_DMA3_COUNT(val) bfin_write16(MXVR_DMA3_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA3_CURR_ADDR() bfin_readPTR(MXVR_DMA3_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA3_CURR_ADDR(val) bfin_writePTR(MXVR_DMA3_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA3_CURR_COUNT() bfin_read16(MXVR_DMA3_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA3_CURR_COUNT(val) bfin_write16(MXVR_DMA3_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA4_CONFIG()   bfin_read32(MXVR_DMA4_CONFIG) | ||||
| #define bfin_write_MXVR_DMA4_CONFIG(val) bfin_write32(MXVR_DMA4_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA4_START_ADDR() bfin_readPTR(MXVR_DMA4_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA4_START_ADDR(val) bfin_writePTR(MXVR_DMA4_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA4_COUNT()    bfin_read16(MXVR_DMA4_COUNT) | ||||
| #define bfin_write_MXVR_DMA4_COUNT(val) bfin_write16(MXVR_DMA4_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA4_CURR_ADDR() bfin_readPTR(MXVR_DMA4_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA4_CURR_ADDR(val) bfin_writePTR(MXVR_DMA4_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA4_CURR_COUNT() bfin_read16(MXVR_DMA4_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA4_CURR_COUNT(val) bfin_write16(MXVR_DMA4_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA5_CONFIG()   bfin_read32(MXVR_DMA5_CONFIG) | ||||
| #define bfin_write_MXVR_DMA5_CONFIG(val) bfin_write32(MXVR_DMA5_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA5_START_ADDR() bfin_readPTR(MXVR_DMA5_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA5_START_ADDR(val) bfin_writePTR(MXVR_DMA5_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA5_COUNT()    bfin_read16(MXVR_DMA5_COUNT) | ||||
| #define bfin_write_MXVR_DMA5_COUNT(val) bfin_write16(MXVR_DMA5_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA5_CURR_ADDR() bfin_readPTR(MXVR_DMA5_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA5_CURR_ADDR(val) bfin_writePTR(MXVR_DMA5_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA5_CURR_COUNT() bfin_read16(MXVR_DMA5_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA5_CURR_COUNT(val) bfin_write16(MXVR_DMA5_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA6_CONFIG()   bfin_read32(MXVR_DMA6_CONFIG) | ||||
| #define bfin_write_MXVR_DMA6_CONFIG(val) bfin_write32(MXVR_DMA6_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA6_START_ADDR() bfin_readPTR(MXVR_DMA6_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA6_START_ADDR(val) bfin_writePTR(MXVR_DMA6_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA6_COUNT()    bfin_read16(MXVR_DMA6_COUNT) | ||||
| #define bfin_write_MXVR_DMA6_COUNT(val) bfin_write16(MXVR_DMA6_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA6_CURR_ADDR() bfin_readPTR(MXVR_DMA6_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA6_CURR_ADDR(val) bfin_writePTR(MXVR_DMA6_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA6_CURR_COUNT() bfin_read16(MXVR_DMA6_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA6_CURR_COUNT(val) bfin_write16(MXVR_DMA6_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA7_CONFIG()   bfin_read32(MXVR_DMA7_CONFIG) | ||||
| #define bfin_write_MXVR_DMA7_CONFIG(val) bfin_write32(MXVR_DMA7_CONFIG, val) | ||||
| #define bfin_read_MXVR_DMA7_START_ADDR() bfin_readPTR(MXVR_DMA7_START_ADDR) | ||||
| #define bfin_write_MXVR_DMA7_START_ADDR(val) bfin_writePTR(MXVR_DMA7_START_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA7_COUNT()    bfin_read16(MXVR_DMA7_COUNT) | ||||
| #define bfin_write_MXVR_DMA7_COUNT(val) bfin_write16(MXVR_DMA7_COUNT, val) | ||||
| #define bfin_read_MXVR_DMA7_CURR_ADDR() bfin_readPTR(MXVR_DMA7_CURR_ADDR) | ||||
| #define bfin_write_MXVR_DMA7_CURR_ADDR(val) bfin_writePTR(MXVR_DMA7_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_DMA7_CURR_COUNT() bfin_read16(MXVR_DMA7_CURR_COUNT) | ||||
| #define bfin_write_MXVR_DMA7_CURR_COUNT(val) bfin_write16(MXVR_DMA7_CURR_COUNT, val) | ||||
| #define bfin_read_MXVR_AP_CTL()        bfin_read16(MXVR_AP_CTL) | ||||
| #define bfin_write_MXVR_AP_CTL(val)    bfin_write16(MXVR_AP_CTL, val) | ||||
| #define bfin_read_MXVR_APRB_START_ADDR() bfin_readPTR(MXVR_APRB_START_ADDR) | ||||
| #define bfin_write_MXVR_APRB_START_ADDR(val) bfin_writePTR(MXVR_APRB_START_ADDR, val) | ||||
| #define bfin_read_MXVR_APRB_CURR_ADDR() bfin_readPTR(MXVR_APRB_CURR_ADDR) | ||||
| #define bfin_write_MXVR_APRB_CURR_ADDR(val) bfin_writePTR(MXVR_APRB_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_APTB_START_ADDR() bfin_readPTR(MXVR_APTB_START_ADDR) | ||||
| #define bfin_write_MXVR_APTB_START_ADDR(val) bfin_writePTR(MXVR_APTB_START_ADDR, val) | ||||
| #define bfin_read_MXVR_APTB_CURR_ADDR() bfin_readPTR(MXVR_APTB_CURR_ADDR) | ||||
| #define bfin_write_MXVR_APTB_CURR_ADDR(val) bfin_writePTR(MXVR_APTB_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_CM_CTL()        bfin_read32(MXVR_CM_CTL) | ||||
| #define bfin_write_MXVR_CM_CTL(val)    bfin_write32(MXVR_CM_CTL, val) | ||||
| #define bfin_read_MXVR_CMRB_START_ADDR() bfin_readPTR(MXVR_CMRB_START_ADDR) | ||||
| #define bfin_write_MXVR_CMRB_START_ADDR(val) bfin_writePTR(MXVR_CMRB_START_ADDR, val) | ||||
| #define bfin_read_MXVR_CMRB_CURR_ADDR() bfin_readPTR(MXVR_CMRB_CURR_ADDR) | ||||
| #define bfin_write_MXVR_CMRB_CURR_ADDR(val) bfin_writePTR(MXVR_CMRB_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_CMTB_START_ADDR() bfin_readPTR(MXVR_CMTB_START_ADDR) | ||||
| #define bfin_write_MXVR_CMTB_START_ADDR(val) bfin_writePTR(MXVR_CMTB_START_ADDR, val) | ||||
| #define bfin_read_MXVR_CMTB_CURR_ADDR() bfin_readPTR(MXVR_CMTB_CURR_ADDR) | ||||
| #define bfin_write_MXVR_CMTB_CURR_ADDR(val) bfin_writePTR(MXVR_CMTB_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_RRDB_START_ADDR() bfin_readPTR(MXVR_RRDB_START_ADDR) | ||||
| #define bfin_write_MXVR_RRDB_START_ADDR(val) bfin_writePTR(MXVR_RRDB_START_ADDR, val) | ||||
| #define bfin_read_MXVR_RRDB_CURR_ADDR() bfin_readPTR(MXVR_RRDB_CURR_ADDR) | ||||
| #define bfin_write_MXVR_RRDB_CURR_ADDR(val) bfin_writePTR(MXVR_RRDB_CURR_ADDR, val) | ||||
| #define bfin_read_MXVR_PAT_DATA_0()    bfin_read32(MXVR_PAT_DATA_0) | ||||
| #define bfin_write_MXVR_PAT_DATA_0(val) bfin_write32(MXVR_PAT_DATA_0, val) | ||||
| #define bfin_read_MXVR_PAT_EN_0()      bfin_read32(MXVR_PAT_EN_0) | ||||
| #define bfin_write_MXVR_PAT_EN_0(val)  bfin_write32(MXVR_PAT_EN_0, val) | ||||
| #define bfin_read_MXVR_PAT_DATA_1()    bfin_read32(MXVR_PAT_DATA_1) | ||||
| #define bfin_write_MXVR_PAT_DATA_1(val) bfin_write32(MXVR_PAT_DATA_1, val) | ||||
| #define bfin_read_MXVR_PAT_EN_1()      bfin_read32(MXVR_PAT_EN_1) | ||||
| #define bfin_write_MXVR_PAT_EN_1(val)  bfin_write32(MXVR_PAT_EN_1, val) | ||||
| #define bfin_read_MXVR_FRAME_CNT_0()   bfin_read16(MXVR_FRAME_CNT_0) | ||||
| #define bfin_write_MXVR_FRAME_CNT_0(val) bfin_write16(MXVR_FRAME_CNT_0, val) | ||||
| #define bfin_read_MXVR_FRAME_CNT_1()   bfin_read16(MXVR_FRAME_CNT_1) | ||||
| #define bfin_write_MXVR_FRAME_CNT_1(val) bfin_write16(MXVR_FRAME_CNT_1, val) | ||||
| #define bfin_read_MXVR_ROUTING_0()     bfin_read32(MXVR_ROUTING_0) | ||||
| #define bfin_write_MXVR_ROUTING_0(val) bfin_write32(MXVR_ROUTING_0, val) | ||||
| #define bfin_read_MXVR_ROUTING_1()     bfin_read32(MXVR_ROUTING_1) | ||||
| #define bfin_write_MXVR_ROUTING_1(val) bfin_write32(MXVR_ROUTING_1, val) | ||||
| #define bfin_read_MXVR_ROUTING_2()     bfin_read32(MXVR_ROUTING_2) | ||||
| #define bfin_write_MXVR_ROUTING_2(val) bfin_write32(MXVR_ROUTING_2, val) | ||||
| #define bfin_read_MXVR_ROUTING_3()     bfin_read32(MXVR_ROUTING_3) | ||||
| #define bfin_write_MXVR_ROUTING_3(val) bfin_write32(MXVR_ROUTING_3, val) | ||||
| #define bfin_read_MXVR_ROUTING_4()     bfin_read32(MXVR_ROUTING_4) | ||||
| #define bfin_write_MXVR_ROUTING_4(val) bfin_write32(MXVR_ROUTING_4, val) | ||||
| #define bfin_read_MXVR_ROUTING_5()     bfin_read32(MXVR_ROUTING_5) | ||||
| #define bfin_write_MXVR_ROUTING_5(val) bfin_write32(MXVR_ROUTING_5, val) | ||||
| #define bfin_read_MXVR_ROUTING_6()     bfin_read32(MXVR_ROUTING_6) | ||||
| #define bfin_write_MXVR_ROUTING_6(val) bfin_write32(MXVR_ROUTING_6, val) | ||||
| #define bfin_read_MXVR_ROUTING_7()     bfin_read32(MXVR_ROUTING_7) | ||||
| #define bfin_write_MXVR_ROUTING_7(val) bfin_write32(MXVR_ROUTING_7, val) | ||||
| #define bfin_read_MXVR_ROUTING_8()     bfin_read32(MXVR_ROUTING_8) | ||||
| #define bfin_write_MXVR_ROUTING_8(val) bfin_write32(MXVR_ROUTING_8, val) | ||||
| #define bfin_read_MXVR_ROUTING_9()     bfin_read32(MXVR_ROUTING_9) | ||||
| #define bfin_write_MXVR_ROUTING_9(val) bfin_write32(MXVR_ROUTING_9, val) | ||||
| #define bfin_read_MXVR_ROUTING_10()    bfin_read32(MXVR_ROUTING_10) | ||||
| #define bfin_write_MXVR_ROUTING_10(val) bfin_write32(MXVR_ROUTING_10, val) | ||||
| #define bfin_read_MXVR_ROUTING_11()    bfin_read32(MXVR_ROUTING_11) | ||||
| #define bfin_write_MXVR_ROUTING_11(val) bfin_write32(MXVR_ROUTING_11, val) | ||||
| #define bfin_read_MXVR_ROUTING_12()    bfin_read32(MXVR_ROUTING_12) | ||||
| #define bfin_write_MXVR_ROUTING_12(val) bfin_write32(MXVR_ROUTING_12, val) | ||||
| #define bfin_read_MXVR_ROUTING_13()    bfin_read32(MXVR_ROUTING_13) | ||||
| #define bfin_write_MXVR_ROUTING_13(val) bfin_write32(MXVR_ROUTING_13, val) | ||||
| #define bfin_read_MXVR_ROUTING_14()    bfin_read32(MXVR_ROUTING_14) | ||||
| #define bfin_write_MXVR_ROUTING_14(val) bfin_write32(MXVR_ROUTING_14, val) | ||||
| #define bfin_read_MXVR_PLL_CTL_1()     bfin_read32(MXVR_PLL_CTL_1) | ||||
| #define bfin_write_MXVR_PLL_CTL_1(val) bfin_write32(MXVR_PLL_CTL_1, val) | ||||
| #define bfin_read_MXVR_BLOCK_CNT()     bfin_read16(MXVR_BLOCK_CNT) | ||||
| #define bfin_write_MXVR_BLOCK_CNT(val) bfin_write16(MXVR_BLOCK_CNT, val) | ||||
| 
 | ||||
| #endif /* _CDEF_BF539_H */ | ||||
							
								
								
									
										1749
									
								
								arch/blackfin/mach-bf538/include/mach/defBF538.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1749
									
								
								arch/blackfin/mach-bf538/include/mach/defBF538.h
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										152
									
								
								arch/blackfin/mach-bf538/include/mach/defBF539.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										152
									
								
								arch/blackfin/mach-bf538/include/mach/defBF539.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,152 @@ | |||
| /*
 | ||||
|  * Copyright 2008-2010 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the Clear BSD license or the GPL-2 (or later) | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _DEF_BF539_H | ||||
| #define _DEF_BF539_H | ||||
| 
 | ||||
| #include "defBF538.h" | ||||
| 
 | ||||
| /* Media Transceiver (MXVR)   (0xFFC02700 - 0xFFC028FF) */ | ||||
| 
 | ||||
| #define	MXVR_CONFIG	      0xFFC02700  /* MXVR Configuration	Register */ | ||||
| #define	MXVR_PLL_CTL_0	      0xFFC02704  /* MXVR Phase	Lock Loop Control Register 0 */ | ||||
| 
 | ||||
| #define	MXVR_STATE_0	      0xFFC02708  /* MXVR State	Register 0 */ | ||||
| #define	MXVR_STATE_1	      0xFFC0270C  /* MXVR State	Register 1 */ | ||||
| 
 | ||||
| #define	MXVR_INT_STAT_0	      0xFFC02710  /* MXVR Interrupt Status Register 0 */ | ||||
| #define	MXVR_INT_STAT_1	      0xFFC02714  /* MXVR Interrupt Status Register 1 */ | ||||
| 
 | ||||
| #define	MXVR_INT_EN_0	      0xFFC02718  /* MXVR Interrupt Enable Register 0 */ | ||||
| #define	MXVR_INT_EN_1	      0xFFC0271C  /* MXVR Interrupt Enable Register 1 */ | ||||
| 
 | ||||
| #define	MXVR_POSITION	      0xFFC02720  /* MXVR Node Position	Register */ | ||||
| #define	MXVR_MAX_POSITION     0xFFC02724  /* MXVR Maximum Node Position	Register */ | ||||
| 
 | ||||
| #define	MXVR_DELAY	      0xFFC02728  /* MXVR Node Frame Delay Register */ | ||||
| #define	MXVR_MAX_DELAY	      0xFFC0272C  /* MXVR Maximum Node Frame Delay Register */ | ||||
| 
 | ||||
| #define	MXVR_LADDR	      0xFFC02730  /* MXVR Logical Address Register */ | ||||
| #define	MXVR_GADDR	      0xFFC02734  /* MXVR Group	Address	Register */ | ||||
| #define	MXVR_AADDR	      0xFFC02738  /* MXVR Alternate Address Register */ | ||||
| 
 | ||||
| #define	MXVR_ALLOC_0	      0xFFC0273C  /* MXVR Allocation Table Register 0 */ | ||||
| #define	MXVR_ALLOC_1	      0xFFC02740  /* MXVR Allocation Table Register 1 */ | ||||
| #define	MXVR_ALLOC_2	      0xFFC02744  /* MXVR Allocation Table Register 2 */ | ||||
| #define	MXVR_ALLOC_3	      0xFFC02748  /* MXVR Allocation Table Register 3 */ | ||||
| #define	MXVR_ALLOC_4	      0xFFC0274C  /* MXVR Allocation Table Register 4 */ | ||||
| #define	MXVR_ALLOC_5	      0xFFC02750  /* MXVR Allocation Table Register 5 */ | ||||
| #define	MXVR_ALLOC_6	      0xFFC02754  /* MXVR Allocation Table Register 6 */ | ||||
| #define	MXVR_ALLOC_7	      0xFFC02758  /* MXVR Allocation Table Register 7 */ | ||||
| #define	MXVR_ALLOC_8	      0xFFC0275C  /* MXVR Allocation Table Register 8 */ | ||||
| #define	MXVR_ALLOC_9	      0xFFC02760  /* MXVR Allocation Table Register 9 */ | ||||
| #define	MXVR_ALLOC_10	      0xFFC02764  /* MXVR Allocation Table Register 10 */ | ||||
| #define	MXVR_ALLOC_11	      0xFFC02768  /* MXVR Allocation Table Register 11 */ | ||||
| #define	MXVR_ALLOC_12	      0xFFC0276C  /* MXVR Allocation Table Register 12 */ | ||||
| #define	MXVR_ALLOC_13	      0xFFC02770  /* MXVR Allocation Table Register 13 */ | ||||
| #define	MXVR_ALLOC_14	      0xFFC02774  /* MXVR Allocation Table Register 14 */ | ||||
| 
 | ||||
| #define	MXVR_SYNC_LCHAN_0     0xFFC02778  /* MXVR Sync Data Logical Channel Assign Register 0 */ | ||||
| #define	MXVR_SYNC_LCHAN_1     0xFFC0277C  /* MXVR Sync Data Logical Channel Assign Register 1 */ | ||||
| #define	MXVR_SYNC_LCHAN_2     0xFFC02780  /* MXVR Sync Data Logical Channel Assign Register 2 */ | ||||
| #define	MXVR_SYNC_LCHAN_3     0xFFC02784  /* MXVR Sync Data Logical Channel Assign Register 3 */ | ||||
| #define	MXVR_SYNC_LCHAN_4     0xFFC02788  /* MXVR Sync Data Logical Channel Assign Register 4 */ | ||||
| #define	MXVR_SYNC_LCHAN_5     0xFFC0278C  /* MXVR Sync Data Logical Channel Assign Register 5 */ | ||||
| #define	MXVR_SYNC_LCHAN_6     0xFFC02790  /* MXVR Sync Data Logical Channel Assign Register 6 */ | ||||
| #define	MXVR_SYNC_LCHAN_7     0xFFC02794  /* MXVR Sync Data Logical Channel Assign Register 7 */ | ||||
| 
 | ||||
| #define	MXVR_DMA0_CONFIG      0xFFC02798  /* MXVR Sync Data DMA0 Config	Register */ | ||||
| #define	MXVR_DMA0_START_ADDR  0xFFC0279C  /* MXVR Sync Data DMA0 Start Address Register */ | ||||
| #define	MXVR_DMA0_COUNT	      0xFFC027A0  /* MXVR Sync Data DMA0 Loop Count Register */ | ||||
| #define	MXVR_DMA0_CURR_ADDR   0xFFC027A4  /* MXVR Sync Data DMA0 Current Address Register */ | ||||
| #define	MXVR_DMA0_CURR_COUNT  0xFFC027A8  /* MXVR Sync Data DMA0 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA1_CONFIG      0xFFC027AC  /* MXVR Sync Data DMA1 Config	Register */ | ||||
| #define	MXVR_DMA1_START_ADDR  0xFFC027B0  /* MXVR Sync Data DMA1 Start Address Register */ | ||||
| #define	MXVR_DMA1_COUNT	      0xFFC027B4  /* MXVR Sync Data DMA1 Loop Count Register */ | ||||
| #define	MXVR_DMA1_CURR_ADDR   0xFFC027B8  /* MXVR Sync Data DMA1 Current Address Register */ | ||||
| #define	MXVR_DMA1_CURR_COUNT  0xFFC027BC  /* MXVR Sync Data DMA1 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA2_CONFIG      0xFFC027C0  /* MXVR Sync Data DMA2 Config	Register */ | ||||
| #define	MXVR_DMA2_START_ADDR  0xFFC027C4  /* MXVR Sync Data DMA2 Start Address Register */ | ||||
| #define	MXVR_DMA2_COUNT	      0xFFC027C8  /* MXVR Sync Data DMA2 Loop Count Register */ | ||||
| #define	MXVR_DMA2_CURR_ADDR   0xFFC027CC  /* MXVR Sync Data DMA2 Current Address Register */ | ||||
| #define	MXVR_DMA2_CURR_COUNT  0xFFC027D0  /* MXVR Sync Data DMA2 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA3_CONFIG      0xFFC027D4  /* MXVR Sync Data DMA3 Config	Register */ | ||||
| #define	MXVR_DMA3_START_ADDR  0xFFC027D8  /* MXVR Sync Data DMA3 Start Address Register */ | ||||
| #define	MXVR_DMA3_COUNT	      0xFFC027DC  /* MXVR Sync Data DMA3 Loop Count Register */ | ||||
| #define	MXVR_DMA3_CURR_ADDR   0xFFC027E0  /* MXVR Sync Data DMA3 Current Address Register */ | ||||
| #define	MXVR_DMA3_CURR_COUNT  0xFFC027E4  /* MXVR Sync Data DMA3 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA4_CONFIG      0xFFC027E8  /* MXVR Sync Data DMA4 Config	Register */ | ||||
| #define	MXVR_DMA4_START_ADDR  0xFFC027EC  /* MXVR Sync Data DMA4 Start Address Register */ | ||||
| #define	MXVR_DMA4_COUNT	      0xFFC027F0  /* MXVR Sync Data DMA4 Loop Count Register */ | ||||
| #define	MXVR_DMA4_CURR_ADDR   0xFFC027F4  /* MXVR Sync Data DMA4 Current Address Register */ | ||||
| #define	MXVR_DMA4_CURR_COUNT  0xFFC027F8  /* MXVR Sync Data DMA4 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA5_CONFIG      0xFFC027FC  /* MXVR Sync Data DMA5 Config	Register */ | ||||
| #define	MXVR_DMA5_START_ADDR  0xFFC02800  /* MXVR Sync Data DMA5 Start Address Register */ | ||||
| #define	MXVR_DMA5_COUNT	      0xFFC02804  /* MXVR Sync Data DMA5 Loop Count Register */ | ||||
| #define	MXVR_DMA5_CURR_ADDR   0xFFC02808  /* MXVR Sync Data DMA5 Current Address Register */ | ||||
| #define	MXVR_DMA5_CURR_COUNT  0xFFC0280C  /* MXVR Sync Data DMA5 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA6_CONFIG      0xFFC02810  /* MXVR Sync Data DMA6 Config	Register */ | ||||
| #define	MXVR_DMA6_START_ADDR  0xFFC02814  /* MXVR Sync Data DMA6 Start Address Register */ | ||||
| #define	MXVR_DMA6_COUNT	      0xFFC02818  /* MXVR Sync Data DMA6 Loop Count Register */ | ||||
| #define	MXVR_DMA6_CURR_ADDR   0xFFC0281C  /* MXVR Sync Data DMA6 Current Address Register */ | ||||
| #define	MXVR_DMA6_CURR_COUNT  0xFFC02820  /* MXVR Sync Data DMA6 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_DMA7_CONFIG      0xFFC02824  /* MXVR Sync Data DMA7 Config	Register */ | ||||
| #define	MXVR_DMA7_START_ADDR  0xFFC02828  /* MXVR Sync Data DMA7 Start Address Register */ | ||||
| #define	MXVR_DMA7_COUNT	      0xFFC0282C  /* MXVR Sync Data DMA7 Loop Count Register */ | ||||
| #define	MXVR_DMA7_CURR_ADDR   0xFFC02830  /* MXVR Sync Data DMA7 Current Address Register */ | ||||
| #define	MXVR_DMA7_CURR_COUNT  0xFFC02834  /* MXVR Sync Data DMA7 Current Loop Count Register */ | ||||
| 
 | ||||
| #define	MXVR_AP_CTL	      0xFFC02838  /* MXVR Async	Packet Control Register */ | ||||
| #define	MXVR_APRB_START_ADDR  0xFFC0283C  /* MXVR Async	Packet RX Buffer Start Addr Register */ | ||||
| #define	MXVR_APRB_CURR_ADDR   0xFFC02840  /* MXVR Async	Packet RX Buffer Current Addr Register */ | ||||
| #define	MXVR_APTB_START_ADDR  0xFFC02844  /* MXVR Async	Packet TX Buffer Start Addr Register */ | ||||
| #define	MXVR_APTB_CURR_ADDR   0xFFC02848  /* MXVR Async	Packet TX Buffer Current Addr Register */ | ||||
| 
 | ||||
| #define	MXVR_CM_CTL	      0xFFC0284C  /* MXVR Control Message Control Register */ | ||||
| #define	MXVR_CMRB_START_ADDR  0xFFC02850  /* MXVR Control Message RX Buffer Start Addr Register */ | ||||
| #define	MXVR_CMRB_CURR_ADDR   0xFFC02854  /* MXVR Control Message RX Buffer Current Address */ | ||||
| #define	MXVR_CMTB_START_ADDR  0xFFC02858  /* MXVR Control Message TX Buffer Start Addr Register */ | ||||
| #define	MXVR_CMTB_CURR_ADDR   0xFFC0285C  /* MXVR Control Message TX Buffer Current Address */ | ||||
| 
 | ||||
| #define	MXVR_RRDB_START_ADDR  0xFFC02860  /* MXVR Remote Read Buffer Start Addr	Register */ | ||||
| #define	MXVR_RRDB_CURR_ADDR   0xFFC02864  /* MXVR Remote Read Buffer Current Addr Register */ | ||||
| 
 | ||||
| #define	MXVR_PAT_DATA_0	      0xFFC02868  /* MXVR Pattern Data Register	0 */ | ||||
| #define	MXVR_PAT_EN_0	      0xFFC0286C  /* MXVR Pattern Enable Register 0 */ | ||||
| #define	MXVR_PAT_DATA_1	      0xFFC02870  /* MXVR Pattern Data Register	1 */ | ||||
| #define	MXVR_PAT_EN_1	      0xFFC02874  /* MXVR Pattern Enable Register 1 */ | ||||
| 
 | ||||
| #define	MXVR_FRAME_CNT_0      0xFFC02878  /* MXVR Frame	Counter	0 */ | ||||
| #define	MXVR_FRAME_CNT_1      0xFFC0287C  /* MXVR Frame	Counter	1 */ | ||||
| 
 | ||||
| #define	MXVR_ROUTING_0	      0xFFC02880  /* MXVR Routing Table	Register 0 */ | ||||
| #define	MXVR_ROUTING_1	      0xFFC02884  /* MXVR Routing Table	Register 1 */ | ||||
| #define	MXVR_ROUTING_2	      0xFFC02888  /* MXVR Routing Table	Register 2 */ | ||||
| #define	MXVR_ROUTING_3	      0xFFC0288C  /* MXVR Routing Table	Register 3 */ | ||||
| #define	MXVR_ROUTING_4	      0xFFC02890  /* MXVR Routing Table	Register 4 */ | ||||
| #define	MXVR_ROUTING_5	      0xFFC02894  /* MXVR Routing Table	Register 5 */ | ||||
| #define	MXVR_ROUTING_6	      0xFFC02898  /* MXVR Routing Table	Register 6 */ | ||||
| #define	MXVR_ROUTING_7	      0xFFC0289C  /* MXVR Routing Table	Register 7 */ | ||||
| #define	MXVR_ROUTING_8	      0xFFC028A0  /* MXVR Routing Table	Register 8 */ | ||||
| #define	MXVR_ROUTING_9	      0xFFC028A4  /* MXVR Routing Table	Register 9 */ | ||||
| #define	MXVR_ROUTING_10	      0xFFC028A8  /* MXVR Routing Table	Register 10 */ | ||||
| #define	MXVR_ROUTING_11	      0xFFC028AC  /* MXVR Routing Table	Register 11 */ | ||||
| #define	MXVR_ROUTING_12	      0xFFC028B0  /* MXVR Routing Table	Register 12 */ | ||||
| #define	MXVR_ROUTING_13	      0xFFC028B4  /* MXVR Routing Table	Register 13 */ | ||||
| #define	MXVR_ROUTING_14	      0xFFC028B8  /* MXVR Routing Table	Register 14 */ | ||||
| 
 | ||||
| #define	MXVR_PLL_CTL_1	      0xFFC028BC  /* MXVR Phase	Lock Loop Control Register 1 */ | ||||
| #define	MXVR_BLOCK_CNT	      0xFFC028C0  /* MXVR Block	Counter */ | ||||
| #define	MXVR_PLL_CTL_2	      0xFFC028C4  /* MXVR Phase	Lock Loop Control Register 2 */ | ||||
| 
 | ||||
| #endif /* _DEF_BF539_H */ | ||||
							
								
								
									
										41
									
								
								arch/blackfin/mach-bf538/include/mach/dma.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								arch/blackfin/mach-bf538/include/mach/dma.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,41 @@ | |||
| /* mach/dma.h - arch-specific DMA defines
 | ||||
|  * | ||||
|  * Copyright 2004-2008 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _MACH_DMA_H_ | ||||
| #define _MACH_DMA_H_ | ||||
| 
 | ||||
| #define CH_PPI			0 | ||||
| #define CH_SPORT0_RX		1 | ||||
| #define CH_SPORT0_TX		2 | ||||
| #define CH_SPORT1_RX		3 | ||||
| #define CH_SPORT1_TX		4 | ||||
| #define CH_SPI0			5 | ||||
| #define CH_UART0_RX		6 | ||||
| #define CH_UART0_TX		7 | ||||
| #define CH_SPORT2_RX		8 | ||||
| #define CH_SPORT2_TX		9 | ||||
| #define CH_SPORT3_RX		10 | ||||
| #define CH_SPORT3_TX		11 | ||||
| #define CH_SPI1			14 | ||||
| #define CH_SPI2			15 | ||||
| #define CH_UART1_RX		16 | ||||
| #define CH_UART1_TX		17 | ||||
| #define CH_UART2_RX		18 | ||||
| #define CH_UART2_TX		19 | ||||
| 
 | ||||
| #define CH_MEM_STREAM0_DEST	20 | ||||
| #define CH_MEM_STREAM0_SRC	21 | ||||
| #define CH_MEM_STREAM1_DEST	22 | ||||
| #define CH_MEM_STREAM1_SRC	23 | ||||
| #define CH_MEM_STREAM2_DEST	24 | ||||
| #define CH_MEM_STREAM2_SRC	25 | ||||
| #define CH_MEM_STREAM3_DEST	26 | ||||
| #define CH_MEM_STREAM3_SRC	27 | ||||
| 
 | ||||
| #define MAX_DMA_CHANNELS 28 | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										81
									
								
								arch/blackfin/mach-bf538/include/mach/gpio.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										81
									
								
								arch/blackfin/mach-bf538/include/mach/gpio.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,81 @@ | |||
| /*
 | ||||
|  * Copyright (C) 2008-2009 Analog Devices Inc. | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| 
 | ||||
| #ifndef _MACH_GPIO_H_ | ||||
| #define _MACH_GPIO_H_ | ||||
| 
 | ||||
| #define MAX_BLACKFIN_GPIOS 16 | ||||
| #ifdef CONFIG_GPIOLIB | ||||
| /* We only use the special logic with GPIOLIB devices */ | ||||
| #define BFIN_SPECIAL_GPIO_BANKS 3 | ||||
| #endif | ||||
| 
 | ||||
| #define GPIO_PF0	0	/* PF */ | ||||
| #define GPIO_PF1	1 | ||||
| #define GPIO_PF2	2 | ||||
| #define GPIO_PF3	3 | ||||
| #define GPIO_PF4	4 | ||||
| #define GPIO_PF5	5 | ||||
| #define GPIO_PF6	6 | ||||
| #define GPIO_PF7	7 | ||||
| #define GPIO_PF8	8 | ||||
| #define GPIO_PF9	9 | ||||
| #define GPIO_PF10	10 | ||||
| #define GPIO_PF11	11 | ||||
| #define GPIO_PF12	12 | ||||
| #define GPIO_PF13	13 | ||||
| #define GPIO_PF14	14 | ||||
| #define GPIO_PF15	15 | ||||
| #define GPIO_PC0	16	/* PC */ | ||||
| #define GPIO_PC1	17 | ||||
| #define GPIO_PC4	20 | ||||
| #define GPIO_PC5	21 | ||||
| #define GPIO_PC6	22 | ||||
| #define GPIO_PC7	23 | ||||
| #define GPIO_PC8	24 | ||||
| #define GPIO_PC9	25 | ||||
| #define GPIO_PD0	32	/* PD */ | ||||
| #define GPIO_PD1	33 | ||||
| #define GPIO_PD2	34 | ||||
| #define GPIO_PD3	35 | ||||
| #define GPIO_PD4	36 | ||||
| #define GPIO_PD5	37 | ||||
| #define GPIO_PD6	38 | ||||
| #define GPIO_PD7	39 | ||||
| #define GPIO_PD8	40 | ||||
| #define GPIO_PD9	41 | ||||
| #define GPIO_PD10	42 | ||||
| #define GPIO_PD11	43 | ||||
| #define GPIO_PD12	44 | ||||
| #define GPIO_PD13	45 | ||||
| #define GPIO_PE0	48	/* PE */ | ||||
| #define GPIO_PE1	49 | ||||
| #define GPIO_PE2	50 | ||||
| #define GPIO_PE3	51 | ||||
| #define GPIO_PE4	52 | ||||
| #define GPIO_PE5	53 | ||||
| #define GPIO_PE6	54 | ||||
| #define GPIO_PE7	55 | ||||
| #define GPIO_PE8	56 | ||||
| #define GPIO_PE9	57 | ||||
| #define GPIO_PE10	58 | ||||
| #define GPIO_PE11	59 | ||||
| #define GPIO_PE12	60 | ||||
| #define GPIO_PE13	61 | ||||
| #define GPIO_PE14	62 | ||||
| #define GPIO_PE15	63 | ||||
| 
 | ||||
| #define PORT_F GPIO_PF0 | ||||
| #define PORT_C GPIO_PC0 | ||||
| #define PORT_D GPIO_PD0 | ||||
| #define PORT_E GPIO_PE0 | ||||
| 
 | ||||
| #include <mach-common/ports-c.h> | ||||
| #include <mach-common/ports-d.h> | ||||
| #include <mach-common/ports-e.h> | ||||
| #include <mach-common/ports-f.h> | ||||
| 
 | ||||
| #endif /* _MACH_GPIO_H_ */ | ||||
							
								
								
									
										148
									
								
								arch/blackfin/mach-bf538/include/mach/irq.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										148
									
								
								arch/blackfin/mach-bf538/include/mach/irq.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,148 @@ | |||
| /*
 | ||||
|  * Copyright 2008 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _BF538_IRQ_H_ | ||||
| #define _BF538_IRQ_H_ | ||||
| 
 | ||||
| #include <mach-common/irq.h> | ||||
| 
 | ||||
| #define NR_PERI_INTS		(2 * 32) | ||||
| 
 | ||||
| #define IRQ_PLL_WAKEUP		BFIN_IRQ(0)	/* PLL Wakeup Interrupt */ | ||||
| #define IRQ_DMA0_ERROR		BFIN_IRQ(1)	/* DMA Error 0 (generic) */ | ||||
| #define IRQ_PPI_ERROR		BFIN_IRQ(2)	/* PPI Error */ | ||||
| #define IRQ_SPORT0_ERROR	BFIN_IRQ(3)	/* SPORT0 Status */ | ||||
| #define IRQ_SPORT1_ERROR	BFIN_IRQ(4)	/* SPORT1 Status */ | ||||
| #define IRQ_SPI0_ERROR		BFIN_IRQ(5)	/* SPI0 Status */ | ||||
| #define IRQ_UART0_ERROR		BFIN_IRQ(6)	/* UART0 Status */ | ||||
| #define IRQ_RTC			BFIN_IRQ(7)	/* RTC */ | ||||
| #define IRQ_PPI			BFIN_IRQ(8)	/* DMA Channel 0 (PPI) */ | ||||
| #define IRQ_SPORT0_RX		BFIN_IRQ(9)	/* DMA 1 Channel (SPORT0 RX) */ | ||||
| #define IRQ_SPORT0_TX		BFIN_IRQ(10)	/* DMA 2 Channel (SPORT0 TX) */ | ||||
| #define IRQ_SPORT1_RX		BFIN_IRQ(11)	/* DMA 3 Channel (SPORT1 RX) */ | ||||
| #define IRQ_SPORT1_TX		BFIN_IRQ(12)	/* DMA 4 Channel (SPORT1 TX) */ | ||||
| #define IRQ_SPI0		BFIN_IRQ(13)	/* DMA 5 Channel (SPI0) */ | ||||
| #define IRQ_UART0_RX		BFIN_IRQ(14)	/* DMA 6 Channel (UART0 RX) */ | ||||
| #define IRQ_UART0_TX		BFIN_IRQ(15)	/* DMA 7 Channel (UART0 TX) */ | ||||
| #define IRQ_TIMER0		BFIN_IRQ(16)	/* Timer 0 */ | ||||
| #define IRQ_TIMER1		BFIN_IRQ(17)	/* Timer 1 */ | ||||
| #define IRQ_TIMER2		BFIN_IRQ(18)	/* Timer 2 */ | ||||
| #define IRQ_PORTF_INTA		BFIN_IRQ(19)	/* Port F Interrupt A */ | ||||
| #define IRQ_PORTF_INTB		BFIN_IRQ(20)	/* Port F Interrupt B */ | ||||
| #define IRQ_MEM0_DMA0		BFIN_IRQ(21)	/* MDMA0 Stream 0 */ | ||||
| #define IRQ_MEM0_DMA1		BFIN_IRQ(22)	/* MDMA0 Stream 1 */ | ||||
| #define IRQ_WATCH		BFIN_IRQ(23)	/* Software Watchdog Timer */ | ||||
| #define IRQ_DMA1_ERROR		BFIN_IRQ(24)	/* DMA Error 1 (generic) */ | ||||
| #define IRQ_SPORT2_ERROR	BFIN_IRQ(25)	/* SPORT2 Status */ | ||||
| #define IRQ_SPORT3_ERROR	BFIN_IRQ(26)	/* SPORT3 Status */ | ||||
| #define IRQ_SPI1_ERROR		BFIN_IRQ(28)	/* SPI1 Status */ | ||||
| #define IRQ_SPI2_ERROR		BFIN_IRQ(29)	/* SPI2 Status */ | ||||
| #define IRQ_UART1_ERROR		BFIN_IRQ(30)	/* UART1 Status */ | ||||
| #define IRQ_UART2_ERROR		BFIN_IRQ(31)	/* UART2 Status */ | ||||
| #define IRQ_CAN_ERROR		BFIN_IRQ(32)	/* CAN Status (Error) Interrupt */ | ||||
| #define IRQ_SPORT2_RX		BFIN_IRQ(33)	/* DMA 8 Channel (SPORT2 RX) */ | ||||
| #define IRQ_SPORT2_TX		BFIN_IRQ(34)	/* DMA 9 Channel (SPORT2 TX) */ | ||||
| #define IRQ_SPORT3_RX		BFIN_IRQ(35)	/* DMA 10 Channel (SPORT3 RX) */ | ||||
| #define IRQ_SPORT3_TX		BFIN_IRQ(36)	/* DMA 11 Channel (SPORT3 TX) */ | ||||
| #define IRQ_SPI1		BFIN_IRQ(39)	/* DMA 14 Channel (SPI1) */ | ||||
| #define IRQ_SPI2		BFIN_IRQ(40)	/* DMA 15 Channel (SPI2) */ | ||||
| #define IRQ_UART1_RX		BFIN_IRQ(41)	/* DMA 16 Channel (UART1 RX) */ | ||||
| #define IRQ_UART1_TX		BFIN_IRQ(42)	/* DMA 17 Channel (UART1 TX) */ | ||||
| #define IRQ_UART2_RX		BFIN_IRQ(43)	/* DMA 18 Channel (UART2 RX) */ | ||||
| #define IRQ_UART2_TX		BFIN_IRQ(44)	/* DMA 19 Channel (UART2 TX) */ | ||||
| #define IRQ_TWI0		BFIN_IRQ(45)	/* TWI0 */ | ||||
| #define IRQ_TWI1		BFIN_IRQ(46)	/* TWI1 */ | ||||
| #define IRQ_CAN_RX		BFIN_IRQ(47)	/* CAN Receive Interrupt */ | ||||
| #define IRQ_CAN_TX		BFIN_IRQ(48)	/* CAN Transmit Interrupt */ | ||||
| #define IRQ_MEM1_DMA0		BFIN_IRQ(49)	/* MDMA1 Stream 0 */ | ||||
| #define IRQ_MEM1_DMA1		BFIN_IRQ(50)	/* MDMA1 Stream 1 */ | ||||
| 
 | ||||
| #define SYS_IRQS		BFIN_IRQ(63)	/* 70 */ | ||||
| 
 | ||||
| #define IRQ_PF0			71 | ||||
| #define IRQ_PF1			72 | ||||
| #define IRQ_PF2			73 | ||||
| #define IRQ_PF3			74 | ||||
| #define IRQ_PF4			75 | ||||
| #define IRQ_PF5			76 | ||||
| #define IRQ_PF6			77 | ||||
| #define IRQ_PF7			78 | ||||
| #define IRQ_PF8			79 | ||||
| #define IRQ_PF9			80 | ||||
| #define IRQ_PF10		81 | ||||
| #define IRQ_PF11		82 | ||||
| #define IRQ_PF12		83 | ||||
| #define IRQ_PF13		84 | ||||
| #define IRQ_PF14		85 | ||||
| #define IRQ_PF15		86 | ||||
| 
 | ||||
| #define GPIO_IRQ_BASE		IRQ_PF0 | ||||
| 
 | ||||
| #define NR_MACH_IRQS		(IRQ_PF15 + 1) | ||||
| 
 | ||||
| /* IAR0 BIT FIELDS */ | ||||
| #define IRQ_PLL_WAKEUP_POS	0 | ||||
| #define IRQ_DMA0_ERROR_POS	4 | ||||
| #define IRQ_PPI_ERROR_POS	8 | ||||
| #define IRQ_SPORT0_ERROR_POS	12 | ||||
| #define IRQ_SPORT1_ERROR_POS	16 | ||||
| #define IRQ_SPI0_ERROR_POS	20 | ||||
| #define IRQ_UART0_ERROR_POS	24 | ||||
| #define IRQ_RTC_POS		28 | ||||
| 
 | ||||
| /* IAR1 BIT FIELDS */ | ||||
| #define IRQ_PPI_POS		0 | ||||
| #define IRQ_SPORT0_RX_POS	4 | ||||
| #define IRQ_SPORT0_TX_POS	8 | ||||
| #define IRQ_SPORT1_RX_POS	12 | ||||
| #define IRQ_SPORT1_TX_POS	16 | ||||
| #define IRQ_SPI0_POS		20 | ||||
| #define IRQ_UART0_RX_POS	24 | ||||
| #define IRQ_UART0_TX_POS	28 | ||||
| 
 | ||||
| /* IAR2 BIT FIELDS */ | ||||
| #define IRQ_TIMER0_POS		0 | ||||
| #define IRQ_TIMER1_POS		4 | ||||
| #define IRQ_TIMER2_POS		8 | ||||
| #define IRQ_PORTF_INTA_POS	12 | ||||
| #define IRQ_PORTF_INTB_POS	16 | ||||
| #define IRQ_MEM0_DMA0_POS	20 | ||||
| #define IRQ_MEM0_DMA1_POS	24 | ||||
| #define IRQ_WATCH_POS		28 | ||||
| 
 | ||||
| /* IAR3 BIT FIELDS */ | ||||
| #define IRQ_DMA1_ERROR_POS	0 | ||||
| #define IRQ_SPORT2_ERROR_POS	4 | ||||
| #define IRQ_SPORT3_ERROR_POS	8 | ||||
| #define IRQ_SPI1_ERROR_POS	16 | ||||
| #define IRQ_SPI2_ERROR_POS	20 | ||||
| #define IRQ_UART1_ERROR_POS	24 | ||||
| #define IRQ_UART2_ERROR_POS	28 | ||||
| 
 | ||||
| /* IAR4 BIT FIELDS */ | ||||
| #define IRQ_CAN_ERROR_POS	0 | ||||
| #define IRQ_SPORT2_RX_POS	4 | ||||
| #define IRQ_SPORT2_TX_POS	8 | ||||
| #define IRQ_SPORT3_RX_POS	12 | ||||
| #define IRQ_SPORT3_TX_POS	16 | ||||
| #define IRQ_SPI1_POS		28 | ||||
| 
 | ||||
| /* IAR5 BIT FIELDS */ | ||||
| #define IRQ_SPI2_POS		0 | ||||
| #define IRQ_UART1_RX_POS	4 | ||||
| #define IRQ_UART1_TX_POS	8 | ||||
| #define IRQ_UART2_RX_POS	12 | ||||
| #define IRQ_UART2_TX_POS	16 | ||||
| #define IRQ_TWI0_POS		20 | ||||
| #define IRQ_TWI1_POS		24 | ||||
| #define IRQ_CAN_RX_POS		28 | ||||
| 
 | ||||
| /* IAR6 BIT FIELDS */ | ||||
| #define IRQ_CAN_TX_POS		0 | ||||
| #define IRQ_MEM1_DMA0_POS	4 | ||||
| #define IRQ_MEM1_DMA1_POS	8 | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										74
									
								
								arch/blackfin/mach-bf538/include/mach/mem_map.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								arch/blackfin/mach-bf538/include/mach/mem_map.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,74 @@ | |||
| /*
 | ||||
|  * BF538 memory map | ||||
|  * | ||||
|  * Copyright 2004-2009 Analog Devices Inc. | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __BFIN_MACH_MEM_MAP_H__ | ||||
| #define __BFIN_MACH_MEM_MAP_H__ | ||||
| 
 | ||||
| #ifndef __BFIN_MEM_MAP_H__ | ||||
| # error "do not include mach/mem_map.h directly -- use asm/mem_map.h" | ||||
| #endif | ||||
| 
 | ||||
| /* Async Memory Banks */ | ||||
| #define ASYNC_BANK3_BASE	0x20300000	 /* Async Bank 3 */ | ||||
| #define ASYNC_BANK3_SIZE	0x00100000	/* 1M */ | ||||
| #define ASYNC_BANK2_BASE	0x20200000	 /* Async Bank 2 */ | ||||
| #define ASYNC_BANK2_SIZE	0x00100000	/* 1M */ | ||||
| #define ASYNC_BANK1_BASE	0x20100000	 /* Async Bank 1 */ | ||||
| #define ASYNC_BANK1_SIZE	0x00100000	/* 1M */ | ||||
| #define ASYNC_BANK0_BASE	0x20000000	 /* Async Bank 0 */ | ||||
| #define ASYNC_BANK0_SIZE	0x00100000	/* 1M */ | ||||
| 
 | ||||
| /* Boot ROM Memory */ | ||||
| 
 | ||||
| #define BOOT_ROM_START		0xEF000000 | ||||
| #define BOOT_ROM_LENGTH		0x400 | ||||
| 
 | ||||
| /* Level 1 Memory */ | ||||
| 
 | ||||
| #ifdef CONFIG_BFIN_ICACHE | ||||
| #define BFIN_ICACHESIZE	(16*1024) | ||||
| #else | ||||
| #define BFIN_ICACHESIZE	(0*1024) | ||||
| #endif | ||||
| 
 | ||||
| /* Memory Map for ADSP-BF538/9 processors */ | ||||
| 
 | ||||
| #define L1_CODE_START       0xFFA00000 | ||||
| #define L1_DATA_A_START     0xFF800000 | ||||
| #define L1_DATA_B_START     0xFF900000 | ||||
| 
 | ||||
| #ifdef CONFIG_BFIN_ICACHE | ||||
| #define L1_CODE_LENGTH      (0x14000 - 0x4000) | ||||
| #else | ||||
| #define L1_CODE_LENGTH      0x14000 | ||||
| #endif | ||||
| 
 | ||||
| #ifdef CONFIG_BFIN_DCACHE | ||||
| 
 | ||||
| #ifdef CONFIG_BFIN_DCACHE_BANKA | ||||
| #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0) | ||||
| #define L1_DATA_A_LENGTH      (0x8000 - 0x4000) | ||||
| #define L1_DATA_B_LENGTH      0x8000 | ||||
| #define BFIN_DCACHESIZE	(16*1024) | ||||
| #define BFIN_DSUPBANKS	1 | ||||
| #else | ||||
| #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0) | ||||
| #define L1_DATA_A_LENGTH      (0x8000 - 0x4000) | ||||
| #define L1_DATA_B_LENGTH      (0x8000 - 0x4000) | ||||
| #define BFIN_DCACHESIZE	(32*1024) | ||||
| #define BFIN_DSUPBANKS	2 | ||||
| #endif | ||||
| 
 | ||||
| #else | ||||
| #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0) | ||||
| #define L1_DATA_A_LENGTH      0x8000 | ||||
| #define L1_DATA_B_LENGTH      0x8000 | ||||
| #define BFIN_DCACHESIZE	(0*1024) | ||||
| #define BFIN_DSUPBANKS	0 | ||||
| #endif /*CONFIG_BFIN_DCACHE*/ | ||||
| 
 | ||||
| #endif | ||||
							
								
								
									
										1
									
								
								arch/blackfin/mach-bf538/include/mach/pll.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								arch/blackfin/mach-bf538/include/mach/pll.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| #include <mach-common/pll.h> | ||||
							
								
								
									
										114
									
								
								arch/blackfin/mach-bf538/include/mach/portmux.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								arch/blackfin/mach-bf538/include/mach/portmux.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,114 @@ | |||
| /*
 | ||||
|  * Copyright 2008-2009 Analog Devices Inc. | ||||
|  * | ||||
|  * Licensed under the GPL-2 or later. | ||||
|  */ | ||||
| 
 | ||||
| #ifndef _MACH_PORTMUX_H_ | ||||
| #define _MACH_PORTMUX_H_ | ||||
| 
 | ||||
| #define MAX_RESOURCES	64 | ||||
| 
 | ||||
| #define P_TMR2		(P_DONTCARE) | ||||
| #define P_TMR1		(P_DONTCARE) | ||||
| #define P_TMR0		(P_DONTCARE) | ||||
| #define P_TMRCLK	(P_DONTCARE) | ||||
| #define P_PPI0_CLK	(P_DONTCARE) | ||||
| #define P_PPI0_FS1	(P_DONTCARE) | ||||
| #define P_PPI0_FS2	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_TWI0_SCL	(P_DONTCARE) | ||||
| #define P_TWI0_SDA	(P_DONTCARE) | ||||
| #define P_TWI1_SCL	(P_DONTCARE) | ||||
| #define P_TWI1_SDA	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_SPORT1_TSCLK	(P_DONTCARE) | ||||
| #define P_SPORT1_RSCLK	(P_DONTCARE) | ||||
| #define P_SPORT0_TSCLK	(P_DONTCARE) | ||||
| #define P_SPORT0_RSCLK	(P_DONTCARE) | ||||
| #define P_SPORT1_DRSEC	(P_DONTCARE) | ||||
| #define P_SPORT1_RFS	(P_DONTCARE) | ||||
| #define P_SPORT1_DTPRI	(P_DONTCARE) | ||||
| #define P_SPORT1_DTSEC	(P_DONTCARE) | ||||
| #define P_SPORT1_TFS	(P_DONTCARE) | ||||
| #define P_SPORT1_DRPRI	(P_DONTCARE) | ||||
| #define P_SPORT0_DRSEC	(P_DONTCARE) | ||||
| #define P_SPORT0_RFS	(P_DONTCARE) | ||||
| #define P_SPORT0_DTPRI	(P_DONTCARE) | ||||
| #define P_SPORT0_DTSEC	(P_DONTCARE) | ||||
| #define P_SPORT0_TFS	(P_DONTCARE) | ||||
| #define P_SPORT0_DRPRI	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_UART0_RX	(P_DONTCARE) | ||||
| #define P_UART0_TX	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_SPI0_MOSI	(P_DONTCARE) | ||||
| #define P_SPI0_MISO	(P_DONTCARE) | ||||
| #define P_SPI0_SCK	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_PPI0_D0	(P_DONTCARE) | ||||
| #define P_PPI0_D1	(P_DONTCARE) | ||||
| #define P_PPI0_D2	(P_DONTCARE) | ||||
| #define P_PPI0_D3	(P_DONTCARE) | ||||
| 
 | ||||
| #define P_CAN0_TX	(P_DEFINED | P_IDENT(GPIO_PC0)) | ||||
| #define P_CAN0_RX	(P_DEFINED | P_IDENT(GPIO_PC1)) | ||||
| 
 | ||||
| #define P_SPI1_MOSI	(P_DEFINED | P_IDENT(GPIO_PD0)) | ||||
| #define P_SPI1_MISO	(P_DEFINED | P_IDENT(GPIO_PD1)) | ||||
| #define P_SPI1_SCK	(P_DEFINED | P_IDENT(GPIO_PD2)) | ||||
| #define P_SPI1_SS	(P_DEFINED | P_IDENT(GPIO_PD3)) | ||||
| #define P_SPI1_SSEL1	(P_DEFINED | P_IDENT(GPIO_PD4)) | ||||
| #define P_SPI2_MOSI	(P_DEFINED | P_IDENT(GPIO_PD5)) | ||||
| #define P_SPI2_MISO	(P_DEFINED | P_IDENT(GPIO_PD6)) | ||||
| #define P_SPI2_SCK	(P_DEFINED | P_IDENT(GPIO_PD7)) | ||||
| #define P_SPI2_SS	(P_DEFINED | P_IDENT(GPIO_PD8)) | ||||
| #define P_SPI2_SSEL1	(P_DEFINED | P_IDENT(GPIO_PD9)) | ||||
| #define P_UART1_RX	(P_DEFINED | P_IDENT(GPIO_PD10)) | ||||
| #define P_UART1_TX	(P_DEFINED | P_IDENT(GPIO_PD11)) | ||||
| #define P_UART2_RX	(P_DEFINED | P_IDENT(GPIO_PD12)) | ||||
| #define P_UART2_TX	(P_DEFINED | P_IDENT(GPIO_PD13)) | ||||
| 
 | ||||
| #define P_SPORT2_RSCLK	(P_DEFINED | P_IDENT(GPIO_PE0)) | ||||
| #define P_SPORT2_RFS	(P_DEFINED | P_IDENT(GPIO_PE1)) | ||||
| #define P_SPORT2_DRPRI	(P_DEFINED | P_IDENT(GPIO_PE2)) | ||||
| #define P_SPORT2_DRSEC	(P_DEFINED | P_IDENT(GPIO_PE3)) | ||||
| #define P_SPORT2_TSCLK	(P_DEFINED | P_IDENT(GPIO_PE4)) | ||||
| #define P_SPORT2_TFS	(P_DEFINED | P_IDENT(GPIO_PE5)) | ||||
| #define P_SPORT2_DTPRI	(P_DEFINED | P_IDENT(GPIO_PE6)) | ||||
| #define P_SPORT2_DTSEC	(P_DEFINED | P_IDENT(GPIO_PE7)) | ||||
| #define P_SPORT3_RSCLK	(P_DEFINED | P_IDENT(GPIO_PE8)) | ||||
| #define P_SPORT3_RFS	(P_DEFINED | P_IDENT(GPIO_PE9)) | ||||
| #define P_SPORT3_DRPRI	(P_DEFINED | P_IDENT(GPIO_PE10)) | ||||
| #define P_SPORT3_DRSEC	(P_DEFINED | P_IDENT(GPIO_PE11)) | ||||
| #define P_SPORT3_TSCLK	(P_DEFINED | P_IDENT(GPIO_PE12)) | ||||
| #define P_SPORT3_TFS	(P_DEFINED | P_IDENT(GPIO_PE13)) | ||||
| #define P_SPORT3_DTPRI	(P_DEFINED | P_IDENT(GPIO_PE14)) | ||||
| #define P_SPORT3_DTSEC	(P_DEFINED | P_IDENT(GPIO_PE15)) | ||||
| 
 | ||||
| #define P_PPI0_FS3	(P_DEFINED | P_IDENT(GPIO_PF3)) | ||||
| #define P_PPI0_D15	(P_DEFINED | P_IDENT(GPIO_PF4)) | ||||
| #define P_PPI0_D14	(P_DEFINED | P_IDENT(GPIO_PF5)) | ||||
| #define P_PPI0_D13	(P_DEFINED | P_IDENT(GPIO_PF6)) | ||||
| #define P_PPI0_D12	(P_DEFINED | P_IDENT(GPIO_PF7)) | ||||
| #define P_PPI0_D11	(P_DEFINED | P_IDENT(GPIO_PF8)) | ||||
| #define P_PPI0_D10	(P_DEFINED | P_IDENT(GPIO_PF9)) | ||||
| #define P_PPI0_D9	(P_DEFINED | P_IDENT(GPIO_PF10)) | ||||
| #define P_PPI0_D8	(P_DEFINED | P_IDENT(GPIO_PF11)) | ||||
| 
 | ||||
| #define P_PPI0_D4	(P_DEFINED | P_IDENT(GPIO_PF15)) | ||||
| #define P_PPI0_D5	(P_DEFINED | P_IDENT(GPIO_PF14)) | ||||
| #define P_PPI0_D6	(P_DEFINED | P_IDENT(GPIO_PF13)) | ||||
| #define P_PPI0_D7	(P_DEFINED | P_IDENT(GPIO_PF12)) | ||||
| #define P_SPI0_SSEL7	(P_DEFINED | P_IDENT(GPIO_PF7)) | ||||
| #define P_SPI0_SSEL6	(P_DEFINED | P_IDENT(GPIO_PF6)) | ||||
| #define P_SPI0_SSEL5	(P_DEFINED | P_IDENT(GPIO_PF5)) | ||||
| #define P_SPI0_SSEL4	(P_DEFINED | P_IDENT(GPIO_PF4)) | ||||
| #define P_SPI0_SSEL3	(P_DEFINED | P_IDENT(GPIO_PF3)) | ||||
| #define P_SPI0_SSEL2	(P_DEFINED | P_IDENT(GPIO_PF2)) | ||||
| #define P_SPI0_SSEL1	(P_DEFINED | P_IDENT(GPIO_PF1)) | ||||
| #define P_SPI0_SS	(P_DEFINED | P_IDENT(GPIO_PF0)) | ||||
| #define GPIO_DEFAULT_BOOT_SPI_CS GPIO_PF2 | ||||
| #define P_DEFAULT_BOOT_SPI_CS P_SPI0_SSEL2 | ||||
| 
 | ||||
| #endif /* _MACH_PORTMUX_H_ */ | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228