8xx: Update OF support on 8xx
[platform/kernel/u-boot.git] / include / asm-ppc / immap_83xx.h
index 34ea295..5b21539 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <asm/types.h>
 #include <asm/fsl_i2c.h>
+#include <asm/mpc8xxx_spi.h>
 
 /*
  * Local Access Window
@@ -384,20 +385,6 @@ typedef struct lbus83xx {
 } lbus83xx_t;
 
 /*
- * Serial Peripheral Interface
- */
-typedef struct spi83xx {
-       u32 mode;               /* mode register */
-       u32 event;              /* event register */
-       u32 mask;               /* mask register */
-       u32 com;                /* command register */
-       u8 res0[0x10];
-       u32 tx;                 /* transmit register */
-       u32 rx;                 /* receive register */
-       u8 res1[0xFD8];
-} spi83xx_t;
-
-/*
  * DMA/Messaging Unit
  */
 typedef struct dma83xx {
@@ -627,7 +614,7 @@ typedef struct immap {
        u8                      res3[0x900];
        lbus83xx_t              lbus;           /* Local Bus Controller Registers */
        u8                      res4[0x1000];
-       spi83xx_t               spi;            /* Serial Peripheral Interface */
+       spi8xxx_t               spi;            /* Serial Peripheral Interface */
        dma83xx_t               dma;            /* DMA */
        pciconf83xx_t           pci_conf[2];    /* PCI Software Configuration Registers */
        ios83xx_t               ios;            /* Sequencer */
@@ -661,7 +648,7 @@ typedef struct immap {
        u8                      res2[0x900];
        lbus83xx_t              lbus;           /* Local Bus Controller Registers */
        u8                      res3[0x1000];
-       spi83xx_t               spi;            /* Serial Peripheral Interface */
+       spi8xxx_t               spi;            /* Serial Peripheral Interface */
        dma83xx_t               dma;            /* DMA */
        pciconf83xx_t           pci_conf[1];    /* PCI Software Configuration Registers */
        u8                      res4[0x80];
@@ -696,7 +683,7 @@ typedef struct immap {
        u8                      res2[0x900];
        lbus83xx_t              lbus;           /* Local Bus Controller Registers */
        u8                      res3[0x1000];
-       spi83xx_t               spi;            /* Serial Peripheral Interface */
+       spi8xxx_t               spi;            /* Serial Peripheral Interface */
        dma83xx_t               dma;            /* DMA */
        pciconf83xx_t           pci_conf[1];    /* PCI Software Configuration Registers */
        u8                      res4[0x80];
@@ -741,7 +728,7 @@ typedef struct immap {
        u8                      res2[0x900];
        lbus83xx_t              lbus;           /* Local Bus Controller Registers */
        u8                      res3[0x1000];
-       spi83xx_t               spi;            /* Serial Peripheral Interface */
+       spi8xxx_t               spi;            /* Serial Peripheral Interface */
        dma83xx_t               dma;            /* DMA */
        pciconf83xx_t           pci_conf[1];    /* PCI Software Configuration Registers */
        u8                      res4[0x80];