mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
sbc8548: Fix Revision reading and unused variable 'path'
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
495d162374
commit
347b7938d3
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue