Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
79867ccf
Commit
79867ccf
authored
Jun 25, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://24.221.152.185/linux-2.5-misc
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
07e51cb4
1e63878b
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
212 additions
and
214 deletions
+212
-214
arch/ppc/8260_io/Config.help
arch/ppc/8260_io/Config.help
+3
-0
arch/ppc/8260_io/Config.in
arch/ppc/8260_io/Config.in
+4
-1
arch/ppc/boot/chrp/Makefile
arch/ppc/boot/chrp/Makefile
+4
-0
arch/ppc/boot/pmac/Makefile
arch/ppc/boot/pmac/Makefile
+2
-0
arch/ppc/boot/prep/Makefile
arch/ppc/boot/prep/Makefile
+2
-0
arch/ppc/boot/simple/Makefile
arch/ppc/boot/simple/Makefile
+1
-0
arch/ppc/configs/est8260_defconfig
arch/ppc/configs/est8260_defconfig
+1
-0
arch/ppc/kernel/head.S
arch/ppc/kernel/head.S
+4
-0
arch/ppc/platforms/mbx.h
arch/ppc/platforms/mbx.h
+24
-2
arch/ppc/platforms/rpxclassic.h
arch/ppc/platforms/rpxclassic.h
+22
-2
arch/ppc/platforms/rpxlite.h
arch/ppc/platforms/rpxlite.h
+19
-2
arch/ppc/platforms/spd8xx.h
arch/ppc/platforms/spd8xx.h
+26
-0
arch/ppc/platforms/tqm8xx.h
arch/ppc/platforms/tqm8xx.h
+100
-0
include/asm-ppc/commproc.h
include/asm-ppc/commproc.h
+0
-207
No files found.
arch/ppc/8260_io/Config.help
View file @
79867ccf
...
...
@@ -22,3 +22,6 @@ CONFIG_SCC1_ENET
CONFIG_SCC2_ENET
Use MPC8xx serial communications controller 2 to drive Ethernet.
CONFIG_DCACHE_DISABLE
This option allows you to run the kernel with data cache disabled.
Say Y if you experience CPM lock-ups.
arch/ppc/8260_io/Config.in
View file @
79867ccf
...
...
@@ -2,7 +2,7 @@
# MPC8260 Communication options
#
mainmenu_option next_comment
comment 'MPC8260 C
ommunication
Options'
comment 'MPC8260 C
PM
Options'
bool 'Enable SCC Console' CONFIG_SCC_CONSOLE
if [ "$CONFIG_NET_ETHERNET" = "y" ]; then
bool 'CPM SCC Ethernet' CONFIG_SCC_ENET
...
...
@@ -30,4 +30,7 @@ if [ "$CONFIG_NET_ETHERNET" = "y" ]; then
fi
fi
fi
comment 'Generic MPC8260 Options'
bool 'Disable data cache' CONFIG_DCACHE_DISABLE
endmenu
arch/ppc/boot/chrp/Makefile
View file @
79867ccf
...
...
@@ -11,7 +11,11 @@ LD_ARGS = -T ../ld.script -Ttext 0x00400000
OBJS
=
../common/crt0.o start.o main.o misc.o ../common/string.o image.o
\
../common/ofcommon.o
EXTRA_TARGETS
:=
$(OBJS)
LIBS
=
$(TOPDIR)
/lib/lib.a ../lib/zlib.a
# Utils
ADDNOTE
=
../utils/addnote
PIGGYBACK
=
../utils/piggyback
...
...
arch/ppc/boot/pmac/Makefile
View file @
79867ccf
...
...
@@ -15,6 +15,8 @@ CHRP_LD_ARGS = -T ../ld.script -Ttext 0x01000000
COMMONOBJS
=
start.o misc.o ../common/string.o ../common/ofcommon.o
COFFOBJS
=
../common/coffcrt0.o
$(COMMONOBJS)
coffmain.o
CHRPOBJS
=
../common/crt0.o
$(COMMONOBJS)
chrpmain.o
EXTRA_TARGETS
:=
$(COFFOBJS)
$(CHRPOBJS)
LIBS
=
$(TOPDIR)
/lib/lib.a ../lib/zlib.a
MKNOTE
:=
../utils/mknote
...
...
arch/ppc/boot/prep/Makefile
View file @
79867ccf
...
...
@@ -30,6 +30,8 @@ LIBS = ../lib/zlib.a
boot-$(CONFIG_SERIAL_CONSOLE)
+=
../common/ns16550.o
boot-$(CONFIG_VGA_CONSOLE)
+=
vreset.o kbd.o
EXTRA_TARGETS
:=
$
(
boot-y
)
# Tools
MKPREP
:=
../utils/mkprep
SIZE
:=
../utils/size
...
...
arch/ppc/boot/simple/Makefile
View file @
79867ccf
...
...
@@ -140,6 +140,7 @@ boot-$(CONFIG_GT64260_CONSOLE) += gt64260_tty.o
boot-$(CONFIG_SERIAL)
+=
../common/ns16550.o
endif
EXTRA_TARGETS
:=
$
(
boot-y
)
LIBS
:=
../lib/zlib.a
# Tools
...
...
arch/ppc/configs/est8260_defconfig
View file @
79867ccf
...
...
@@ -421,6 +421,7 @@ CONFIG_PARTITION_ADVANCED=y
CONFIG_SCC_ENET=y
CONFIG_SCC1_ENET=y
# CONFIG_FEC_ENET is not set
# CONFIG_DCACHE_DISABLE is not set
#
# USB support
...
...
arch/ppc/kernel/head.S
View file @
79867ccf
...
...
@@ -1272,7 +1272,11 @@ _GLOBAL(__setup_cpu_generic)
setup_common_caches
:
mfspr
r11
,
HID0
andi
.
r0
,
r11
,
HID0_DCE
#ifdef CONFIG_DCACHE_DISABLE
ori
r11
,
r11
,
HID0_ICE
#else
ori
r11
,
r11
,
HID0_ICE
|
HID0_DCE
#endif
ori
r8
,
r11
,
HID0_ICFI
bne
1
f
/*
don
't invalidate the D-cache */
ori
r8
,
r8
,
HID0_DCI
/*
unless
it
wasn
't enabled */
...
...
arch/ppc/platforms/mbx.h
View file @
79867ccf
...
...
@@ -88,11 +88,33 @@ typedef struct bd_info {
#define ISA_BRIDGE_INT SIU_IRQ3
/* All those PC things */
#define COMM_L_INT SIU_IRQ6
/* MBX Comm expansion connector pin */
#define STOP_ABRT_INT SIU_IRQ7
/* Stop/Abort header pin */
#endif
/* !__ASSEMBLY__ */
/* CPM Ethernet through SCCx.
*
* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use. The TCLK and RCLK seem unique
* to the MBX860 board. Any two of the four available clocks could be
* used, and the MPC860 cookbook manual has an example using different
* clock pins.
*/
#define PA_ENET_RXD ((ushort)0x0001)
#define PA_ENET_TXD ((ushort)0x0002)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PC_ENET_TENA ((ushort)0x0001)
#define PC_ENET_CLSN ((ushort)0x0010)
#define PC_ENET_RENA ((ushort)0x0020)
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x0000003d)
/* The MBX uses the 8259.
*/
#define NR_8259_INTS 16
#endif
#endif
/* !__ASSEMBLY__ */
#endif
/* __MACH_MBX_DEFS */
#endif
/* __KERNEL__ */
arch/ppc/platforms/rpxclassic.h
View file @
79867ccf
...
...
@@ -94,11 +94,31 @@ extern bd_t m8xx_board_info;
*/
#define FEC_INTERRUPT SIU_LEVEL1
/* FEC interrupt */
#endif
/* !__ASSEMBLY__ */
/* CPM Ethernet through SCCx.
*
* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0001)
#define PA_ENET_TXD ((ushort)0x0002)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PB_ENET_TENA ((uint)0x00001000)
#define PC_ENET_CLSN ((ushort)0x0010)
#define PC_ENET_RENA ((ushort)0x0020)
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x0000003d)
/* We don't use the 8259.
*/
#define NR_8259_INTS 0
#endif
#endif
/* !__ASSEMBLY__ */
#endif
/* __MACH_RPX_DEFS */
#endif
/* __KERNEL__ */
arch/ppc/platforms/rpxlite.h
View file @
79867ccf
...
...
@@ -65,7 +65,6 @@ extern bd_t m8xx_board_info;
#if defined(CONFIG_HTDMSOUND)
#include <platforms/rpxhiox.h>
#endif
#endif
/* !__ASSEMBLY__ */
/* define IO_BASE for pcmcia */
#define _IO_BASE 0x80000000
...
...
@@ -76,9 +75,27 @@ extern bd_t m8xx_board_info;
# define request_irq(irq,hand,flg,dev,id) request_8xxirq((irq),(hand),(flg),(dev),(id))
#endif
/* CPM Ethernet through SCCx.
*
* This ENET stuff is for the MPC850 with ethernet on SCC2. Some of
* this may be unique to the RPX-Lite configuration.
* Note TENA is on Port B.
*/
#define PA_ENET_RXD ((ushort)0x0004)
#define PA_ENET_TXD ((ushort)0x0008)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PB_ENET_TENA ((uint)0x00002000)
#define PC_ENET_CLSN ((ushort)0x0040)
#define PC_ENET_RENA ((ushort)0x0080)
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00003d00)
/* We don't use the 8259.
*/
#define NR_8259_INTS 0
#endif
#endif
/* !__ASSEMBLY__ */
#endif
/* __MACH_RPX_DEFS */
#endif
/* __KERNEL__ */
arch/ppc/platforms/spd8xx.h
View file @
79867ccf
...
...
@@ -15,6 +15,7 @@
#include <asm/ppcboot.h>
#ifndef __ASSEMBLY__
#define SPD_IMMR_BASE 0xFFF00000
/* phys. addr of IMMR */
#define SPD_IMAP_SIZE (64 * 1024)
/* size of mapped area */
...
...
@@ -61,9 +62,34 @@
#define IDE1_CONTROL_REG_OFFSET 0x0106
#define IDE1_IRQ_REG_OFFSET 0x000A
/* not used */
/* CPM Ethernet through SCCx.
*
* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC2 use.
*/
#define PA_ENET_MDC ((ushort)0x0001)
/* PA 15 !!! */
#define PA_ENET_MDIO ((ushort)0x0002)
/* PA 14 !!! */
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0200)
/* PA 6 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PB_ENET_TENA ((uint)0x00002000)
/* PB 18 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
#define PC_ENET_RESET ((ushort)0x0100)
/* PC 7 !!! */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK2) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002E00)
/* We don't use the 8259.
*/
#define NR_8259_INTS 0
#endif
/* !__ASSEMBLY__ */
#endif
/* __ASM_SPD8XX_H__ */
#endif
/* __KERNEL__ */
arch/ppc/platforms/tqm8xx.h
View file @
79867ccf
...
...
@@ -7,6 +7,7 @@
* Copyright (c) 1999,2000,2001 Wolfgang Denk (wd@denx.de)
*/
#ifdef __KERNEL__
#ifndef __MACH_TQM8xx_H
#define __MACH_TQM8xx_H
...
...
@@ -14,6 +15,7 @@
#include <asm/ppcboot.h>
#ifndef __ASSEMBLY__
#define TQM_IMMR_BASE 0xFFF00000
/* phys. addr of IMMR */
#define TQM_IMAP_SIZE (64 * 1024)
/* size of mapped area */
...
...
@@ -47,8 +49,106 @@
#define IDE0_INTERRUPT 13
/*-----------------------------------------------------------------------
* CPM Ethernet through SCCx.
*-----------------------------------------------------------------------
*
*/
/*** TQM823L, TQM850L ***********************************************/
#if defined(CONFIG_TQM823L) || defined(CONFIG_TQM850L)
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PB_ENET_TENA ((uint)0x00002000)
/* PB 18 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002600)
#endif
/* CONFIG_TQM823L, CONFIG_TQM850L */
/*** TQM860L ********************************************************/
#ifdef CONFIG_TQM860L
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0001)
/* PA 15 */
#define PA_ENET_TXD ((ushort)0x0002)
/* PA 14 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_TENA ((ushort)0x0001)
/* PC 15 */
#define PC_ENET_CLSN ((ushort)0x0010)
/* PC 11 */
#define PC_ENET_RENA ((ushort)0x0020)
/* PC 10 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x00000026)
#endif
/* CONFIG_TQM860L */
/*** FPS850L *********************************************************/
#ifdef CONFIG_FPS850L
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_TENA ((ushort)0x0002)
/* PC 14 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002600)
#endif
/* CONFIG_FPS850L */
/*** SM850 *********************************************************/
/* The SM850 Service Module uses SCC2 for IrDA and SCC3 for Ethernet */
#ifdef CONFIG_SM850
#define PB_ENET_RXD ((uint)0x00000004)
/* PB 29 */
#define PB_ENET_TXD ((uint)0x00000002)
/* PB 30 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_LBK ((ushort)0x0008)
/* PC 12 */
#define PC_ENET_TENA ((ushort)0x0004)
/* PC 13 */
#define PC_ENET_RENA ((ushort)0x0800)
/* PC 4 */
#define PC_ENET_CLSN ((ushort)0x0400)
/* PC 5 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC3. Also, make sure GR3 (bit 8) and SC3 (bit 9) are zero.
*/
#define SICR_ENET_MASK ((uint)0x00FF0000)
#define SICR_ENET_CLKRT ((uint)0x00260000)
#endif
/* CONFIG_SM850 */
/* We don't use the 8259.
*/
#define NR_8259_INTS 0
#endif
/* !__ASSEMBLY__ */
#endif
/* __MACH_TQM8xx_H */
#endif
/* __KERNEL__ */
include/asm-ppc/commproc.h
View file @
79867ccf
...
...
@@ -382,213 +382,6 @@ typedef struct scc_enet {
ushort
sen_taddrl
;
/* temp address (LSB) */
}
scc_enet_t
;
/*** MBX ************************************************************/
#ifdef CONFIG_MBX
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use. The TCLK and RCLK seem unique
* to the MBX860 board. Any two of the four available clocks could be
* used, and the MPC860 cookbook manual has an example using different
* clock pins.
*/
#define PA_ENET_RXD ((ushort)0x0001)
#define PA_ENET_TXD ((ushort)0x0002)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PC_ENET_TENA ((ushort)0x0001)
#define PC_ENET_CLSN ((ushort)0x0010)
#define PC_ENET_RENA ((ushort)0x0020)
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x0000003d)
#endif
/* CONFIG_MBX */
/*** RPXLITE ********************************************************/
#ifdef CONFIG_RPXLITE
/* This ENET stuff is for the MPC850 with ethernet on SCC2. Some of
* this may be unique to the RPX-Lite configuration.
* Note TENA is on Port B.
*/
#define PA_ENET_RXD ((ushort)0x0004)
#define PA_ENET_TXD ((ushort)0x0008)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PB_ENET_TENA ((uint)0x00002000)
#define PC_ENET_CLSN ((ushort)0x0040)
#define PC_ENET_RENA ((ushort)0x0080)
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00003d00)
#endif
/* CONFIG_RPXLITE */
/*** BSEIP **********************************************************/
#ifdef CONFIG_BSEIP
/* This ENET stuff is for the MPC823 with ethernet on SCC2.
* This is unique to the BSE ip-Engine board.
*/
#define PA_ENET_RXD ((ushort)0x0004)
#define PA_ENET_TXD ((ushort)0x0008)
#define PA_ENET_TCLK ((ushort)0x0100)
#define PA_ENET_RCLK ((ushort)0x0200)
#define PB_ENET_TENA ((uint)0x00002000)
#define PC_ENET_CLSN ((ushort)0x0040)
#define PC_ENET_RENA ((ushort)0x0080)
/* BSE uses port B and C bits for PHY control also.
*/
#define PB_BSE_POWERUP ((uint)0x00000004)
#define PB_BSE_FDXDIS ((uint)0x00008000)
#define PC_BSE_LOOPBACK ((ushort)0x0800)
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002c00)
#endif
/* CONFIG_BSEIP */
/*** RPXCLASSIC *****************************************************/
#ifdef CONFIG_RPXCLASSIC
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0001)
#define PA_ENET_TXD ((ushort)0x0002)
#define PA_ENET_TCLK ((ushort)0x0200)
#define PA_ENET_RCLK ((ushort)0x0800)
#define PB_ENET_TENA ((uint)0x00001000)
#define PC_ENET_CLSN ((ushort)0x0010)
#define PC_ENET_RENA ((ushort)0x0020)
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x0000003d)
#endif
/* CONFIG_RPXCLASSIC */
/*** TQM823L, TQM850L ***********************************************/
#if defined(CONFIG_TQM823L) || defined(CONFIG_TQM850L)
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PB_ENET_TENA ((uint)0x00002000)
/* PB 18 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002600)
#endif
/* CONFIG_TQM823L, CONFIG_TQM850L */
/*** FPS850L *********************************************************/
#ifdef CONFIG_FPS850L
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_TENA ((ushort)0x0002)
/* PC 14 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK4) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002600)
#endif
/* CONFIG_FPS850L */
/*** TQM860L ********************************************************/
#ifdef CONFIG_TQM860L
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
*/
#define PA_ENET_RXD ((ushort)0x0001)
/* PA 15 */
#define PA_ENET_TXD ((ushort)0x0002)
/* PA 14 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_TENA ((ushort)0x0001)
/* PC 15 */
#define PC_ENET_CLSN ((ushort)0x0010)
/* PC 11 */
#define PC_ENET_RENA ((ushort)0x0020)
/* PC 10 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x00000026)
#endif
/* CONFIG_TQM860L */
/*** SPD823TS *******************************************************/
#ifdef CONFIG_SPD823TS
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC2 use.
*/
#define PA_ENET_MDC ((ushort)0x0001)
/* PA 15 !!! */
#define PA_ENET_MDIO ((ushort)0x0002)
/* PA 14 !!! */
#define PA_ENET_RXD ((ushort)0x0004)
/* PA 13 */
#define PA_ENET_TXD ((ushort)0x0008)
/* PA 12 */
#define PA_ENET_RCLK ((ushort)0x0200)
/* PA 6 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PB_ENET_TENA ((uint)0x00002000)
/* PB 18 */
#define PC_ENET_CLSN ((ushort)0x0040)
/* PC 9 */
#define PC_ENET_RENA ((ushort)0x0080)
/* PC 8 */
#define PC_ENET_RESET ((ushort)0x0100)
/* PC 7 !!! */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK2) to
* SCC2. Also, make sure GR2 (bit 16) and SC2 (bit 17) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002E00)
#endif
/* CONFIG_SPD823TS */
/*** SM850 *********************************************************/
/* The SM850 Service Module uses SCC2 for IrDA and SCC3 for Ethernet */
#ifdef CONFIG_SM850
#define PB_ENET_RXD ((uint)0x00000004)
/* PB 29 */
#define PB_ENET_TXD ((uint)0x00000002)
/* PB 30 */
#define PA_ENET_RCLK ((ushort)0x0100)
/* PA 7 */
#define PA_ENET_TCLK ((ushort)0x0400)
/* PA 5 */
#define PC_ENET_LBK ((ushort)0x0008)
/* PC 12 */
#define PC_ENET_TENA ((ushort)0x0004)
/* PC 13 */
#define PC_ENET_RENA ((ushort)0x0800)
/* PC 4 */
#define PC_ENET_CLSN ((ushort)0x0400)
/* PC 5 */
/* Control bits in the SICR to route TCLK (CLK3) and RCLK (CLK1) to
* SCC3. Also, make sure GR3 (bit 8) and SC3 (bit 9) are zero.
*/
#define SICR_ENET_MASK ((uint)0x00FF0000)
#define SICR_ENET_CLKRT ((uint)0x00260000)
#endif
/* CONFIG_SM850 */
/*********************************************************************/
/* SCC Event register as used by Ethernet.
*/
#define SCCE_ENET_GRA ((ushort)0x0080)
/* Graceful stop complete */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment