ColdFire: Add modules header files
PATCH 1/1 ColdFire: Add modules header files
ColdFire: Add modules header files
--- include/asm-m68k/crossbar.h | 79 ++++++++++++++++ include/asm-m68k/dspi.h | 156 +++++++++++++++++++++++++++++++ include/asm-m68k/edma.h | 177 +++++++++++++++++++++++++++++++++++ include/asm-m68k/flexbus.h | 98 ++++++++++++++++++++ include/asm-m68k/lcd.h | 213 ++++++++++++++++++++++++++++++++++++ +++++++ include/asm-m68k/ssi.h | 175 +++++++++++++++++++++++++++++++++++ 6 files changed, 898 insertions(+), 0 deletions(-) create mode 100644 include/asm-m68k/crossbar.h create mode 100644 include/asm-m68k/dspi.h create mode 100644 include/asm-m68k/edma.h create mode 100644 include/asm-m68k/flexbus.h create mode 100644 include/asm-m68k/lcd.h create mode 100644 include/asm-m68k/ssi.h
include/asm-m68k/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/dspi.h new file +156 -0
156 lines not on this page · raw message
include/asm-m68k/edma.h new file +177 -0
177 lines not on this page · raw message
include/asm-m68k/flexbus.h new file +60 -0
60 lines not on this page · raw message
*/
+#define FBCS_CSMR_BAM_4G (0xFFFF0000)
+#define FBCS_CSMR_BAM_2G (0x7FFF0000)
+#define FBCS_CSMR_BAM_1G (0x3FFF0000)
+#define FBCS_CSMR_BAM_1024M (0x3FFF0000)
+#define FBCS_CSMR_BAM_512M (0x1FFF0000)
+#define FBCS_CSMR_BAM_256M (0x0FFF0000)
+#define FBCS_CSMR_BAM_128M (0x07FF0000)
+#define FBCS_CSMR_BAM_64M (0x03FF0000)
+#define FBCS_CSMR_BAM_32M (0x01FF0000)
+#define FBCS_CSMR_BAM_16M (0x00FF0000)
+#define FBCS_CSMR_BAM_8M (0x007F0000)
+#define FBCS_CSMR_BAM_4M (0x003F0000)
+#define FBCS_CSMR_BAM_2M (0x001F0000)
+#define FBCS_CSMR_BAM_1M (0x000F0000)
+#define FBCS_CSMR_BAM_1024K (0x000F0000)
+#define FBCS_CSMR_BAM_512K (0x00070000)
+#define FBCS_CSMR_BAM_256K (0x00030000)
+#define FBCS_CSMR_BAM_128K (0x00010000)
+#define FBCS_CSMR_BAM_64K (0x00000000)
+
+/* Bit definitions and macros for CSCR group */
+#define FBCS_CSCR_BSTW (0x00000008) /* Burst-write enable */
+#define FBCS_CSCR_BSTR (0x00000010) /* Burst-read enable */
+#define FBCS_CSCR_BEM (0x00000020) /* Byte-enable mode */
+#define FBCS_CSCR_PS(x) (((x)&0x00000003)<<6) /* Port size */
+#define FBCS_CSCR_AA (0x00000100) /* Auto-acknowledge */
+#define FBCS_CSCR_WS(x) (((x)&0x0000003F)<<10) /* Wait states */
+#define FBCS_CSCR_WRAH(x) (((x)&0x00000003)<<16) /* Write address hold
or deselect */
+#define FBCS_CSCR_RDAH(x) (((x)&0x00000003)<<18) /* Read address hold
or deselect */
+#define FBCS_CSCR_ASET(x) (((x)&0x00000003)<<20) /* Address setup */
+#define FBCS_CSCR_SWSEN (0x00800000) /* Secondary wait state enable
*/
+#define FBCS_CSCR_SWS(x) (((x)&0x0000003F)<<26) /* Secondary wait
states */
+
+#define FBCS_CSCR_PS_8 (0x00000040)
+#define FBCS_CSCR_PS_16 (0x00000080)
+#define FBCS_CSCR_PS_32 (0x00000000)
+
+#endif /* __FLEXBUS_H */
include/asm-m68k/lcd.h new file +213 -0
213 lines not on this page · raw message
include/asm-m68k/ssi.h new file +175 -0
175 lines not on this page · raw message
Signature · 1 line
1.5.2
PATCH 1/1 ColdFire: Add modules header files
Quoted 18 lines · In message <1200001253.30824.3.camel@Goku> you wrote:
ColdFire: Add modules header files
Signed-off-by TsiChungLiew <[email protected]>--- include/asm-m68k/crossbar.h | 79 ++++++++++++++++ include/asm-m68k/dspi.h | 156 +++++++++++++++++++++++++++++++ include/asm-m68k/edma.h | 177 +++++++++++++++++++++++++++++++++++ include/asm-m68k/flexbus.h | 98 ++++++++++++++++++++ include/asm-m68k/lcd.h | 213 ++++++++++++++++++++++++++++++++++++ +++++++ include/asm-m68k/ssi.h | 175 +++++++++++++++++++++++++++++++++++ 6 files changed, 898 insertions(+), 0 deletions(-) create mode 100644 include/asm-m68k/crossbar.h create mode 100644 include/asm-m68k/dspi.h create mode 100644 include/asm-m68k/edma.h create mode 100644 include/asm-m68k/flexbus.h create mode 100644 include/asm-m68k/lcd.h create mode 100644 include/asm-m68k/ssi.h
I understand that these are ColdFire specific files, which are probably not relevant to other, non-CF m68k systems?
I think this should be visible from the file name. How about creating a directory ofr ColdFire related headers so we don't pollute the global name space too much?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another dream that failed. There's nothing sadder. -- Kirk, "This side of Paradise", stardate 3417.3
PATCH 1/1 ColdFire: Add modules header files
Wolfgang,
I created a coldfire folder under asm-m68k, 6 modules were relocated to the new directory. I re-send some of the patches.
Do I have to resubmit all the patches or just the affected patches from the changes?
Regards,
TsiChung
-----Original Message-----
From: [email protected] [mailto:wd at denx.de]
Sent: Saturday, January 12, 2008 8:08 AM
To: Liew Tsi Chung
Cc: u-boot
Subject: Re: [U-Boot-Users] [PATCH] ColdFire: Add modules header files
Quoted 12 lines · In message <1200001253.30824.3.camel@Goku> you wrote:
ColdFire: Add modules header files
Signed-off-by TsiChungLiew <[email protected]>--- include/asm-m68k/crossbar.h | 79 ++++++++++++++++ include/asm-m68k/dspi.h | 156 +++++++++++++++++++++++++++++++ include/asm-m68k/edma.h | 177 +++++++++++++++++++++++++++++++++++ include/asm-m68k/flexbus.h | 98 ++++++++++++++++++++ include/asm-m68k/lcd.h | 213 ++++++++++++++++++++++++++++++++++++ +++++++ include/asm-m68k/ssi.h | 175 +++++++++++++++++++++++++++++++++++ 6 files changed, 898 insertions(+), 0 deletions(-) create mode
Quoted 4 lines
100644
include/asm-m68k/crossbar.hcreate mode 100644include/asm-m68k/dspi.hcreate mode 100644include/asm-m68k/edma.hcreate mode 100644include/asm-m68k/flexbus.hcreate mode 100644include/asm-m68k/lcd.hcreate mode 100644include/asm-m68k/ssi.h
I understand that these are ColdFire specific files, which are probably not relevant to other, non-CF m68k systems?
I think this should be visible from the file name. How about creating a directory ofr ColdFire related headers so we don't pollute the global name space too much?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another dream that failed. There's nothing sadder. -- Kirk, "This side of Paradise", stardate 3417.3
PATCH 1/1 ColdFire: Add modules header files
Quoted 4 lines · In message <4791E710007FEB4BBF83775D787F462F05CC6997@az33exm22.fsl.freescale.ne…
I created a coldfire folder under asm-m68k, 6 modules were relocated to the new directory. I re-send some of the patches.
Do I have to resubmit all the patches or just the affected patches from the changes?
You probably want to rebase your poatches against current top of tree anyway, and for reviewing it would be easier, too, if youreposted the whole batch.
Thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I thought my people would grow tired of killing. But you were right, they see it is easier than trading. And it has its pleasures. I feel it myself. Like the hunt, but with richer rewards. -- Apella, "A Private Little War", stardate 4211.8
PATCH 1/1 ColdFire: Add modules header files
Wolfgang,
Quoted 3 lines
You probably want to rebase your poatches against current top of tree anyway, and for reviewing it would be easier, too, if youreposted the whole batch.
Done and resubmitted the patches. It is based on top of commit 5dd372a23d12003276dddf7f9604154fd522ae73
Thanks.
Regards,
TsiChung