parent
a6840a6ede
commit
b631bb9cad
@ -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 |
||||||
|
|
||||||
|
#########################################################################
|
@ -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
|
@ -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 |
@ -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 |
||||||
|
|
Loading…
Reference in new issue