diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
| -rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 25 | 
1 files changed, 13 insertions, 12 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 7ea2b31e319..0dce90ee6cf 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -583,8 +583,8 @@ out:  #define USBHS0_POLL_INTERVAL (HZ * 5)  struct usbhs_private { -	unsigned int usbphyaddr; -	unsigned int usbcrcaddr; +	void __iomem *usbphyaddr; +	void __iomem *usbcrcaddr;  	struct renesas_usbhs_platform_info info;  	struct delayed_work work;  	struct platform_device *pdev; @@ -642,7 +642,7 @@ static void usbhs0_hardware_exit(struct platform_device *pdev)  }  static struct usbhs_private usbhs0_private = { -	.usbcrcaddr	= 0xe605810c,		/* USBCR2 */ +	.usbcrcaddr	= IOMEM(0xe605810c),		/* USBCR2 */  	.info = {  		.platform_callback = {  			.hardware_init	= usbhs0_hardware_init, @@ -695,6 +695,7 @@ static struct platform_device usbhs0_device = {   *  - J30 "open"   *  - modify usbhs1_get_id() USBHS_HOST -> USBHS_GADGET   *  - add .get_vbus = usbhs_get_vbus in usbhs1_private + *  - check usbhs0_device(pio)/usbhs1_device(irq) order in mackerel_devices.   */  #define IRQ8 evt2irq(0x0300)  #define USB_PHY_MODE		(1 << 4) @@ -775,8 +776,8 @@ static u32 usbhs1_pipe_cfg[] = {  };  static struct usbhs_private usbhs1_private = { -	.usbphyaddr	= 0xe60581e2,		/* USBPHY1INTAP */ -	.usbcrcaddr	= 0xe6058130,		/* USBCR4 */ +	.usbphyaddr	= IOMEM(0xe60581e2),	/* USBPHY1INTAP */ +	.usbcrcaddr	= IOMEM(0xe6058130),	/* USBCR4 */  	.info = {  		.platform_callback = {  			.hardware_init	= usbhs1_hardware_init, @@ -1325,8 +1326,8 @@ static struct platform_device *mackerel_devices[] __initdata = {  	&nor_flash_device,  	&smc911x_device,  	&lcdc_device, -	&usbhs1_device,  	&usbhs0_device, +	&usbhs1_device,  	&leds_device,  	&fsi_device,  	&fsi_ak4643_device, @@ -1401,12 +1402,12 @@ static struct i2c_board_info i2c1_devices[] = {  	},  }; -#define GPIO_PORT9CR	0xE6051009 -#define GPIO_PORT10CR	0xE605100A -#define GPIO_PORT167CR	0xE60520A7 -#define GPIO_PORT168CR	0xE60520A8 -#define SRCR4		0xe61580bc -#define USCCR1		0xE6058144 +#define GPIO_PORT9CR	IOMEM(0xE6051009) +#define GPIO_PORT10CR	IOMEM(0xE605100A) +#define GPIO_PORT167CR	IOMEM(0xE60520A7) +#define GPIO_PORT168CR	IOMEM(0xE60520A8) +#define SRCR4		IOMEM(0xe61580bc) +#define USCCR1		IOMEM(0xE6058144)  static void __init mackerel_init(void)  {  	u32 srcr4;  |