mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-24 22:26:50 -04:00
Merge with git+ssh://sr@pollux.denx.org/home/sr/git/u-boot/denx/.git
This commit is contained in:
commit
c2a6e9091f
@ -350,12 +350,19 @@ int misc_init_r(void)
|
|||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
char *s = getenv("serial#");
|
char *s = getenv("serial#");
|
||||||
|
u8 rev;
|
||||||
|
u8 val;
|
||||||
|
|
||||||
#ifdef CONFIG_440EPX
|
#ifdef CONFIG_440EPX
|
||||||
printf("Board: Sequoia - AMCC PPC440EPx Evaluation Board");
|
printf("Board: Sequoia - AMCC PPC440EPx Evaluation Board");
|
||||||
#else
|
#else
|
||||||
printf("Board: Rainier - AMCC PPC440GRx Evaluation Board");
|
printf("Board: Rainier - AMCC PPC440GRx Evaluation Board");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
rev = *(u8 *)(CFG_CPLD + 0);
|
||||||
|
val = *(u8 *)(CFG_CPLD + 5) & 0x01;
|
||||||
|
printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33);
|
||||||
|
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
puts(", serial# ");
|
puts(", serial# ");
|
||||||
puts(s);
|
puts(s);
|
||||||
|
@ -39,24 +39,6 @@ int board_early_init_f(void)
|
|||||||
reg = mfdcr(ebccfgd);
|
reg = mfdcr(ebccfgd);
|
||||||
mtdcr(ebccfgd, reg | 0x04000000); /* Set ATC */
|
mtdcr(ebccfgd, reg | 0x04000000); /* Set ATC */
|
||||||
|
|
||||||
mtebc(pb0ap, 0x03017300); /* FLASH/SRAM */
|
|
||||||
mtebc(pb0cr, 0xfc0da000); /* BAS=0xfc0 64MB r/w 16-bit */
|
|
||||||
|
|
||||||
mtebc(pb1ap, 0x00000000);
|
|
||||||
mtebc(pb1cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb2ap, 0x04814500);
|
|
||||||
/*CPLD*/ mtebc(pb2cr, 0x80018000); /*BAS=0x800 1MB r/w 8-bit */
|
|
||||||
|
|
||||||
mtebc(pb3ap, 0x00000000);
|
|
||||||
mtebc(pb3cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb4ap, 0x00000000);
|
|
||||||
mtebc(pb4cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb5ap, 0x00000000);
|
|
||||||
mtebc(pb5cr, 0x00000000);
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
* Setup the GPIO pins
|
* Setup the GPIO pins
|
||||||
*-------------------------------------------------------------------*/
|
*-------------------------------------------------------------------*/
|
||||||
@ -190,8 +172,15 @@ int misc_init_r (void)
|
|||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
char *s = getenv("serial#");
|
char *s = getenv("serial#");
|
||||||
|
u8 rev;
|
||||||
|
u8 val;
|
||||||
|
|
||||||
printf("Board: Yellowstone - AMCC PPC440GR Evaluation Board");
|
printf("Board: Yellowstone - AMCC PPC440GR Evaluation Board");
|
||||||
|
|
||||||
|
rev = *(u8 *)(CFG_CPLD + 0);
|
||||||
|
val = *(u8 *)(CFG_CPLD + 5) & 0x01;
|
||||||
|
printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33);
|
||||||
|
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
puts(", serial# ");
|
puts(", serial# ");
|
||||||
puts(s);
|
puts(s);
|
||||||
|
@ -39,24 +39,6 @@ int board_early_init_f(void)
|
|||||||
reg = mfdcr(ebccfgd);
|
reg = mfdcr(ebccfgd);
|
||||||
mtdcr(ebccfgd, reg | 0x04000000); /* Set ATC */
|
mtdcr(ebccfgd, reg | 0x04000000); /* Set ATC */
|
||||||
|
|
||||||
mtebc(pb0ap, 0x03017300); /* FLASH/SRAM */
|
|
||||||
mtebc(pb0cr, 0xfc0da000); /* BAS=0xfc0 64MB r/w 16-bit */
|
|
||||||
|
|
||||||
mtebc(pb1ap, 0x00000000);
|
|
||||||
mtebc(pb1cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb2ap, 0x04814500);
|
|
||||||
/*CPLD*/ mtebc(pb2cr, 0x80018000); /*BAS=0x800 1MB r/w 8-bit */
|
|
||||||
|
|
||||||
mtebc(pb3ap, 0x00000000);
|
|
||||||
mtebc(pb3cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb4ap, 0x00000000);
|
|
||||||
mtebc(pb4cr, 0x00000000);
|
|
||||||
|
|
||||||
mtebc(pb5ap, 0x00000000);
|
|
||||||
mtebc(pb5cr, 0x00000000);
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
* Setup the GPIO pins
|
* Setup the GPIO pins
|
||||||
*-------------------------------------------------------------------*/
|
*-------------------------------------------------------------------*/
|
||||||
@ -186,8 +168,15 @@ int misc_init_r (void)
|
|||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
char *s = getenv("serial#");
|
char *s = getenv("serial#");
|
||||||
|
u8 rev;
|
||||||
|
u8 val;
|
||||||
|
|
||||||
printf("Board: Yosemite - AMCC PPC440EP Evaluation Board");
|
printf("Board: Yosemite - AMCC PPC440EP Evaluation Board");
|
||||||
|
|
||||||
|
rev = *(u8 *)(CFG_CPLD + 0);
|
||||||
|
val = *(u8 *)(CFG_CPLD + 5) & 0x01;
|
||||||
|
printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33);
|
||||||
|
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
puts(", serial# ");
|
puts(", serial# ");
|
||||||
puts(s);
|
puts(s);
|
||||||
|
@ -83,7 +83,7 @@ U_BOOT_CMD(
|
|||||||
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
||||||
|
|
||||||
U_BOOT_CMD(
|
U_BOOT_CMD(
|
||||||
reset, CFG_MAXARGS, 1, do_reset,
|
reset, 1, 0, do_reset,
|
||||||
"reset - Perform RESET of the CPU\n",
|
"reset - Perform RESET of the CPU\n",
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
@ -332,24 +332,44 @@ int checkcpu (void)
|
|||||||
strcpy(addstr, "No Security/Kasumi support");
|
strcpy(addstr, "No Security/Kasumi support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PVR_440SP_RA:
|
case PVR_440SP_6_RAB:
|
||||||
puts("SP Rev. A");
|
puts("SP Rev. A/B");
|
||||||
|
strcpy(addstr, "RAID 6 support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PVR_440SP_RB:
|
case PVR_440SP_RAB:
|
||||||
puts("SP Rev. B");
|
puts("SP Rev. A/B");
|
||||||
|
strcpy(addstr, "No RAID 6 support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_440SP_6_RC:
|
||||||
|
puts("SP Rev. C");
|
||||||
|
strcpy(addstr, "RAID 6 support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PVR_440SP_RC:
|
case PVR_440SP_RC:
|
||||||
puts("SP Rev. C");
|
puts("SP Rev. C");
|
||||||
|
strcpy(addstr, "No RAID 6 support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_440SPe_6_RA:
|
||||||
|
puts("SPe Rev. A");
|
||||||
|
strcpy(addstr, "RAID 6 support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PVR_440SPe_RA:
|
case PVR_440SPe_RA:
|
||||||
puts("SPe Rev. A");
|
puts("SPe Rev. A");
|
||||||
|
strcpy(addstr, "No RAID 6 support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_440SPe_6_RB:
|
||||||
|
puts("SPe Rev. B");
|
||||||
|
strcpy(addstr, "RAID 6 support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PVR_440SPe_RB:
|
case PVR_440SPe_RB:
|
||||||
puts("SPe Rev. B");
|
puts("SPe Rev. B");
|
||||||
|
strcpy(addstr, "No RAID 6 support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -747,11 +747,14 @@
|
|||||||
#define PVR_440GX_RC 0x51B21892
|
#define PVR_440GX_RC 0x51B21892
|
||||||
#define PVR_440GX_RF 0x51B21894
|
#define PVR_440GX_RF 0x51B21894
|
||||||
#define PVR_405EP_RB 0x51210950
|
#define PVR_405EP_RB 0x51210950
|
||||||
#define PVR_440SP_RA 0x53221850
|
#define PVR_440SP_6_RAB 0x53221850 /* 440SP rev A&B with RAID 6 support enabled */
|
||||||
#define PVR_440SP_RB 0x53221891
|
#define PVR_440SP_RAB 0x53321850 /* 440SP rev A&B without RAID 6 support */
|
||||||
#define PVR_440SP_RC 0x53221892
|
#define PVR_440SP_6_RC 0x53221891 /* 440SP rev C with RAID 6 support enabled */
|
||||||
#define PVR_440SPe_RA 0x53421890
|
#define PVR_440SP_RC 0x53321891 /* 440SP rev C without RAID 6 support */
|
||||||
#define PVR_440SPe_RB 0x53421891
|
#define PVR_440SPe_6_RA 0x53421890 /* 440SPe rev A with RAID 6 support enabled */
|
||||||
|
#define PVR_440SPe_RA 0x53521890 /* 440SPe rev A without RAID 6 support */
|
||||||
|
#define PVR_440SPe_6_RB 0x53421891 /* 440SPe rev B with RAID 6 support enabled */
|
||||||
|
#define PVR_440SPe_RB 0x53521891 /* 440SPe rev B without RAID 6 support */
|
||||||
#define PVR_601 0x00010000
|
#define PVR_601 0x00010000
|
||||||
#define PVR_602 0x00050000
|
#define PVR_602 0x00050000
|
||||||
#define PVR_603 0x00030000
|
#define PVR_603 0x00030000
|
||||||
|
@ -301,6 +301,20 @@
|
|||||||
*/
|
*/
|
||||||
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------------------
|
||||||
|
* External Bus Controller (EBC) Setup
|
||||||
|
*----------------------------------------------------------------------*/
|
||||||
|
#define CFG_FLASH CFG_FLASH_BASE
|
||||||
|
#define CFG_CPLD 0x80000000
|
||||||
|
|
||||||
|
/* Memory Bank 0 (NOR-FLASH) initialization */
|
||||||
|
#define CFG_EBC_PB0AP 0x03017300
|
||||||
|
#define CFG_EBC_PB0CR (CFG_FLASH | 0xda000)
|
||||||
|
|
||||||
|
/* Memory Bank 2 (CPLD) initialization */
|
||||||
|
#define CFG_EBC_PB2AP 0x04814500
|
||||||
|
#define CFG_EBC_PB2CR (CFG_CPLD | 0x18000)
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
*/
|
*/
|
||||||
|
@ -306,6 +306,20 @@
|
|||||||
*/
|
*/
|
||||||
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------------------
|
||||||
|
* External Bus Controller (EBC) Setup
|
||||||
|
*----------------------------------------------------------------------*/
|
||||||
|
#define CFG_FLASH CFG_FLASH_BASE
|
||||||
|
#define CFG_CPLD 0x80000000
|
||||||
|
|
||||||
|
/* Memory Bank 0 (NOR-FLASH) initialization */
|
||||||
|
#define CFG_EBC_PB0AP 0x03017300
|
||||||
|
#define CFG_EBC_PB0CR (CFG_FLASH | 0xda000)
|
||||||
|
|
||||||
|
/* Memory Bank 2 (CPLD) initialization */
|
||||||
|
#define CFG_EBC_PB2AP 0x04814500
|
||||||
|
#define CFG_EBC_PB2CR (CFG_CPLD | 0x18000)
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Cache Configuration
|
* Cache Configuration
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user