mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-11 13:08:31 -04:00
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
This commit is contained in:
commit
845842c1e4
@ -25,6 +25,7 @@
|
|||||||
#include <mpc512x.h>
|
#include <mpc512x.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <asm/processor.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#ifdef CONFIG_MISC_INIT_R
|
#ifdef CONFIG_MISC_INIT_R
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
@ -92,6 +93,9 @@ int board_early_init_f (void)
|
|||||||
* Configure Flash Speed
|
* Configure Flash Speed
|
||||||
*/
|
*/
|
||||||
*((volatile u32 *)(CFG_IMMR + LPC_OFFSET + CS0_CONFIG)) = CFG_CS0_CFG;
|
*((volatile u32 *)(CFG_IMMR + LPC_OFFSET + CS0_CONFIG)) = CFG_CS0_CFG;
|
||||||
|
if (SVR_MJREV (im->sysconf.spridr) >= 2) {
|
||||||
|
*((volatile u32 *)(CFG_IMMR + LPC_OFFSET + CS_ALE_TIMING_CONFIG)) = CFG_CS_ALETIMING;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Enable clocks
|
* Enable clocks
|
||||||
*/
|
*/
|
||||||
|
@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
|
|||||||
LIB = $(obj)lib$(CPU).a
|
LIB = $(obj)lib$(CPU).a
|
||||||
|
|
||||||
START = start.o
|
START = start.o
|
||||||
COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o fec.o i2c.o iopin.o
|
COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o i2c.o iopin.o
|
||||||
|
|
||||||
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
||||||
|
@ -27,7 +27,7 @@ LIB = $(obj)lib$(CPU).a
|
|||||||
|
|
||||||
START = start.o
|
START = start.o
|
||||||
SOBJS = io.o firmware_sc_task_bestcomm.impl.o firmware_sc_task.impl.o
|
SOBJS = io.o firmware_sc_task_bestcomm.impl.o firmware_sc_task.impl.o
|
||||||
COBJS = i2c.o traps.o cpu.o cpu_init.o fec.o ide.o interrupts.o \
|
COBJS = i2c.o traps.o cpu.o cpu_init.o ide.o interrupts.o \
|
||||||
loadtask.o pci_mpc5200.o serial.o speed.o usb_ohci.o usb.o
|
loadtask.o pci_mpc5200.o serial.o speed.o usb_ohci.o usb.o
|
||||||
|
|
||||||
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
|
@ -41,6 +41,8 @@ COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o
|
|||||||
COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o
|
COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o
|
||||||
COBJS-$(CONFIG_MACB) += macb.o
|
COBJS-$(CONFIG_MACB) += macb.o
|
||||||
COBJS-$(CONFIG_MCFFEC) += mcffec.o
|
COBJS-$(CONFIG_MCFFEC) += mcffec.o
|
||||||
|
COBJS-$(CONFIG_MPC5xxx_FEC) += mpc5xxx_fec.o
|
||||||
|
COBJS-$(CONFIG_MPC512x_FEC) += mpc512x_fec.o
|
||||||
COBJS-$(CONFIG_NATSEMI) += natsemi.o
|
COBJS-$(CONFIG_NATSEMI) += natsemi.o
|
||||||
ifeq ($(CONFIG_DRIVER_NE2000),y)
|
ifeq ($(CONFIG_DRIVER_NE2000),y)
|
||||||
COBJS-y += ne2000.o
|
COBJS-y += ne2000.o
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include "fec.h"
|
#include "mpc512x_fec.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
@ -8,11 +8,11 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <mpc5xxx.h>
|
#include <mpc5xxx.h>
|
||||||
|
#include <mpc5xxx_sdma.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include "sdma.h"
|
#include "mpc5xxx_fec.h"
|
||||||
#include "fec.h"
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
@ -11,10 +11,6 @@
|
|||||||
#ifndef __MPC5XXX_FEC_H
|
#ifndef __MPC5XXX_FEC_H
|
||||||
#define __MPC5XXX_FEC_H
|
#define __MPC5XXX_FEC_H
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <mpc5xxx.h>
|
|
||||||
#include "sdma.h"
|
|
||||||
|
|
||||||
typedef unsigned long uint32;
|
typedef unsigned long uint32;
|
||||||
typedef unsigned short uint16;
|
typedef unsigned short uint16;
|
||||||
typedef unsigned char uint8;
|
typedef unsigned char uint8;
|
@ -210,6 +210,7 @@
|
|||||||
|
|
||||||
#define CFG_CS0_CFG 0x05059310 /* ALE active low, data size 4bytes */
|
#define CFG_CS0_CFG 0x05059310 /* ALE active low, data size 4bytes */
|
||||||
#define CFG_CS2_CFG 0x05059010 /* ALE active low, data size 1byte */
|
#define CFG_CS2_CFG 0x05059010 /* ALE active low, data size 1byte */
|
||||||
|
#define CFG_CS_ALETIMING 0x00000005 /* Use alternative CS timing for CS0 and CS2 */
|
||||||
|
|
||||||
/* Use SRAM for initial stack */
|
/* Use SRAM for initial stack */
|
||||||
#define CFG_INIT_RAM_ADDR CFG_SRAM_BASE /* Initial RAM address */
|
#define CFG_INIT_RAM_ADDR CFG_SRAM_BASE /* Initial RAM address */
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
#define CS5_CONFIG 0x00014
|
#define CS5_CONFIG 0x00014
|
||||||
#define CS6_CONFIG 0x00018
|
#define CS6_CONFIG 0x00018
|
||||||
#define CS7_CONFIG 0x0001C
|
#define CS7_CONFIG 0x0001C
|
||||||
|
#define CS_ALE_TIMING_CONFIG 0x00034
|
||||||
|
|
||||||
#define CS_CTRL 0x00020
|
#define CS_CTRL 0x00020
|
||||||
#define CS_CTRL_ME 0x01000000 /* CS Master Enable bit */
|
#define CS_CTRL_ME 0x01000000 /* CS Master Enable bit */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user