Merge branch 'master' of /home/wd/git/u-boot/master/
[oweals/u-boot.git] / board / amcc / taihu / taihu.c
index ee9d3b5446f4c1f9b653c646382993b6f90f6a7f..eedde597b81cc1e7024b7f67314a7d39afa0ce66 100644 (file)
@@ -50,6 +50,12 @@ int board_early_init_f(void)
        mtebc(pb3ap, CFG_EBC_PB3AP);    /* memory bank 3 (CPLD_LCM) initialization */
        mtebc(pb3cr, CFG_EBC_PB3CR);
 
+       /*
+        * Configure CPC0_PCI to enable PerWE as output
+        * and enable the internal PCI arbiter
+        */
+       mtdcr(cpc0_pci, CPC0_PCI_SPE | CPC0_PCI_HOST_CFG_EN | CPC0_PCI_ARBIT_EN);
+
        return 0;
 }
 
@@ -156,7 +162,7 @@ void spi_sda(int bit)
 
 unsigned char spi_read(void)
 {
-       return (unsigned char)gpio_read_out_bit(SPI_DIN_GPIO15);
+       return (unsigned char)gpio_read_in_bit(SPI_DIN_GPIO15);
 }
 
 void taihu_spi_chipsel(int cs)