Merge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx
This commit is contained in:
commit
093e14c522
@ -56,9 +56,10 @@ int checkboard (void)
|
|||||||
{
|
{
|
||||||
volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
|
volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
|
||||||
volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
|
volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
|
||||||
|
volatile u_char *rev= (void *)CFG_BD_REV;
|
||||||
|
|
||||||
printf ("Board: Wind River SBC8548 Rev. 0x%01x\n",
|
printf ("Board: Wind River SBC8548 Rev. 0x%01x\n",
|
||||||
(volatile)(*(u_char *)CFG_BD_REV) >> 4);
|
(*rev) >> 4);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize local bus.
|
* Initialize local bus.
|
||||||
@ -533,12 +534,12 @@ void
|
|||||||
ft_pci_setup(void *blob, bd_t *bd)
|
ft_pci_setup(void *blob, bd_t *bd)
|
||||||
{
|
{
|
||||||
int node, tmp[2];
|
int node, tmp[2];
|
||||||
const char *path;
|
|
||||||
|
|
||||||
node = fdt_path_offset(blob, "/aliases");
|
node = fdt_path_offset(blob, "/aliases");
|
||||||
tmp[0] = 0;
|
tmp[0] = 0;
|
||||||
if (node >= 0) {
|
if (node >= 0) {
|
||||||
#ifdef CONFIG_PCI1
|
#ifdef CONFIG_PCI1
|
||||||
|
const char *path;
|
||||||
path = fdt_getprop(blob, node, "pci0", NULL);
|
path = fdt_getprop(blob, node, "pci0", NULL);
|
||||||
if (path) {
|
if (path) {
|
||||||
tmp[1] = pci1_hose.last_busno - pci1_hose.first_busno;
|
tmp[1] = pci1_hose.last_busno - pci1_hose.first_busno;
|
||||||
@ -546,6 +547,7 @@ ft_pci_setup(void *blob, bd_t *bd)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PCIE1
|
#ifdef CONFIG_PCIE1
|
||||||
|
const char *path;
|
||||||
path = fdt_getprop(blob, node, "pci1", NULL);
|
path = fdt_getprop(blob, node, "pci1", NULL);
|
||||||
if (path) {
|
if (path) {
|
||||||
tmp[1] = pcie1_hose.last_busno - pcie1_hose.first_busno;
|
tmp[1] = pcie1_hose.last_busno - pcie1_hose.first_busno;
|
||||||
|
@ -91,7 +91,7 @@ int interrupt_init (void)
|
|||||||
set_msr (get_msr () | MSR_EE);
|
set_msr (get_msr () | MSR_EE);
|
||||||
|
|
||||||
#ifdef CONFIG_INTERRUPTS
|
#ifdef CONFIG_INTERRUPTS
|
||||||
pic->iivpr1 = 0x810002; /* 50220 enable ecm interrupts */
|
pic->iivpr1 = 0x810001; /* 50220 enable ecm interrupts */
|
||||||
debug("iivpr1@%x = %x\n",&pic->iivpr1, pic->iivpr1);
|
debug("iivpr1@%x = %x\n",&pic->iivpr1, pic->iivpr1);
|
||||||
|
|
||||||
pic->iivpr2 = 0x810002; /* 50240 enable ddr interrupts */
|
pic->iivpr2 = 0x810002; /* 50240 enable ddr interrupts */
|
||||||
|
@ -992,7 +992,6 @@ trap_reloc:
|
|||||||
|
|
||||||
blr
|
blr
|
||||||
|
|
||||||
#ifdef CFG_INIT_RAM_LOCK
|
|
||||||
.globl unlock_ram_in_cache
|
.globl unlock_ram_in_cache
|
||||||
unlock_ram_in_cache:
|
unlock_ram_in_cache:
|
||||||
/* invalidate the INIT_RAM section */
|
/* invalidate the INIT_RAM section */
|
||||||
@ -1002,11 +1001,20 @@ unlock_ram_in_cache:
|
|||||||
andi. r4,r4,0x1ff
|
andi. r4,r4,0x1ff
|
||||||
slwi r4,r4,(10 - 1 - L1_CACHE_SHIFT)
|
slwi r4,r4,(10 - 1 - L1_CACHE_SHIFT)
|
||||||
mtctr r4
|
mtctr r4
|
||||||
1: icbi r0,r3
|
1: dcbi r0,r3
|
||||||
dcbi r0,r3
|
|
||||||
addi r3,r3,CFG_CACHELINE_SIZE
|
addi r3,r3,CFG_CACHELINE_SIZE
|
||||||
bdnz 1b
|
bdnz 1b
|
||||||
sync /* Wait for all icbi to complete on bus */
|
sync
|
||||||
|
|
||||||
|
/* Invalidate the TLB entries for the cache */
|
||||||
|
lis r3,CFG_INIT_RAM_ADDR@h
|
||||||
|
ori r3,r3,CFG_INIT_RAM_ADDR@l
|
||||||
|
tlbivax 0,r3
|
||||||
|
addi r3,r3,0x1000
|
||||||
|
tlbivax 0,r3
|
||||||
|
addi r3,r3,0x1000
|
||||||
|
tlbivax 0,r3
|
||||||
|
addi r3,r3,0x1000
|
||||||
|
tlbivax 0,r3
|
||||||
isync
|
isync
|
||||||
blr
|
blr
|
||||||
#endif
|
|
||||||
|
@ -168,7 +168,7 @@
|
|||||||
#define CFG_OR0_PRELIM 0xff806e65
|
#define CFG_OR0_PRELIM 0xff806e65
|
||||||
#define CFG_OR6_PRELIM 0xfc006e65
|
#define CFG_OR6_PRELIM 0xfc006e65
|
||||||
|
|
||||||
#define CFG_FLASH_BANKS_LIST {0xff800000, CFG_FLASH_BASE}
|
#define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE}
|
||||||
#define CFG_MAX_FLASH_BANKS 1 /* number of banks */
|
#define CFG_MAX_FLASH_BANKS 1 /* number of banks */
|
||||||
#define CFG_MAX_FLASH_SECT 128 /* sectors per device */
|
#define CFG_MAX_FLASH_SECT 128 /* sectors per device */
|
||||||
#undef CFG_FLASH_CHECKSUM
|
#undef CFG_FLASH_CHECKSUM
|
||||||
|
Loading…
Reference in New Issue
Block a user