mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
Merge ../u-boot
This commit is contained in:
commit
fd64975a88
4
Makefile
4
Makefile
@ -22,9 +22,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
PATCHLEVEL = 2
|
PATCHLEVEL = 3
|
||||||
SUBLEVEL = 0
|
SUBLEVEL = 0
|
||||||
EXTRAVERSION =
|
EXTRAVERSION = -rc1
|
||||||
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
||||||
VERSION_FILE = $(obj)include/version_autogenerated.h
|
VERSION_FILE = $(obj)include/version_autogenerated.h
|
||||||
|
|
||||||
|
@ -378,9 +378,12 @@ static struct pci_config_table pci_stxgp3_config_table[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static struct pci_controller hose = {
|
static struct pci_controller hose[] = {
|
||||||
#ifndef CONFIG_PCI_PNP
|
#ifndef CONFIG_PCI_PNP
|
||||||
config_table: pci_stxgp3_config_table,
|
{ config_table: pci_stxgp3_config_table,},
|
||||||
|
#ifdef CONFIG_MPC85XX_PCI2
|
||||||
|
{},
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -393,6 +396,6 @@ pci_init_board(void)
|
|||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
extern void pci_mpc85xx_init(struct pci_controller *hose);
|
extern void pci_mpc85xx_init(struct pci_controller *hose);
|
||||||
|
|
||||||
pci_mpc85xx_init(&hose);
|
pci_mpc85xx_init(hose);
|
||||||
#endif /* CONFIG_PCI */
|
#endif /* CONFIG_PCI */
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ int fec512x_miiphy_read(char *devname, uint8 phyAddr, uint8 regAddr, uint16 * re
|
|||||||
int fec512x_miiphy_write(char *devname, uint8 phyAddr, uint8 regAddr, uint16 data);
|
int fec512x_miiphy_write(char *devname, uint8 phyAddr, uint8 regAddr, uint16 data);
|
||||||
int mpc512x_fec_init_phy(struct eth_device *dev, bd_t * bis);
|
int mpc512x_fec_init_phy(struct eth_device *dev, bd_t * bis);
|
||||||
|
|
||||||
static uchar rx_buff[FEC_MAX_PKT_SIZE];
|
static uchar rx_buff[FEC_BUFFER_SIZE];
|
||||||
static int rx_buff_idx = 0;
|
static int rx_buff_idx = 0;
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
@ -237,8 +237,8 @@ static int mpc512x_fec_init (struct eth_device *dev, bd_t * bis)
|
|||||||
/* Set Opcode/Pause Duration Register */
|
/* Set Opcode/Pause Duration Register */
|
||||||
fec->eth->op_pause = 0x00010020;
|
fec->eth->op_pause = 0x00010020;
|
||||||
|
|
||||||
/* Frame length=1518; MII mode */
|
/* Frame length=1522; MII mode */
|
||||||
fec->eth->r_cntrl = 0x05ee0024;
|
fec->eth->r_cntrl = (FEC_MAX_FRAME_LEN << 16) | 0x24;
|
||||||
|
|
||||||
/* Half-duplex, heartbeat disabled */
|
/* Half-duplex, heartbeat disabled */
|
||||||
fec->eth->x_cntrl = 0x00000000;
|
fec->eth->x_cntrl = 0x00000000;
|
||||||
@ -248,7 +248,7 @@ static int mpc512x_fec_init (struct eth_device *dev, bd_t * bis)
|
|||||||
|
|
||||||
/* Setup recv fifo start and buff size */
|
/* Setup recv fifo start and buff size */
|
||||||
fec->eth->r_fstart = 0x500;
|
fec->eth->r_fstart = 0x500;
|
||||||
fec->eth->r_buff_size = 0x5e0;
|
fec->eth->r_buff_size = FEC_BUFFER_SIZE;
|
||||||
|
|
||||||
/* Setup BD base addresses */
|
/* Setup BD base addresses */
|
||||||
fec->eth->r_des_start = (uint32)fec->bdBase->rbd;
|
fec->eth->r_des_start = (uint32)fec->bdBase->rbd;
|
||||||
|
@ -164,10 +164,13 @@ typedef enum {
|
|||||||
#define FEC_RBD_NUM 32 /* The user can adjust this value */
|
#define FEC_RBD_NUM 32 /* The user can adjust this value */
|
||||||
|
|
||||||
/* packet size limit */
|
/* packet size limit */
|
||||||
#define FEC_MAX_PKT_SIZE 1536
|
#define FEC_MAX_FRAME_LEN 1522 /* recommended default value */
|
||||||
|
|
||||||
|
/* Buffer size must be evenly divisible by 16 */
|
||||||
|
#define FEC_BUFFER_SIZE ((FEC_MAX_FRAME_LEN + 0x10) & (~0xf))
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8 frame[FEC_MAX_PKT_SIZE];
|
uint8 frame[FEC_BUFFER_SIZE];
|
||||||
} mpc512x_frame;
|
} mpc512x_frame;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -230,7 +230,7 @@
|
|||||||
#define CFG_PCI2_IO_SIZE 0x01000000 /* 16M */
|
#define CFG_PCI2_IO_SIZE 0x01000000 /* 16M */
|
||||||
|
|
||||||
#if defined(CONFIG_PCI) /* PCI Ethernet card */
|
#if defined(CONFIG_PCI) /* PCI Ethernet card */
|
||||||
|
#define CONFIG_MPC85XX_PCI2 1
|
||||||
#define CONFIG_NET_MULTI
|
#define CONFIG_NET_MULTI
|
||||||
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@
|
|||||||
#define IH_CPU_NIOS2 15 /* Nios-II */
|
#define IH_CPU_NIOS2 15 /* Nios-II */
|
||||||
#define IH_CPU_BLACKFIN 16 /* Blackfin */
|
#define IH_CPU_BLACKFIN 16 /* Blackfin */
|
||||||
#define IH_CPU_AVR32 17 /* AVR32 */
|
#define IH_CPU_AVR32 17 /* AVR32 */
|
||||||
|
#define IH_CPU_ST200 18 /* STMicroelectronics ST200 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Image Types
|
* Image Types
|
||||||
|
@ -84,6 +84,12 @@ $(obj)nand_ecc.c:
|
|||||||
@rm -f $(obj)nand_ecc.c
|
@rm -f $(obj)nand_ecc.c
|
||||||
ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
|
ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
|
||||||
|
|
||||||
|
ifneq ($(OBJTREE), $(SRCTREE))
|
||||||
|
$(obj)sdram.c:
|
||||||
|
@rm -f $(obj)sdram.c
|
||||||
|
ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/sdram.c $(obj)sdram.c
|
||||||
|
endif
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
$(obj)%.o: $(obj)%.S
|
$(obj)%.o: $(obj)%.S
|
||||||
|
Loading…
x
Reference in New Issue
Block a user