diff options
| author | Dave Airlie <airlied@redhat.com> | 2010-08-02 04:24:46 +0400 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2010-08-02 04:24:46 +0400 | 
| commit | 7827627107aeb629f1a056cb56b17bd4fb789e03 (patch) | |
| tree | cbd83582abb9120c7ef724bf439916c8bf864e37 /arch/powerpc/sysdev/micropatch.c | |
| parent | e190bfe56841551b1ad5abb42ebd0c4798cc8c01 (diff) | |
| parent | 219de62a1627247fca10789f28902f66cb0b408f (diff) | |
| download | linux-7827627107aeb629f1a056cb56b17bd4fb789e03.tar.xz | |
Merge branch 'drm-radeon-next' of ../drm-radeon-next into drm-core-next
* 'drm-radeon-next' of ../drm-radeon-next: (333 commits)
  drm/radeon/kms: trivial code style fixes for audio
  drm/radeon: remove viewport transform from r6xx/r7xx blit emit
  drm/radeon: group r6xx/r7xx newly sequential blit state
  drm/radeon: reorder r6xx/r7xx blit state emit to make more regs sequential
  drm/radeon: r6xx/r7xx move vport clipping to a single packet
  drm/radeon: group r6xx/r7xx sequential blit state
  drm/radeon: remove duplicate state emit in r6xx/r7xx blit
  drm/radeon: add comments to r6xx/r7xx blit state
  drm/radeon/kms/r7xx: add workaround for hw issue with HDP flush
  drm/radeon/kms: remove rs4xx gart limit
  drm: radeon: fix sign bug
  drm/radeon/kms: check/restore sanity before doing anything else with GPU.
  drm/radeon: fall back to GTT if bo creation/validation in VRAM fails.
  drm/radeon/kms: add ioport register access
  drm/radeon/kms: enable HDMI audio on RS600/RS690/RS740
  drm/radeon/kms: track audio engine state, do not use not setup timer
  drm/radeon/kms/r6xx+: add query for tile config (v2)
  drm/radeon/kms: fix CS alignment checking for tiling (v2)
  drm/radeon/kms: add tiling support to the cs checker for r6xx/r7xx
  drm/radeon/kms: Add crtc tiling setup support for evergreen
  ...
Diffstat (limited to 'arch/powerpc/sysdev/micropatch.c')
| -rw-r--r-- | arch/powerpc/sysdev/micropatch.c | 30 | 
1 files changed, 18 insertions, 12 deletions
diff --git a/arch/powerpc/sysdev/micropatch.c b/arch/powerpc/sysdev/micropatch.c index d8d602840757..c0bb76ef7242 100644 --- a/arch/powerpc/sysdev/micropatch.c +++ b/arch/powerpc/sysdev/micropatch.c @@ -4,6 +4,7 @@   * also relocates SMC2, but this would require additional changes   * to uart.c, so I am holding off on that for a moment.   */ +#include <linux/init.h>  #include <linux/errno.h>  #include <linux/sched.h>  #include <linux/kernel.h> @@ -16,6 +17,7 @@  #include <asm/page.h>  #include <asm/pgtable.h>  #include <asm/8xx_immap.h> +#include <asm/cpm.h>  #include <asm/cpm1.h>  /* @@ -24,7 +26,7 @@  #ifdef CONFIG_I2C_SPI_UCODE_PATCH -uint patch_2000[] = { +static uint patch_2000[] __initdata = {  	0x7FFFEFD9,  	0x3FFD0000,  	0x7FFB49F7, @@ -143,7 +145,7 @@ uint patch_2000[] = {  	0x5F8247F8  }; -uint patch_2f00[] = { +static uint patch_2f00[] __initdata = {  	0x3E303430,  	0x34343737,  	0xABF7BF9B, @@ -182,7 +184,7 @@ uint patch_2f00[] = {  #ifdef CONFIG_I2C_SPI_SMC1_UCODE_PATCH -uint patch_2000[] = { +static uint patch_2000[] __initdata = {  	0x3fff0000,  	0x3ffd0000,  	0x3ffb0000, @@ -505,7 +507,7 @@ uint patch_2000[] = {  	0x6079e2bb  }; -uint patch_2f00[] = { +static uint patch_2f00[] __initdata = {  	0x30303030,  	0x3e3e3434,  	0xabbf9b99, @@ -572,7 +574,7 @@ uint patch_2f00[] = {  	0xf22f3f23  }; -uint patch_2e00[] = { +static uint patch_2e00[] __initdata = {  	0x27eeeeee,  	0xeeeeeeee,  	0xeeeeeeee, @@ -598,7 +600,7 @@ uint patch_2e00[] = {  #ifdef CONFIG_USB_SOF_UCODE_PATCH -uint patch_2000[] = { +static uint patch_2000[] __initdata = {  	0x7fff0000,  	0x7ffd0000,  	0x7ffb0000, @@ -613,21 +615,25 @@ uint patch_2000[] = {  	0x60750000  }; -uint patch_2f00[] = { +static uint patch_2f00[] __initdata = {  	0x3030304c,  	0xcab9e441,  	0xa1aaf220  };  #endif -void -cpm_load_patch(cpm8xx_t	*cp) +void __init cpm_load_patch(cpm8xx_t *cp)  {  	volatile uint		*dp;		/* Dual-ported RAM. */  	volatile cpm8xx_t	*commproc; +#if defined(CONFIG_I2C_SPI_UCODE_PATCH) || \ +    defined(CONFIG_I2C_SPI_SMC1_UCODE_PATCH)  	volatile iic_t		*iip; -	volatile spi_t		*spp; +	volatile struct spi_pram *spp; +#ifdef CONFIG_I2C_SPI_SMC1_UCODE_PATCH  	volatile smc_uart_t	*smp; +#endif +#endif  	int	i;  	commproc = cp; @@ -668,8 +674,8 @@ cpm_load_patch(cpm8xx_t	*cp)  	/* Put SPI above the IIC, also 32-byte aligned.  	*/  	i = (RPBASE + sizeof(iic_t) + 31) & ~31; -	spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI]; -	spp->spi_rpbase = i; +	spp = (struct spi_pram *)&commproc->cp_dparam[PROFF_SPI]; +	spp->rpbase = i;  # if defined(CONFIG_I2C_SPI_UCODE_PATCH)  	commproc->cp_cpmcr1 = 0x802a;  | 
