diff options
-rw-r--r-- | board/rpxsuper/Makefile | 46 | ||||
-rw-r--r-- | board/rpxsuper/config.mk | 34 | ||||
-rw-r--r-- | board/rpxsuper/rpxsuper.h | 25 | ||||
-rw-r--r-- | include/mii_phy.h | 9 |
4 files changed, 114 insertions, 0 deletions
diff --git a/board/rpxsuper/Makefile b/board/rpxsuper/Makefile new file mode 100644 index 00000000000..85ea1fcc932 --- /dev/null +++ b/board/rpxsuper/Makefile @@ -0,0 +1,46 @@ +# +# (C) Copyright 2000 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB = lib$(BOARD).a + +OBJS := rpxsuper.o flash.o mii_phy.o + +$(LIB): $(OBJS) $(SOBJS) + $(AR) crv $@ $^ + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak .depend + +######################################################################### + +.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@ + +-include .depend + +######################################################################### diff --git a/board/rpxsuper/config.mk b/board/rpxsuper/config.mk new file mode 100644 index 00000000000..4b8c5d31f75 --- /dev/null +++ b/board/rpxsuper/config.mk @@ -0,0 +1,34 @@ +# +# (C) Copyright 2000 +# Sysgo Real-Time Solutions, GmbH <www.elinos.com> +# Marius Groeger <mgroeger@sysgo.de> +# +# (C) Copyright 2000 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# 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 +# + +# +# MBX8xx boards +# + +TEXT_BASE = 0x80F00000 + +PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board diff --git a/board/rpxsuper/rpxsuper.h b/board/rpxsuper/rpxsuper.h new file mode 100644 index 00000000000..af31060a7be --- /dev/null +++ b/board/rpxsuper/rpxsuper.h @@ -0,0 +1,25 @@ +#ifndef __RPX8260_H__ +#define __RPX8260_H__ + +typedef struct tt_rpx_regs +{ + volatile unsigned char bcsr0; + volatile unsigned char bcsr1; + volatile unsigned char bcsr2; + volatile unsigned char bcsr3; + volatile unsigned char bcsr4; + volatile unsigned char bcsr5; + volatile unsigned char bcsr6; + volatile unsigned char bcsr7; + volatile unsigned char bcsr8; + volatile unsigned char bcsr9; + volatile unsigned char bcsr10; + volatile unsigned char bcsr11; + volatile unsigned char bcsr12; + volatile unsigned char bcsr13; + volatile unsigned char bcsr14; + volatile unsigned char bcsr15; +} t_rpx_regs; +typedef t_rpx_regs* tp_rpx_regs; + +#endif diff --git a/include/mii_phy.h b/include/mii_phy.h new file mode 100644 index 00000000000..a65bd6654ba --- /dev/null +++ b/include/mii_phy.h @@ -0,0 +1,9 @@ +#ifndef _MII_PHY_H_ +#define _MII_PHY_H_ + +void mii_discover_phy(void); +unsigned short mii_phy_read(unsigned short reg); +void mii_phy_write(unsigned short reg, unsigned short val); + +#endif + |