diff options
Diffstat (limited to 'arch/powerpc/sysdev/micropatch.c')
-rw-r--r-- | arch/powerpc/sysdev/micropatch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/micropatch.c b/arch/powerpc/sysdev/micropatch.c index d8d602840757..18080f376e1a 100644 --- a/arch/powerpc/sysdev/micropatch.c +++ b/arch/powerpc/sysdev/micropatch.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <asm/page.h> | 16 | #include <asm/page.h> |
17 | #include <asm/pgtable.h> | 17 | #include <asm/pgtable.h> |
18 | #include <asm/8xx_immap.h> | 18 | #include <asm/8xx_immap.h> |
19 | #include <asm/cpm.h> | ||
19 | #include <asm/cpm1.h> | 20 | #include <asm/cpm1.h> |
20 | 21 | ||
21 | /* | 22 | /* |
@@ -626,7 +627,7 @@ cpm_load_patch(cpm8xx_t *cp) | |||
626 | volatile uint *dp; /* Dual-ported RAM. */ | 627 | volatile uint *dp; /* Dual-ported RAM. */ |
627 | volatile cpm8xx_t *commproc; | 628 | volatile cpm8xx_t *commproc; |
628 | volatile iic_t *iip; | 629 | volatile iic_t *iip; |
629 | volatile spi_t *spp; | 630 | volatile struct spi_pram *spp; |
630 | volatile smc_uart_t *smp; | 631 | volatile smc_uart_t *smp; |
631 | int i; | 632 | int i; |
632 | 633 | ||
@@ -668,8 +669,8 @@ cpm_load_patch(cpm8xx_t *cp) | |||
668 | /* Put SPI above the IIC, also 32-byte aligned. | 669 | /* Put SPI above the IIC, also 32-byte aligned. |
669 | */ | 670 | */ |
670 | i = (RPBASE + sizeof(iic_t) + 31) & ~31; | 671 | i = (RPBASE + sizeof(iic_t) + 31) & ~31; |
671 | spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI]; | 672 | spp = (struct spi_pram *)&commproc->cp_dparam[PROFF_SPI]; |
672 | spp->spi_rpbase = i; | 673 | spp->rpbase = i; |
673 | 674 | ||
674 | # if defined(CONFIG_I2C_SPI_UCODE_PATCH) | 675 | # if defined(CONFIG_I2C_SPI_UCODE_PATCH) |
675 | commproc->cp_cpmcr1 = 0x802a; | 676 | commproc->cp_cpmcr1 = 0x802a; |