ColdFire: Add modules header files
PATCH 1/1 ColdFire: Add modules header files
Add CF specific modules header files
Signed-off-by TsiChungLiew <[email protected]>
--- include/asm-m68k/coldfire/crossbar.h | 79 +++++++++++++ include/asm-m68k/coldfire/dspi.h | 156 +++++++++++++++++++++++++ include/asm-m68k/coldfire/edma.h | 177 ++++++++++++++++++++++++++++ include/asm-m68k/coldfire/flexbus.h | 98 ++++++++++++++++ include/asm-m68k/coldfire/lcd.h | 213 ++++++++++++++++++++++++++++++++++ include/asm-m68k/coldfire/ssi.h | 175 ++++++++++++++++++++++++++++ 6 files changed, 898 insertions(+), 0 deletions(-) create mode 100644 include/asm-m68k/coldfire/crossbar.h create mode 100644 include/asm-m68k/coldfire/dspi.h create mode 100644 include/asm-m68k/coldfire/edma.h create mode 100644 include/asm-m68k/coldfire/flexbus.h create mode 100644 include/asm-m68k/coldfire/lcd.h create mode 100644 include/asm-m68k/coldfire/ssi.h
include/asm-m68k/coldfire/crossbar.h new file +79 -0
@@ -0,0 +1,79 @@ +/* +* Cross Bar Switch Internal Memory Map +* +* Copyright (C) 2004-2007 Freescale Semiconductor, Inc. +* TsiChung Liew (Tsi-Chung.Liew at freescale.com) +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __CROSSBAR_H__ +#define __CROSSBAR_H__ + +/********************************************************************* +* Cross-bar switch (XBS) +*********************************************************************/ +typedef struct xbs { +u32 prs1;/* 0x100 Priority Register Slave 1 */ +u32 res1[3 ];/* 0x104 - 0F */ +u32 crs1;/* 0x110 Control Register Slave 1 */ +u32 res2[187 ];/* 0x114 - 0x3FF */ + +u32 prs4;/* 0x400 Priority Register Slave 4 */ +u32 res3[3 ];/* 0x404 - 0F */ +u32 crs4;/* 0x410 Control Register Slave 4 */ +u32 res4[123 ];/* 0x414 - 0x5FF */ + +u32 prs6;/* 0x600 Priority Register Slave 6 */ +u32 res5[3 ];/* 0x604 - 0F */ +u32 crs6;/* 0x610 Control Register Slave 6 */ +u32 res6[59 ];/* 0x614 - 0x6FF */ + +u32 prs7;/* 0x700 Priority Register Slave 7 */ +u32 res7[3 ];/* 0x704 - 0F */ +u32 crs7;/* 0x710 Control Register Slave 7 */ +}xbs_t ; + +/* Bit definitions and macros for PRS group */ +#define XBS_PRS_M0 (x) (((x)&0x00000007))/* Core */ +#define XBS_PRS_M1 (x) (((x)&0x00000007)<<4)/* eDMA */ +#define XBS_PRS_M2 (x) (((x)&0x00000007)<<8)/* FEC0 */ +#define XBS_PRS_M3 (x) (((x)&0x00000007)<<12)/* FEC1 */ +#define XBS_PRS_M5 (x) (((x)&0x00000007)<<20)/* PCI controller */ +#define XBS_PRS_M6 (x) (((x)&0x00000007)<<24)/* USB OTG */ +#define XBS_PRS_M7 (x) (((x)&0x00000007)<<28)/* Serial Boot */ + +/* Bit definitions and macros for CRS group */ +#define XBS_CRS_PARK (x) (((x)&0x00000007))/* Master parking ctrl */ +#define XBS_CRS_PCTL (x) (((x)&0x00000003)<<4)/* Parking mode ctrl */ +#define XBS_CRS_ARB (0x00000100)/* Arbitration Mode */ +#define XBS_CRS_RO (0x80000000)/* Read Only */ + +#define XBS_CRS_PCTL_PARK_FIELD (0) +#define XBS_CRS_PCTL_PARK_ON_LAST (1) +#define XBS_CRS_PCTL_PARK_NONE (2) +#define XBS_CRS_PCTL_PARK_CORE (0) +#define XBS_CRS_PCTL_PARK_EDMA (1) +#define XBS_CRS_PCTL_PARK_FEC0 (2) +#define XBS_CRS_PCTL_PARK_FEC1 (3) +#define XBS_CRS_PCTL_PARK_PCI (5) +#define XBS_CRS_PCTL_PARK_USB (6) +#define XBS_CRS_PCTL_PARK_SBF (7) + +#endif /* __CROSSBAR_H__ */
include/asm-m68k/coldfire/dspi.h new file +156 -0
156 lines not on this page · raw message
include/asm-m68k/coldfire/edma.h new file +177 -0
177 lines not on this page · raw message
include/asm-m68k/coldfire/flexbus.h new file +98 -0
98 lines not on this page · raw message
include/asm-m68k/coldfire/lcd.h new file +213 -0
213 lines not on this page · raw message
include/asm-m68k/coldfire/ssi.h new file +175 -0
175 lines not on this page · raw message
Signature · 1 line
1.5.2