mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 21:54:37 +08:00
Merge with git://www.denx.de/git/u-boot.git
This commit is contained in:
commit
afd477b227
6
Makefile
6
Makefile
@ -1794,13 +1794,13 @@ MPC8349ITX_config \
|
|||||||
MPC8349ITX_LOWBOOT_config \
|
MPC8349ITX_LOWBOOT_config \
|
||||||
MPC8349ITXGP_config: unconfig
|
MPC8349ITXGP_config: unconfig
|
||||||
@mkdir -p $(obj)include
|
@mkdir -p $(obj)include
|
||||||
@mkdir -p $(obj)board/mpc8349itx
|
@mkdir -p $(obj)board/freescale/mpc8349itx
|
||||||
@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
|
@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
|
||||||
@if [ "$(findstring GP,$@)" ] ; then \
|
@if [ "$(findstring GP,$@)" ] ; then \
|
||||||
echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
|
echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
|
||||||
fi
|
fi
|
||||||
@if [ "$(findstring LOWBOOT,$@)" ] ; then \
|
@if [ "$(findstring LOWBOOT,$@)" ] ; then \
|
||||||
echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
|
echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
|
||||||
fi
|
fi
|
||||||
@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
|
@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#undef PCIE_ENDPOINT
|
#undef PCIE_ENDPOINT
|
||||||
/* #define PCIE_ENDPOINT 1 */
|
/* #define PCIE_ENDPOINT 1 */
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int ppc440spe_init_pcie_rootport(int port);
|
int ppc440spe_init_pcie_rootport(int port);
|
||||||
void ppc440spe_setup_pcie(struct pci_controller *hose, int port);
|
void ppc440spe_setup_pcie(struct pci_controller *hose, int port);
|
||||||
|
|
||||||
@ -322,8 +324,6 @@ int pci_pre_init(struct pci_controller * hose )
|
|||||||
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
||||||
void pci_target_init(struct pci_controller * hose )
|
void pci_target_init(struct pci_controller * hose )
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------+
|
/*-------------------------------------------------------------------+
|
||||||
* Disable everything
|
* Disable everything
|
||||||
*-------------------------------------------------------------------*/
|
*-------------------------------------------------------------------*/
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
void show_reset_reg(void);
|
void show_reset_reg(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int lcd_init(void);
|
int lcd_init(void);
|
||||||
|
|
||||||
int board_early_init_f (void)
|
int board_early_init_f (void)
|
||||||
@ -266,8 +268,6 @@ int pci_pre_init(struct pci_controller * hose )
|
|||||||
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
||||||
void pci_target_init(struct pci_controller * hose )
|
void pci_target_init(struct pci_controller * hose )
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------+
|
/*--------------------------------------------------------------------------+
|
||||||
* Disable everything
|
* Disable everything
|
||||||
*--------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------*/
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#include "yucca.h"
|
#include "yucca.h"
|
||||||
#include "../cpu/ppc4xx/440spe_pcie.h"
|
#include "../cpu/ppc4xx/440spe_pcie.h"
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#undef PCIE_ENDPOINT
|
#undef PCIE_ENDPOINT
|
||||||
/* #define PCIE_ENDPOINT 1 */
|
/* #define PCIE_ENDPOINT 1 */
|
||||||
|
|
||||||
@ -668,8 +670,6 @@ int pci_pre_init(struct pci_controller * hose )
|
|||||||
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
|
||||||
void pci_target_init(struct pci_controller * hose )
|
void pci_target_init(struct pci_controller * hose )
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------+
|
/*-------------------------------------------------------------------+
|
||||||
* Disable everything
|
* Disable everything
|
||||||
*-------------------------------------------------------------------*/
|
*-------------------------------------------------------------------*/
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include "psd4256.h"
|
#include "psd4256.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
#if (BFIN_CPU == ADSP_BF531)
|
#if (BFIN_CPU == ADSP_BF531)
|
||||||
@ -46,7 +48,6 @@ int checkboard(void)
|
|||||||
|
|
||||||
long int initdram(int board_type)
|
long int initdram(int board_type)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
int brate;
|
int brate;
|
||||||
char *tmp = getenv("baudrate");
|
char *tmp = getenv("baudrate");
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include "bf533-stamp.h"
|
#include "bf533-stamp.h"
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define STATUS_LED_OFF 0
|
#define STATUS_LED_OFF 0
|
||||||
#define STATUS_LED_ON 1
|
#define STATUS_LED_ON 1
|
||||||
|
|
||||||
@ -55,7 +57,6 @@ int checkboard(void)
|
|||||||
|
|
||||||
long int initdram(int board_type)
|
long int initdram(int board_type)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("SDRAM attributes:\n");
|
printf("SDRAM attributes:\n");
|
||||||
printf
|
printf
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include "ether_bf537.h"
|
#include "ether_bf537.h"
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define POST_WORD_ADDR 0xFF903FFC
|
#define POST_WORD_ADDR 0xFF903FFC
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -132,7 +134,6 @@ void cf_outsw(unsigned short *addr, unsigned short *sect_buf, int words)
|
|||||||
|
|
||||||
long int initdram(int board_type)
|
long int initdram(int board_type)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
int brate;
|
int brate;
|
||||||
char *tmp = getenv("baudrate");
|
char *tmp = getenv("baudrate");
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
printf("CPU: ADSP BF561\n");
|
printf("CPU: ADSP BF561\n");
|
||||||
@ -39,7 +41,6 @@ int checkboard(void)
|
|||||||
|
|
||||||
long int initdram(int board_type)
|
long int initdram(int board_type)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
int brate;
|
int brate;
|
||||||
char *tmp = getenv("baudrate");
|
char *tmp = getenv("baudrate");
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_BSB
|
#ifdef CONFIG_CMD_BSP
|
||||||
|
|
||||||
int do_i2c(char *argv[])
|
int do_i2c(char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#define MACH_TYPE_DAVINCI_EVM 901
|
#define MACH_TYPE_DAVINCI_EVM 901
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void i2c_init(int speed, int slaveaddr);
|
extern void i2c_init(int speed, int slaveaddr);
|
||||||
extern void timer_init(void);
|
extern void timer_init(void);
|
||||||
extern int eth_hw_init(void);
|
extern int eth_hw_init(void);
|
||||||
@ -115,8 +117,6 @@ void dsp_on(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* arch number of the board */
|
/* arch number of the board */
|
||||||
gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_EVM;
|
gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_EVM;
|
||||||
|
|
||||||
@ -202,8 +202,6 @@ int misc_init_r (void)
|
|||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#define MACH_TYPE_SCHMOOGIE 1255
|
#define MACH_TYPE_SCHMOOGIE 1255
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void i2c_init(int speed, int slaveaddr);
|
extern void i2c_init(int speed, int slaveaddr);
|
||||||
extern void timer_init(void);
|
extern void timer_init(void);
|
||||||
extern int eth_hw_init(void);
|
extern int eth_hw_init(void);
|
||||||
@ -115,8 +117,6 @@ void dsp_on(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* arch number of the board */
|
/* arch number of the board */
|
||||||
gd->bd->bi_arch_number = MACH_TYPE_SCHMOOGIE;
|
gd->bd->bi_arch_number = MACH_TYPE_SCHMOOGIE;
|
||||||
|
|
||||||
@ -244,8 +244,6 @@ int misc_init_r (void)
|
|||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#define MACH_TYPE_SONATA 1254
|
#define MACH_TYPE_SONATA 1254
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void i2c_init(int speed, int slaveaddr);
|
extern void i2c_init(int speed, int slaveaddr);
|
||||||
extern void timer_init(void);
|
extern void timer_init(void);
|
||||||
extern int eth_hw_init(void);
|
extern int eth_hw_init(void);
|
||||||
@ -115,8 +117,6 @@ void dsp_on(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* arch number of the board */
|
/* arch number of the board */
|
||||||
gd->bd->bi_arch_number = MACH_TYPE_SONATA;
|
gd->bd->bi_arch_number = MACH_TYPE_SONATA;
|
||||||
|
|
||||||
@ -199,8 +199,6 @@ int misc_init_r (void)
|
|||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -229,6 +229,7 @@
|
|||||||
#define CFG_ENV_SECT_SIZE 0x40000 /* see README - env sector total size */
|
#define CFG_ENV_SECT_SIZE 0x40000 /* see README - env sector total size */
|
||||||
#define CFG_ENV_OFFSET CFG_ENV_SECT_SIZE
|
#define CFG_ENV_OFFSET CFG_ENV_SECT_SIZE
|
||||||
#define CFG_ENV_SIZE 0x4000 /* Total Size of Environment */
|
#define CFG_ENV_SIZE 0x4000 /* Total Size of Environment */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
#define CFG_DIRECT_FLASH_TFTP
|
#define CFG_DIRECT_FLASH_TFTP
|
||||||
|
|
||||||
|
@ -25,10 +25,9 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <asm/cache.h>
|
|
||||||
|
|
||||||
#ifdef CONFIG_FSL_PIXIS
|
#ifdef CONFIG_FSL_PIXIS
|
||||||
|
#include <asm/cache.h>
|
||||||
#include "pixis.h"
|
#include "pixis.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -221,7 +221,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -33,10 +33,11 @@
|
|||||||
|
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifndef CFG_8313ERDB_BROKEN_PMC
|
#ifndef CFG_8313ERDB_BROKEN_PMC
|
||||||
static void resume_from_sleep(void)
|
static void resume_from_sleep(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
u32 magic = *(u32 *)0;
|
u32 magic = *(u32 *)0;
|
||||||
|
|
||||||
typedef void (*func_t)(void);
|
typedef void (*func_t)(void);
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <clps7111.h>
|
#include <clps7111.h>
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscelaneous platform dependent initialisations
|
* Miscelaneous platform dependent initialisations
|
||||||
@ -37,8 +36,6 @@
|
|||||||
|
|
||||||
int board_init (void)
|
int board_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* Activate LED flasher */
|
/* Activate LED flasher */
|
||||||
IO_LEDFLSH = 0x40;
|
IO_LEDFLSH = 0x40;
|
||||||
|
|
||||||
@ -53,8 +50,6 @@ int board_init (void)
|
|||||||
|
|
||||||
int dram_init (void)
|
int dram_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -200,7 +200,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ int mii_discover_phy(struct eth_device *dev)
|
|||||||
}
|
}
|
||||||
#endif /* CFG_DISCOVER_PHY */
|
#endif /* CFG_DISCOVER_PHY */
|
||||||
|
|
||||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
void mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||||
|
|
||||||
void __mii_init(void)
|
void __mii_init(void)
|
||||||
{
|
{
|
||||||
|
@ -38,6 +38,8 @@ extern void ft_cpu_setup (void *blob, bd_t *bd);
|
|||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void flush_data_cache (void);
|
extern void flush_data_cache (void);
|
||||||
extern void invalidate_l1_instruction_cache (void);
|
extern void invalidate_l1_instruction_cache (void);
|
||||||
extern void tsi108_init_f (void);
|
extern void tsi108_init_f (void);
|
||||||
@ -46,8 +48,6 @@ int display_mem_map (void);
|
|||||||
|
|
||||||
void after_reloc (ulong dest_addr)
|
void after_reloc (ulong dest_addr)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Jump to the main U-Boot board init code
|
* Jump to the main U-Boot board init code
|
||||||
*/
|
*/
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <tsi108.h>
|
#include <tsi108.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void mpicInit (int verbose);
|
extern void mpicInit (int verbose);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -141,7 +143,6 @@ unsigned long get_board_bus_clk (void)
|
|||||||
|
|
||||||
int board_early_init_f (void)
|
int board_early_init_f (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
ulong i;
|
ulong i;
|
||||||
|
|
||||||
gd->mem_clk = 0;
|
gd->mem_clk = 0;
|
||||||
@ -583,7 +584,6 @@ unsigned long get_l2cr (void)
|
|||||||
|
|
||||||
int misc_init_r (void)
|
int misc_init_r (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
#ifdef CFG_CLK_SPREAD /* Initialize Spread-Spectrum Clock generation */
|
#ifdef CFG_CLK_SPREAD /* Initialize Spread-Spectrum Clock generation */
|
||||||
ulong i;
|
ulong i;
|
||||||
|
|
||||||
|
@ -40,6 +40,8 @@ static uchar cs8900_chksum(ushort data)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void print_vcma9_info(void);
|
extern void print_vcma9_info(void);
|
||||||
extern int vcma9_cantest(int);
|
extern int vcma9_cantest(int);
|
||||||
extern int vcma9_nandtest(void);
|
extern int vcma9_nandtest(void);
|
||||||
@ -53,8 +55,6 @@ extern int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
|||||||
|
|
||||||
int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
if (strcmp(argv[1], "info") == 0)
|
if (strcmp(argv[1], "info") == 0)
|
||||||
{
|
{
|
||||||
print_vcma9_info();
|
print_vcma9_info();
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define FCLK_SPEED 1
|
#define FCLK_SPEED 1
|
||||||
|
|
||||||
@ -74,7 +74,6 @@ static inline void delay (unsigned long loops)
|
|||||||
|
|
||||||
int board_init (void)
|
int board_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
|
S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
|
||||||
S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
|
S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
|
||||||
|
|
||||||
@ -128,8 +127,6 @@ int board_init (void)
|
|||||||
|
|
||||||
int dram_init (void)
|
int dram_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -31,8 +31,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <clps7111.h>
|
#include <clps7111.h>
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous platform dependent initialisations
|
* Miscellaneous platform dependent initialisations
|
||||||
@ -40,8 +39,6 @@
|
|||||||
|
|
||||||
int board_init (void)
|
int board_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* arch number MACH_TYPE_ARMADILLO - not official*/
|
/* arch number MACH_TYPE_ARMADILLO - not official*/
|
||||||
gd->bd->bi_arch_number = 83;
|
gd->bd->bi_arch_number = 83;
|
||||||
|
|
||||||
@ -53,8 +50,6 @@ int board_init (void)
|
|||||||
|
|
||||||
int dram_init (void)
|
int dram_init (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
|
||||||
|
|
||||||
|
@ -381,9 +381,11 @@ static struct pci_config_table pci_stxgp3_config_table[] = {
|
|||||||
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
|
#else
|
||||||
{},
|
{},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_MPC85XX_PCI2
|
||||||
|
{},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,6 +145,7 @@ SECTIONS
|
|||||||
. = ALIGN(256);
|
. = ALIGN(256);
|
||||||
__init_end = .;
|
__init_end = .;
|
||||||
|
|
||||||
|
. = .;
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
.bss :
|
.bss :
|
||||||
{
|
{
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#include "mt48lc16m16a2-75.h"
|
#include "mt48lc16m16a2-75.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifdef CONFIG_PS2MULT
|
#ifdef CONFIG_PS2MULT
|
||||||
void ps2mult_early_init(void);
|
void ps2mult_early_init(void);
|
||||||
#endif
|
#endif
|
||||||
@ -477,8 +479,6 @@ int silent_boot (void)
|
|||||||
|
|
||||||
int board_early_init_f (void)
|
int board_early_init_f (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
if (silent_boot())
|
if (silent_boot())
|
||||||
gd->flags |= GD_FLG_SILENT;
|
gd->flags |= GD_FLG_SILENT;
|
||||||
|
|
||||||
|
@ -161,7 +161,11 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||||||
ulong addr, off, size;
|
ulong addr, off, size;
|
||||||
char *cmd, *s;
|
char *cmd, *s;
|
||||||
nand_info_t *nand;
|
nand_info_t *nand;
|
||||||
|
#ifdef CFG_NAND_QUIET
|
||||||
|
int quiet = CFG_NAND_QUIET;
|
||||||
|
#else
|
||||||
int quiet = 0;
|
int quiet = 0;
|
||||||
|
#endif
|
||||||
const char *quiet_str = getenv("quiet");
|
const char *quiet_str = getenv("quiet");
|
||||||
|
|
||||||
/* at least two arguments please */
|
/* at least two arguments please */
|
||||||
@ -452,7 +456,7 @@ U_BOOT_CMD(nand, 5, 1, do_nand,
|
|||||||
"info - show available NAND devices\n"
|
"info - show available NAND devices\n"
|
||||||
"nand device [dev] - show or set current device\n"
|
"nand device [dev] - show or set current device\n"
|
||||||
"nand read[.jffs2] - addr off|partition size\n"
|
"nand read[.jffs2] - addr off|partition size\n"
|
||||||
"nand write[.jffs2] - addr off|partiton size - read/write `size' bytes starting\n"
|
"nand write[.jffs2] - addr off|partition size - read/write `size' bytes starting\n"
|
||||||
" at offset `off' to/from memory address `addr'\n"
|
" at offset `off' to/from memory address `addr'\n"
|
||||||
"nand erase [clean] [off size] - erase `size' bytes from\n"
|
"nand erase [clean] [off size] - erase `size' bytes from\n"
|
||||||
" offset `off' (entire device if not specified)\n"
|
" offset `off' (entire device if not specified)\n"
|
||||||
|
@ -51,18 +51,7 @@
|
|||||||
* a seperate section. Note that ENV_CRC is only defined when building
|
* a seperate section. Note that ENV_CRC is only defined when building
|
||||||
* U-Boot itself.
|
* U-Boot itself.
|
||||||
*/
|
*/
|
||||||
#if (defined(CONFIG_CMI) || \
|
#if (defined(CFG_USE_PPCENV) || defined(CONFIG_NAND_U_BOOT)) && \
|
||||||
defined(CONFIG_FADS) || \
|
|
||||||
defined(CONFIG_HYMOD) || \
|
|
||||||
defined(CONFIG_ICU862) || \
|
|
||||||
defined(CONFIG_R360MPI) || \
|
|
||||||
defined(CONFIG_TQM8xxL) || \
|
|
||||||
defined(CONFIG_RRVISION) || \
|
|
||||||
defined(CONFIG_TRAB) || \
|
|
||||||
defined(CONFIG_PPCHAMELEONEVB) || \
|
|
||||||
defined(CONFIG_M5271EVB) || \
|
|
||||||
defined(CONFIG_IDMR) || \
|
|
||||||
defined(CONFIG_NAND_U_BOOT)) && \
|
|
||||||
defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */
|
defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */
|
||||||
/* XXX - This only works with GNU C */
|
/* XXX - This only works with GNU C */
|
||||||
# define __PPCENV__ __attribute__ ((section(".ppcenv")))
|
# define __PPCENV__ __attribute__ ((section(".ppcenv")))
|
||||||
|
@ -129,8 +129,6 @@ serial_puts (const char *s)
|
|||||||
|
|
||||||
void serial_setbrg (void)
|
void serial_setbrg (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
unsigned short divisor = 0;
|
unsigned short divisor = 0;
|
||||||
|
|
||||||
switch (gd->baudrate) {
|
switch (gd->baudrate) {
|
||||||
|
@ -76,7 +76,6 @@ void calc_baud(void)
|
|||||||
void serial_setbrg(void)
|
void serial_setbrg(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
calc_baud();
|
calc_baud();
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define bfin_read16(addr) ({ unsigned __v; \
|
#define bfin_read16(addr) ({ unsigned __v; \
|
||||||
__asm__ __volatile__ (\
|
__asm__ __volatile__ (\
|
||||||
"%0 = w[%1] (z);\n\t"\
|
"%0 = w[%1] (z);\n\t"\
|
||||||
@ -68,7 +70,6 @@
|
|||||||
|
|
||||||
#ifdef DEBUG_I2C
|
#ifdef DEBUG_I2C
|
||||||
#define PRINTD(fmt,args...) do { \
|
#define PRINTD(fmt,args...) do { \
|
||||||
DECLARE_GLOBAL_DATA_PTR; \
|
|
||||||
if (gd->have_console) \
|
if (gd->have_console) \
|
||||||
printf(fmt ,##args); \
|
printf(fmt ,##args); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
@ -52,6 +52,8 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
unsigned long pll_div_fact;
|
unsigned long pll_div_fact;
|
||||||
|
|
||||||
void calc_baud(void)
|
void calc_baud(void)
|
||||||
@ -74,7 +76,6 @@ void calc_baud(void)
|
|||||||
void serial_setbrg(void)
|
void serial_setbrg(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
calc_baud();
|
calc_baud();
|
||||||
|
|
||||||
|
@ -52,6 +52,8 @@
|
|||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
unsigned long pll_div_fact;
|
unsigned long pll_div_fact;
|
||||||
|
|
||||||
void calc_baud(void)
|
void calc_baud(void)
|
||||||
@ -74,7 +76,6 @@ void calc_baud(void)
|
|||||||
void serial_setbrg(void)
|
void serial_setbrg(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
calc_baud();
|
calc_baud();
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#include <asm/immap.h>
|
#include <asm/immap.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
|
int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
volatile wdog_t *wdp = (wdog_t *) (MMAP_WDOG);
|
volatile wdog_t *wdp = (wdog_t *) (MMAP_WDOG);
|
||||||
@ -48,8 +50,6 @@ int do_reset(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
|
|||||||
|
|
||||||
int checkcpu(void)
|
int checkcpu(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
volatile ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
volatile ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
||||||
u16 msk;
|
u16 msk;
|
||||||
u16 id = 0;
|
u16 id = 0;
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include <asm/immap.h>
|
#include <asm/immap.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/* PLL min/max specifications */
|
/* PLL min/max specifications */
|
||||||
#define MAX_FVCO 500000 /* KHz */
|
#define MAX_FVCO 500000 /* KHz */
|
||||||
#define MAX_FSYS 80000 /* KHz */
|
#define MAX_FSYS 80000 /* KHz */
|
||||||
@ -208,8 +210,6 @@ int clock_pll(int fsys, int flags)
|
|||||||
*/
|
*/
|
||||||
int get_clocks(void)
|
int get_clocks(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000;
|
gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000;
|
||||||
gd->cpu_clk = (gd->bus_clk * 3);
|
gd->cpu_clk = (gd->bus_clk * 3);
|
||||||
return (0);
|
return (0);
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <mpc86xx.h>
|
#include <mpc86xx.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Breathe some life into the CPU...
|
* Breathe some life into the CPU...
|
||||||
*
|
*
|
||||||
@ -38,7 +40,6 @@
|
|||||||
|
|
||||||
void cpu_init_f(void)
|
void cpu_init_f(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
volatile immap_t *immap = (immap_t *)CFG_IMMR;
|
volatile immap_t *immap = (immap_t *)CFG_IMMR;
|
||||||
volatile ccsr_lbc_t *memctl = &immap->im_lbc;
|
volatile ccsr_lbc_t *memctl = &immap->im_lbc;
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <mpc86xx.h>
|
#include <mpc86xx.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
void get_sys_info(sys_info_t *sysInfo)
|
void get_sys_info(sys_info_t *sysInfo)
|
||||||
{
|
{
|
||||||
@ -96,7 +97,6 @@ void get_sys_info(sys_info_t *sysInfo)
|
|||||||
|
|
||||||
int get_clocks(void)
|
int get_clocks(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
sys_info_t sys_info;
|
sys_info_t sys_info;
|
||||||
|
|
||||||
get_sys_info(&sys_info);
|
get_sys_info(&sys_info);
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_KGDB)
|
#if defined(CONFIG_CMD_KGDB)
|
||||||
int (*debugger_exception_handler)(struct pt_regs *) = 0;
|
int (*debugger_exception_handler)(struct pt_regs *) = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -50,8 +52,6 @@ extern unsigned long search_exception_table(unsigned long);
|
|||||||
void
|
void
|
||||||
print_backtrace(unsigned long *sp)
|
print_backtrace(unsigned long *sp)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
|
||||||
|
@ -210,9 +210,12 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
|
|||||||
|
|
||||||
if (!opts->quiet) {
|
if (!opts->quiet) {
|
||||||
unsigned long long n =(unsigned long long)
|
unsigned long long n =(unsigned long long)
|
||||||
(erase.addr+meminfo->erasesize-opts->offset)
|
(erase.addr + meminfo->erasesize - opts->offset)
|
||||||
* 100;
|
* 100;
|
||||||
int percent = (int)do_div(n, erase_length);
|
int percent;
|
||||||
|
|
||||||
|
do_div(n, erase_length);
|
||||||
|
percent = (int)n;
|
||||||
|
|
||||||
/* output progress message only at whole percent
|
/* output progress message only at whole percent
|
||||||
* steps to reduce the number of messages printed
|
* steps to reduce the number of messages printed
|
||||||
@ -478,7 +481,11 @@ int nand_write_opts(nand_info_t *meminfo, const nand_write_options_t *opts)
|
|||||||
if (!opts->quiet) {
|
if (!opts->quiet) {
|
||||||
unsigned long long n = (unsigned long long)
|
unsigned long long n = (unsigned long long)
|
||||||
(opts->length-imglen) * 100;
|
(opts->length-imglen) * 100;
|
||||||
int percent = (int)do_div(n, opts->length);
|
int percent;
|
||||||
|
|
||||||
|
do_div(n, opts->length);
|
||||||
|
percent = (int)n;
|
||||||
|
|
||||||
/* output progress message only at whole percent
|
/* output progress message only at whole percent
|
||||||
* steps to reduce the number of messages printed
|
* steps to reduce the number of messages printed
|
||||||
* on (slow) serial consoles
|
* on (slow) serial consoles
|
||||||
@ -653,7 +660,11 @@ int nand_read_opts(nand_info_t *meminfo, const nand_read_options_t *opts)
|
|||||||
if (!opts->quiet) {
|
if (!opts->quiet) {
|
||||||
unsigned long long n = (unsigned long long)
|
unsigned long long n = (unsigned long long)
|
||||||
(opts->length-imglen) * 100;
|
(opts->length-imglen) * 100;
|
||||||
int percent = (int)do_div(n ,opts->length);
|
int percent;
|
||||||
|
|
||||||
|
do_div(n, opts->length);
|
||||||
|
percent = (int)n;
|
||||||
|
|
||||||
/* output progress message only at whole percent
|
/* output progress message only at whole percent
|
||||||
* steps to reduce the number of messages printed
|
* steps to reduce the number of messages printed
|
||||||
* on (slow) serial consoles
|
* on (slow) serial consoles
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
qe_map_t *qe_immr = NULL;
|
qe_map_t *qe_immr = NULL;
|
||||||
static qe_snum_t snums[QE_NUM_OF_SNUM];
|
static qe_snum_t snums[QE_NUM_OF_SNUM];
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
void qe_issue_cmd(uint cmd, uint sbc, u8 mcn, u32 cmd_data)
|
void qe_issue_cmd(uint cmd, uint sbc, u8 mcn, u32 cmd_data)
|
||||||
{
|
{
|
||||||
u32 cecr;
|
u32 cecr;
|
||||||
@ -51,8 +53,6 @@ void qe_issue_cmd(uint cmd, uint sbc, u8 mcn, u32 cmd_data)
|
|||||||
|
|
||||||
uint qe_muram_alloc(uint size, uint align)
|
uint qe_muram_alloc(uint size, uint align)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
uint retloc;
|
uint retloc;
|
||||||
uint align_mask, off;
|
uint align_mask, off;
|
||||||
uint savebase;
|
uint savebase;
|
||||||
@ -158,8 +158,6 @@ void qe_put_snum(u8 snum)
|
|||||||
|
|
||||||
void qe_init(uint qe_base)
|
void qe_init(uint qe_base)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* Init the QE IMMR base */
|
/* Init the QE IMMR base */
|
||||||
qe_immr = (qe_map_t *)qe_base;
|
qe_immr = (qe_map_t *)qe_base;
|
||||||
|
|
||||||
@ -204,7 +202,6 @@ void qe_assign_page(uint snum, uint para_ram_base)
|
|||||||
|
|
||||||
int qe_set_brg(uint brg, uint rate)
|
int qe_set_brg(uint brg, uint rate)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
volatile uint *bp;
|
volatile uint *bp;
|
||||||
u32 divisor;
|
u32 divisor;
|
||||||
int div16 = 0;
|
int div16 = 0;
|
||||||
|
@ -1262,10 +1262,10 @@ uint mii_parse_lxt971_sr2(uint mii_reg, struct tsec_private *priv)
|
|||||||
case MIIM_LXT971_SR2_100HDX:
|
case MIIM_LXT971_SR2_100HDX:
|
||||||
priv->speed = 100;
|
priv->speed = 100;
|
||||||
priv->duplexity = 0;
|
priv->duplexity = 0;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
priv->speed = 100;
|
priv->speed = 100;
|
||||||
priv->duplexity = 1;
|
priv->duplexity = 1;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
priv->speed = 0;
|
priv->speed = 0;
|
||||||
|
@ -64,6 +64,8 @@
|
|||||||
#include "usbdcore_mpc8xx.h"
|
#include "usbdcore_mpc8xx.h"
|
||||||
#include "usbdcore_ep0.h"
|
#include "usbdcore_ep0.h"
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define ERR(fmt, args...)\
|
#define ERR(fmt, args...)\
|
||||||
serial_printf("ERROR : [%s] %s:%d: "fmt,\
|
serial_printf("ERROR : [%s] %s:%d: "fmt,\
|
||||||
__FILE__,__FUNCTION__,__LINE__, ##args)
|
__FILE__,__FUNCTION__,__LINE__, ##args)
|
||||||
@ -1216,7 +1218,6 @@ static void mpc8xx_udc_clock_init (volatile immap_t * immr,
|
|||||||
#elif defined(CFG_USB_BRGCLK)
|
#elif defined(CFG_USB_BRGCLK)
|
||||||
|
|
||||||
/* This has been tested with brgclk == 50MHz */
|
/* This has been tested with brgclk == 50MHz */
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
int divisor = 0;
|
int divisor = 0;
|
||||||
|
|
||||||
if (gd->cpu_clk < 48000000L) {
|
if (gd->cpu_clk < 48000000L) {
|
||||||
|
@ -158,7 +158,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -399,6 +399,8 @@
|
|||||||
#define CFG_ENV_ADDR_REDUND 0xFFFFA000
|
#define CFG_ENV_ADDR_REDUND 0xFFFFA000
|
||||||
#define CFG_ENV_SIZE_REDUND 0x2000
|
#define CFG_ENV_SIZE_REDUND 0x2000
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
#define CFG_NVRAM_BASE_ADDR 0xF0000500 /* NVRAM base address */
|
#define CFG_NVRAM_BASE_ADDR 0xF0000500 /* NVRAM base address */
|
||||||
#define CFG_NVRAM_SIZE 242 /* NVRAM size */
|
#define CFG_NVRAM_SIZE 242 /* NVRAM size */
|
||||||
|
|
||||||
|
@ -165,7 +165,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -206,6 +206,7 @@
|
|||||||
#define CFG_ENV_IS_IN_FLASH 1
|
#define CFG_ENV_IS_IN_FLASH 1
|
||||||
#define CFG_ENV_OFFSET 0x00040000 /* Offset of Environment Sector */
|
#define CFG_ENV_OFFSET 0x00040000 /* Offset of Environment Sector */
|
||||||
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
|
@ -156,6 +156,7 @@
|
|||||||
#define CFG_ENV_IS_IN_FLASH 1
|
#define CFG_ENV_IS_IN_FLASH 1
|
||||||
#define CFG_ENV_OFFSET 0x00040000 /* Offset of Environment Sector */
|
#define CFG_ENV_OFFSET 0x00040000 /* Offset of Environment Sector */
|
||||||
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
|
@ -39,28 +39,44 @@
|
|||||||
#undef CONFIG_8xx_CONS_SMC1
|
#undef CONFIG_8xx_CONS_SMC1
|
||||||
#define CONFIG_8xx_CONS_SMC2 1 /* Console is on SMC2 */
|
#define CONFIG_8xx_CONS_SMC2 1 /* Console is on SMC2 */
|
||||||
#undef CONFIG_8xx_CONS_NONE
|
#undef CONFIG_8xx_CONS_NONE
|
||||||
#define CONFIG_BAUDRATE 19200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#if 0
|
|
||||||
#define CONFIG_BOOTDELAY -1 /* autoboot disabled */
|
|
||||||
#else
|
|
||||||
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
|
|
||||||
#endif
|
|
||||||
#define CONFIG_BOOTCOMMAND "bootm 40020000" /* autoboot command */
|
|
||||||
|
|
||||||
#define CONFIG_CLOCKS_IN_MHZ 1 /* clocks passsed to Linux in MHz */
|
#define CONFIG_BOOTCOUNT_LIMIT
|
||||||
|
|
||||||
|
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
|
||||||
|
|
||||||
#define CONFIG_BOARD_TYPES 1 /* support board types */
|
#define CONFIG_BOARD_TYPES 1 /* support board types */
|
||||||
|
|
||||||
#define CONFIG_BOOTARGS "root=/dev/nfs rw " \
|
#define CONFIG_PREBOOT "echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo"
|
||||||
"nfsroot=10.0.0.2:/opt/eldk/ppc_8xx " \
|
|
||||||
"nfsaddrs=10.0.0.99:10.0.0.2"
|
#undef CONFIG_BOOTARGS
|
||||||
|
|
||||||
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
|
"netdev=eth0\0" \
|
||||||
|
"nfsargs=setenv bootargs root=/dev/nfs rw " \
|
||||||
|
"nfsroot=${serverip}:${rootpath}\0" \
|
||||||
|
"ramargs=setenv bootargs root=/dev/ram rw\0" \
|
||||||
|
"addip=setenv bootargs ${bootargs} " \
|
||||||
|
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
|
||||||
|
":${hostname}:${netdev}:off panic=1\0" \
|
||||||
|
"flash_nfs=run nfsargs addip;" \
|
||||||
|
"bootm ${kernel_addr}\0" \
|
||||||
|
"flash_self=run ramargs addip;" \
|
||||||
|
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
||||||
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
|
"bootfile=/tftpboot/fps850L/uImage\0" \
|
||||||
|
"fdt_addr=40040000\0" \
|
||||||
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
|
""
|
||||||
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
||||||
#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */
|
#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */
|
||||||
|
|
||||||
#undef CONFIG_WATCHDOG /* watchdog disabled */
|
#undef CONFIG_WATCHDOG /* watchdog disabled */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BOOTP options
|
* BOOTP options
|
||||||
*/
|
*/
|
||||||
@ -80,24 +96,32 @@
|
|||||||
#define CONFIG_BOOTP_NTPSERVER
|
#define CONFIG_BOOTP_NTPSERVER
|
||||||
#define CONFIG_BOOTP_TIMEOFFSET
|
#define CONFIG_BOOTP_TIMEOFFSET
|
||||||
|
|
||||||
|
#define CONFIG_RTC_MPC8xx /* use internal RTC of MPC8xx */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line configuration.
|
* Command line configuration.
|
||||||
*/
|
*/
|
||||||
#include <config_cmd_default.h>
|
#include <config_cmd_default.h>
|
||||||
|
|
||||||
#undef CONFIG_CMD_CONSOLE
|
#define CONFIG_CMD_ASKENV
|
||||||
#undef CONFIG_CMD_BDI
|
#define CONFIG_CMD_DATE
|
||||||
#undef CONFIG_CMD_LOADS
|
#define CONFIG_CMD_DHCP
|
||||||
#undef CONFIG_CMD_LOADB
|
#define CONFIG_CMD_NFS
|
||||||
#undef CONFIG_CMD_CACHE
|
#define CONFIG_CMD_SNTP
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous configurable options
|
* Miscellaneous configurable options
|
||||||
*/
|
*/
|
||||||
#define CFG_LONGHELP /* undef to save memory */
|
#define CFG_LONGHELP /* undef to save memory */
|
||||||
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
||||||
|
|
||||||
|
#define CONFIG_CMDLINE_EDITING 1 /* add command line history */
|
||||||
|
#define CFG_HUSH_PARSER 1 /* Use the HUSH parser */
|
||||||
|
#ifdef CFG_HUSH_PARSER
|
||||||
|
#define CFG_PROMPT_HUSH_PS2 "> "
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_KGDB)
|
#if defined(CONFIG_CMD_KGDB)
|
||||||
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
|
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
|
||||||
#else
|
#else
|
||||||
|
@ -40,18 +40,37 @@
|
|||||||
#define CONFIG_8xx_CONS_SMC2 1 /* Console is on SMC2 */
|
#define CONFIG_8xx_CONS_SMC2 1 /* Console is on SMC2 */
|
||||||
#undef CONFIG_8xx_CONS_NONE
|
#undef CONFIG_8xx_CONS_NONE
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#if 0
|
|
||||||
#define CONFIG_BOOTDELAY -1 /* autoboot disabled */
|
#define CONFIG_BOOTCOUNT_LIMIT
|
||||||
#else
|
|
||||||
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
|
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
|
||||||
#endif
|
|
||||||
#define CONFIG_BOOTCOMMAND "bootm 40040000" /* autoboot command */
|
|
||||||
|
|
||||||
#define CONFIG_BOARD_TYPES 1 /* support board types */
|
#define CONFIG_BOARD_TYPES 1 /* support board types */
|
||||||
|
|
||||||
#define CONFIG_BOOTARGS "root=/dev/nfs rw " \
|
#define CONFIG_PREBOOT "echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo"
|
||||||
"nfsroot=10.0.0.2:/opt/eldk/ppc_8xx " \
|
|
||||||
"nfsaddrs=10.0.0.99:10.0.0.2"
|
#undef CONFIG_BOOTARGS
|
||||||
|
|
||||||
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
|
"netdev=eth0\0" \
|
||||||
|
"nfsargs=setenv bootargs root=/dev/nfs rw " \
|
||||||
|
"nfsroot=${serverip}:${rootpath}\0" \
|
||||||
|
"ramargs=setenv bootargs root=/dev/ram rw\0" \
|
||||||
|
"addip=setenv bootargs ${bootargs} " \
|
||||||
|
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
|
||||||
|
":${hostname}:${netdev}:off panic=1\0" \
|
||||||
|
"flash_nfs=run nfsargs addip;" \
|
||||||
|
"bootm ${kernel_addr}\0" \
|
||||||
|
"flash_self=run ramargs addip;" \
|
||||||
|
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
||||||
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
|
"bootfile=/tftpboot/fps850L/uImage\0" \
|
||||||
|
"fdt_addr=40040000\0" \
|
||||||
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
|
""
|
||||||
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
||||||
#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */
|
#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */
|
||||||
@ -79,11 +98,11 @@
|
|||||||
|
|
||||||
#define CONFIG_RTC_MPC8xx /* use internal RTC of MPC8xx */
|
#define CONFIG_RTC_MPC8xx /* use internal RTC of MPC8xx */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line configuration.
|
* Command line configuration.
|
||||||
*/
|
*/
|
||||||
#include <config_cmd_default.h>
|
#include <config_cmd_default.h>
|
||||||
|
|
||||||
#define CONFIG_CMD_ASKENV
|
#define CONFIG_CMD_ASKENV
|
||||||
#define CONFIG_CMD_DATE
|
#define CONFIG_CMD_DATE
|
||||||
#define CONFIG_CMD_DHCP
|
#define CONFIG_CMD_DHCP
|
||||||
@ -95,7 +114,14 @@
|
|||||||
* Miscellaneous configurable options
|
* Miscellaneous configurable options
|
||||||
*/
|
*/
|
||||||
#define CFG_LONGHELP /* undef to save memory */
|
#define CFG_LONGHELP /* undef to save memory */
|
||||||
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
||||||
|
|
||||||
|
#define CONFIG_CMDLINE_EDITING 1 /* add command line history */
|
||||||
|
#define CFG_HUSH_PARSER 1 /* Use the HUSH parser */
|
||||||
|
#ifdef CFG_HUSH_PARSER
|
||||||
|
#define CFG_PROMPT_HUSH_PS2 "> "
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_KGDB)
|
#if defined(CONFIG_CMD_KGDB)
|
||||||
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
|
#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
|
||||||
#else
|
#else
|
||||||
|
@ -217,7 +217,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -157,7 +157,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -234,6 +234,7 @@
|
|||||||
|
|
||||||
#define CFG_ENV_SECT_SIZE 0x40000 /* Total Size of Environment sector */
|
#define CFG_ENV_SECT_SIZE 0x40000 /* Total Size of Environment sector */
|
||||||
#define CFG_ENV_SIZE 0x4000 /* Used Size of Environment Sector */
|
#define CFG_ENV_SIZE 0x4000 /* Used Size of Environment Sector */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
|
@ -54,13 +54,12 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef CONFIG_MONITOR_IS_IN_RAM
|
#ifndef CONFIG_MONITOR_IS_IN_RAM
|
||||||
#define CFG_ENV_OFFSET 0x4000
|
#define CFG_ENV_OFFSET 0x4000
|
||||||
#define CFG_ENV_SECT_SIZE 0x2000
|
|
||||||
#define CFG_ENV_IS_IN_FLASH 1
|
|
||||||
#else
|
#else
|
||||||
#define CFG_ENV_ADDR 0xffe04000
|
#define CFG_ENV_ADDR 0xffe04000
|
||||||
|
#endif
|
||||||
#define CFG_ENV_SECT_SIZE 0x2000
|
#define CFG_ENV_SECT_SIZE 0x2000
|
||||||
#define CFG_ENV_IS_IN_FLASH 1
|
#define CFG_ENV_IS_IN_FLASH 1
|
||||||
#endif
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BOOTP options
|
* BOOTP options
|
||||||
|
@ -177,7 +177,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -429,6 +429,8 @@
|
|||||||
#define CFG_ENV_ADDR_REDUND 0xFFFFA000
|
#define CFG_ENV_ADDR_REDUND 0xFFFFA000
|
||||||
#define CFG_ENV_SIZE_REDUND 0x2000
|
#define CFG_ENV_SIZE_REDUND 0x2000
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
#endif /* ENVIRONMENT_IN_EEPROM */
|
#endif /* ENVIRONMENT_IN_EEPROM */
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,6 +233,7 @@
|
|||||||
#define CFG_ENV_OFFSET 0x40000 /* Offset of Environment */
|
#define CFG_ENV_OFFSET 0x40000 /* Offset of Environment */
|
||||||
#define CFG_ENV_SECT_SIZE 0x20000 /* Total Size of Environment sector */
|
#define CFG_ENV_SECT_SIZE 0x20000 /* Total Size of Environment sector */
|
||||||
#define CFG_ENV_SIZE 0x4000 /* Used Size of Environment sector */
|
#define CFG_ENV_SIZE 0x4000 /* Used Size of Environment sector */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
|
@ -235,6 +235,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -70,8 +70,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM823L/uImage\0" \
|
"bootfile=/tftpboot/TQM823L/uImage\0" \
|
||||||
"kernel_addr=40040000\0" \
|
"fdt_addr=40040000\0" \
|
||||||
"ramdisk_addr=40100000\0" \
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -205,6 +206,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -70,8 +70,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM823M/uImage\0" \
|
"bootfile=/tftpboot/TQM823M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -202,6 +203,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -66,8 +66,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM850L/uImage\0" \
|
"bootfile=/tftpboot/TQM850L/uImage\0" \
|
||||||
"kernel_addr=40040000\0" \
|
"fdt_addr=40040000\0" \
|
||||||
"ramdisk_addr=40100000\0" \
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -192,6 +193,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -64,8 +64,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM850M/uImage\0" \
|
"bootfile=/tftpboot/TQM850M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -191,6 +192,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -69,8 +69,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM855L/uImage\0" \
|
"bootfile=/tftpboot/TQM855L/uImage\0" \
|
||||||
"kernel_addr=40040000\0" \
|
"fdt_addr=40040000\0" \
|
||||||
"ramdisk_addr=40100000\0" \
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -196,6 +197,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -69,8 +69,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM855M/uImage\0" \
|
"bootfile=/tftpboot/TQM855M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -231,6 +232,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -69,8 +69,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM860L/uImage\0" \
|
"bootfile=/tftpboot/TQM860L/uImage\0" \
|
||||||
"kernel_addr=40040000\0" \
|
"fdt_addr=40040000\0" \
|
||||||
"ramdisk_addr=40100000\0" \
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -199,6 +200,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -69,8 +69,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM860M/uImage\0" \
|
"bootfile=/tftpboot/TQM860M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -198,6 +199,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -72,8 +72,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM862L/uImage\0" \
|
"bootfile=/tftpboot/TQM862L/uImage\0" \
|
||||||
"kernel_addr=40040000\0" \
|
"fdt_addr=40040000\0" \
|
||||||
"ramdisk_addr=40100000\0" \
|
"kernel_addr=40060000\0" \
|
||||||
|
"ramdisk_addr=40200000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -200,6 +201,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -72,8 +72,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM862M/uImage\0" \
|
"bootfile=/tftpboot/TQM862M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -201,6 +202,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -81,8 +81,9 @@
|
|||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
|
||||||
"rootpath=/opt/eldk/ppc_8xx\0" \
|
"rootpath=/opt/eldk/ppc_8xx\0" \
|
||||||
"bootfile=/tftpboot/TQM866M/uImage\0" \
|
"bootfile=/tftpboot/TQM866M/uImage\0" \
|
||||||
"kernel_addr=40080000\0" \
|
"fdt_addr=40080000\0" \
|
||||||
"ramdisk_addr=40180000\0" \
|
"kernel_addr=400A0000\0" \
|
||||||
|
"ramdisk_addr=40280000\0" \
|
||||||
""
|
""
|
||||||
#define CONFIG_BOOTCOMMAND "run flash_self"
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
||||||
|
|
||||||
@ -241,6 +242,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -163,7 +163,8 @@
|
|||||||
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
|
||||||
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
|
||||||
|
|
||||||
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
#define CFG_NAND_SKIP_BAD_DOT_I 1 /* ".i" read skips bad blocks */
|
||||||
|
#define CFG_NAND_QUIET 1
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
|
@ -183,10 +183,9 @@
|
|||||||
#define CFG_LONGHELP 1
|
#define CFG_LONGHELP 1
|
||||||
|
|
||||||
#define CFG_MEMTEST_START \
|
#define CFG_MEMTEST_START \
|
||||||
({ DECLARE_GLOBAL_DATA_PTR; gd->bd->bi_dram[0].start; })
|
({ gd->bd->bi_dram[0].start; })
|
||||||
#define CFG_MEMTEST_END \
|
#define CFG_MEMTEST_END \
|
||||||
({ \
|
({ \
|
||||||
DECLARE_GLOBAL_DATA_PTR; \
|
|
||||||
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; \
|
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; \
|
||||||
})
|
})
|
||||||
#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
|
#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
|
||||||
|
@ -171,8 +171,9 @@
|
|||||||
#define CFG_ENV_IS_IN_FLASH 1
|
#define CFG_ENV_IS_IN_FLASH 1
|
||||||
|
|
||||||
#ifdef CFG_ENV_IS_IN_FLASH
|
#ifdef CFG_ENV_IS_IN_FLASH
|
||||||
#define CFG_ENV_OFFSET 0x00020000 /* Environment starts at this adress */
|
#define CFG_ENV_OFFSET 0x00020000 /* Environment starts at this adress */
|
||||||
#define CFG_ENV_SIZE 0x00010000 /* Set whole sector as env */
|
#define CFG_ENV_SIZE 0x00010000 /* Set whole sector as env */
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
|
@ -406,6 +406,7 @@
|
|||||||
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
#define CFG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
|
||||||
#define CFG_ENV_SECT_SIZE 0x40000 /* see README - env sect real size */
|
#define CFG_ENV_SECT_SIZE 0x40000 /* see README - env sect real size */
|
||||||
#define CFG_ENV_ADDR (CFG_FLASH_BASE+CFG_MONITOR_LEN-CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_ADDR (CFG_FLASH_BASE+CFG_MONITOR_LEN-CFG_ENV_SECT_SIZE)
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
|
@ -125,6 +125,8 @@
|
|||||||
#define CFG_ENV_IS_IN_FLASH
|
#define CFG_ENV_IS_IN_FLASH
|
||||||
#endif /* !CONFIG_MONITOR_IS_IN_RAM */
|
#endif /* !CONFIG_MONITOR_IS_IN_RAM */
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
#define CFG_PROMPT "=> "
|
#define CFG_PROMPT "=> "
|
||||||
#define CFG_LONGHELP /* undef to save memory */
|
#define CFG_LONGHELP /* undef to save memory */
|
||||||
|
|
||||||
|
@ -419,6 +419,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_ADDR+CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_ADDR+CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/* Initial value of the on-board touch screen brightness */
|
/* Initial value of the on-board touch screen brightness */
|
||||||
#define CFG_BRIGHTNESS 0x20
|
#define CFG_BRIGHTNESS 0x20
|
||||||
|
|
||||||
|
@ -207,6 +207,8 @@
|
|||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
|
#define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Hardware Information Block
|
* Hardware Information Block
|
||||||
*/
|
*/
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
int post_flag;
|
int post_flag;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifndef CFG_NO_FLASH
|
#ifndef CFG_NO_FLASH
|
||||||
extern flash_info_t flash_info[];
|
extern flash_info_t flash_info[];
|
||||||
#endif
|
#endif
|
||||||
@ -126,8 +128,6 @@ static void display_flash_config(ulong size)
|
|||||||
|
|
||||||
static int init_baudrate(void)
|
static int init_baudrate(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
char tmp[64];
|
char tmp[64];
|
||||||
int i = getenv_r("baudrate", tmp, sizeof(tmp));
|
int i = getenv_r("baudrate", tmp, sizeof(tmp));
|
||||||
gd->bd->bi_baudrate = gd->baudrate = (i > 0)
|
gd->bd->bi_baudrate = gd->baudrate = (i > 0)
|
||||||
@ -139,7 +139,6 @@ static int init_baudrate(void)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static void display_global_data(void)
|
static void display_global_data(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
bd_t *bd;
|
bd_t *bd;
|
||||||
bd = gd->bd;
|
bd = gd->bd;
|
||||||
printf("--flags:%x\n", gd->flags);
|
printf("--flags:%x\n", gd->flags);
|
||||||
@ -256,7 +255,6 @@ void init_cplbtables(void)
|
|||||||
|
|
||||||
void board_init_f(ulong bootflag)
|
void board_init_f(ulong bootflag)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
ulong addr;
|
ulong addr;
|
||||||
bd_t *bd;
|
bd_t *bd;
|
||||||
int i;
|
int i;
|
||||||
@ -325,7 +323,6 @@ static int init_func_i2c(void)
|
|||||||
|
|
||||||
void board_init_r(gd_t * id, ulong dest_addr)
|
void board_init_r(gd_t * id, ulong dest_addr)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
ulong size;
|
ulong size;
|
||||||
extern void malloc_bin_reloc(void);
|
extern void malloc_bin_reloc(void);
|
||||||
char *s, *e;
|
char *s, *e;
|
||||||
|
@ -32,14 +32,14 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_POST
|
#ifdef CONFIG_POST
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define POST_MAX_NUMBER 32
|
#define POST_MAX_NUMBER 32
|
||||||
|
|
||||||
#define BOOTMODE_MAGIC 0xDEAD0000
|
#define BOOTMODE_MAGIC 0xDEAD0000
|
||||||
|
|
||||||
int post_init_f(void)
|
int post_init_f(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
@ -62,7 +62,6 @@ int post_init_f(void)
|
|||||||
|
|
||||||
void post_bootmode_init(void)
|
void post_bootmode_init(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
int bootmode = post_bootmode_get(0);
|
int bootmode = post_bootmode_get(0);
|
||||||
int newword;
|
int newword;
|
||||||
|
|
||||||
@ -109,20 +108,17 @@ int post_bootmode_get(unsigned int *last_test)
|
|||||||
/* POST tests run before relocation only mark status bits .... */
|
/* POST tests run before relocation only mark status bits .... */
|
||||||
static void post_log_mark_start(unsigned long testid)
|
static void post_log_mark_start(unsigned long testid)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
gd->post_log_word |= (testid) << 16;
|
gd->post_log_word |= (testid) << 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void post_log_mark_succ(unsigned long testid)
|
static void post_log_mark_succ(unsigned long testid)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
gd->post_log_word |= testid;
|
gd->post_log_word |= testid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ... and the messages are output once we are relocated */
|
/* ... and the messages are output once we are relocated */
|
||||||
void post_output_backlog(void)
|
void post_output_backlog(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
for (j = 0; j < post_list_size; j++) {
|
for (j = 0; j < post_list_size; j++) {
|
||||||
@ -372,8 +368,6 @@ int post_log(char *format, ...)
|
|||||||
|
|
||||||
void post_reloc(void)
|
void post_reloc(void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -541,11 +541,11 @@ restart:
|
|||||||
|
|
||||||
case NETLOOP_SUCCESS:
|
case NETLOOP_SUCCESS:
|
||||||
if (NetBootFileXferSize > 0) {
|
if (NetBootFileXferSize > 0) {
|
||||||
char buf[10];
|
char buf[20];
|
||||||
printf("Bytes transferred = %ld (%lx hex)\n",
|
printf("Bytes transferred = %ld (%lx hex)\n",
|
||||||
NetBootFileXferSize,
|
NetBootFileXferSize,
|
||||||
NetBootFileXferSize);
|
NetBootFileXferSize);
|
||||||
sprintf(buf, "%lx", NetBootFileXferSize);
|
sprintf(buf, "%lX", NetBootFileXferSize);
|
||||||
setenv("filesize", buf);
|
setenv("filesize", buf);
|
||||||
|
|
||||||
sprintf(buf, "%lX", (unsigned long)load_addr);
|
sprintf(buf, "%lX", (unsigned long)load_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user