diff options
Diffstat (limited to 'arch/arm/mach-pxa/trizeps4.c')
| -rw-r--r-- | arch/arm/mach-pxa/trizeps4.c | 39 | 
1 files changed, 22 insertions, 17 deletions
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 565d062f51d..872dcb20e75 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c @@ -15,8 +15,8 @@  #include <linux/init.h>  #include <linux/kernel.h>  #include <linux/platform_device.h> -#include <linux/sysdev.h>  #include <linux/interrupt.h> +#include <linux/export.h>  #include <linux/sched.h>  #include <linux/bitops.h>  #include <linux/fb.h> @@ -26,6 +26,7 @@  #include <linux/dm9000.h>  #include <linux/mtd/physmap.h>  #include <linux/mtd/partitions.h> +#include <linux/i2c/pxa-i2c.h>  #include <asm/types.h>  #include <asm/setup.h> @@ -40,14 +41,13 @@  #include <asm/mach/flash.h>  #include <mach/pxa27x.h> -#include <mach/pxa2xx_spi.h>  #include <mach/trizeps4.h>  #include <mach/audio.h> -#include <mach/pxafb.h> -#include <mach/mmc.h> -#include <mach/irda.h> -#include <mach/ohci.h> -#include <plat/i2c.h> +#include <linux/platform_data/video-pxafb.h> +#include <linux/platform_data/mmc-pxamci.h> +#include <linux/platform_data/irda-pxaficp.h> +#include <linux/platform_data/usb-ohci-pxa27x.h> +#include <mach/smemc.h>  #include "generic.h"  #include "devices.h" @@ -332,8 +332,7 @@ static int trizeps4_mci_init(struct device *dev, irq_handler_t mci_detect_int,  	int err;  	err = request_irq(TRIZEPS4_MMC_IRQ, mci_detect_int, -		IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_SAMPLE_RANDOM, -		"MMC card detect", data); +			  IRQF_TRIGGER_RISING, "MMC card detect", data);  	if (err) {  		printk(KERN_ERR "trizeps4_mci_init: MMC/SD: can't request"  						"MMC card detect IRQ\n"); @@ -516,9 +515,9 @@ static void __init trizeps4_init(void)  	pxa_set_stuart_info(NULL);  	if (0)	/* dont know how to determine LCD */ -		set_pxa_fb_info(&sharp_lcd); +		pxa_set_fb_info(NULL, &sharp_lcd);  	else -		set_pxa_fb_info(&toshiba_lcd); +		pxa_set_fb_info(NULL, &toshiba_lcd);  	pxa_set_mci_info(&trizeps4_mci_platform_data);  #ifndef STATUS_LEDS_ON_STUART_PINS @@ -539,10 +538,10 @@ static void __init trizeps4_init(void)  static void __init trizeps4_map_io(void)  { -	pxa_map_io(); +	pxa27x_map_io();  	iotable_init(trizeps4_io_desc, ARRAY_SIZE(trizeps4_io_desc)); -	if ((MSC0 & 0x8) && (BOOT_DEF & 0x1)) { +	if ((__raw_readl(MSC0) & 0x8) && (__raw_readl(BOOT_DEF) & 0x1)) {  		/* if flash is 16 bit wide its a Trizeps4 WL */  		__machine_arch_type = MACH_TYPE_TRIZEPS4WL;  		trizeps4_flash_data[0].width = 2; @@ -555,18 +554,24 @@ static void __init trizeps4_map_io(void)  MACHINE_START(TRIZEPS4, "Keith und Koep Trizeps IV module")  	/* MAINTAINER("Jürgen Schindele") */ -	.boot_params	= TRIZEPS4_SDRAM_BASE + 0x100, +	.atag_offset	= 0x100,  	.init_machine	= trizeps4_init,  	.map_io		= trizeps4_map_io, +	.nr_irqs	= PXA_NR_IRQS,  	.init_irq	= pxa27x_init_irq, -	.timer		= &pxa_timer, +	.handle_irq	= pxa27x_handle_irq, +	.init_time	= pxa_timer_init, +	.restart	= pxa_restart,  MACHINE_END  MACHINE_START(TRIZEPS4WL, "Keith und Koep Trizeps IV-WL module")  	/* MAINTAINER("Jürgen Schindele") */ -	.boot_params	= TRIZEPS4_SDRAM_BASE + 0x100, +	.atag_offset	= 0x100,  	.init_machine	= trizeps4_init,  	.map_io		= trizeps4_map_io, +	.nr_irqs	= PXA_NR_IRQS,  	.init_irq	= pxa27x_init_irq, -	.timer		= &pxa_timer, +	.handle_irq	= pxa27x_handle_irq, +	.init_time	= pxa_timer_init, +	.restart	= pxa_restart,  MACHINE_END  | 
