]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mpl/pati/pati.c
powerpc, 8260: remove support for mpc8260
[people/ms/u-boot.git] / board / mpl / pati / pati.c
index 5d701a7931d063f77826645c989f7b8d869c97eb..1288f743cc6bfa0b0b78c020cb94b99166e868c4 100644 (file)
@@ -29,6 +29,7 @@
  **********************************************************************************/
 
 #include <common.h>
+#include <console.h>
 #include <mpc5xx.h>
 #include <stdio_dev.h>
 #include <pci_ids.h>
@@ -54,6 +55,8 @@
                asm (GEN_SYMNAME(name) " = " GEN_VALUE(value))
 
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /************************************************************************
  * Early debug routines
  */
@@ -132,7 +135,7 @@ extern int mem_test (unsigned long start, unsigned long ramsize, int quiet);
 /*
  * Get RAM size.
  */
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
        unsigned char board_rev;
        unsigned long reg;
@@ -208,8 +211,10 @@ phys_size_t initdram(int board_type)
        /* we have a x32 bit bus to the SDRAM, so shift the addr with 2 */
        lmr<<=2;
        in32(CONFIG_SYS_SDRAM_BASE + lmr);
-       /* ok, we're done, return SDRAM size */
-       return ((0x400000 << sdram_table[i].sz));               /* log2 value of 4MByte  */
+       /* ok, we're done, set SDRAM size to log2 value of 4MByte*/
+       gd->ram_size = 0x400000 << sdram_table[i].sz;
+
+       return 0;
 }
 
 
@@ -311,6 +316,11 @@ void user_led1(int led_on)
        sysconf->sc_sgpiodt2=reg; /* Data register */
 }
 
+int board_early_init_f(void)
+{
+       spi_init_f();
+       return 0;
+}
 
 /****************************************************************
  * Last Stage Init
@@ -561,7 +571,7 @@ void pci_con_connect(void)
        irq_install_handler (0x2, (interrupt_handler_t *) pci_dorbell_irq,NULL);
        memset (&pci_con_dev, 0, sizeof (pci_con_dev));
        strcpy (pci_con_dev.name, "pci_con");
-       pci_con_dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM;
+       pci_con_dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT;
        pci_con_dev.putc = pci_con_putc;
        pci_con_dev.puts = pci_con_puts;
        pci_con_dev.getc = pci_con_getc;