2 * linux/arch/arm/mach-pxa/saarb.c
4 * Support for the Marvell Handheld Platform (aka SAARB)
6 * Copyright (C) 2007-2010 Marvell International Ltd.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * publishhed by the Free Software Foundation.
13 #include <linux/init.h>
14 #include <linux/kernel.h>
15 #include <linux/i2c.h>
16 #include <linux/mfd/88pm860x.h>
18 #include <asm/mach-types.h>
19 #include <asm/mach/arch.h>
21 #include <mach/irqs.h>
22 #include <mach/hardware.h>
24 #include <mach/mfp-pxa930.h>
25 #include <mach/gpio.h>
31 #define SAARB_NR_IRQS (IRQ_BOARD_START + 40)
33 static struct pm860x_touch_pdata saarb_touch
= {
42 static struct pm860x_backlight_pdata saarb_backlight
[] = {
44 .id
= PM8606_ID_BACKLIGHT
,
45 .iset
= PM8606_WLED_CURRENT(24),
46 .flags
= PM8606_BACKLIGHT1
,
51 static struct pm860x_led_pdata saarb_led
[] = {
54 .iset
= PM8606_LED_CURRENT(12),
55 .flags
= PM8606_LED1_RED
,
58 .iset
= PM8606_LED_CURRENT(12),
59 .flags
= PM8606_LED1_GREEN
,
62 .iset
= PM8606_LED_CURRENT(12),
63 .flags
= PM8606_LED1_BLUE
,
66 .iset
= PM8606_LED_CURRENT(12),
67 .flags
= PM8606_LED2_RED
,
70 .iset
= PM8606_LED_CURRENT(12),
71 .flags
= PM8606_LED2_GREEN
,
74 .iset
= PM8606_LED_CURRENT(12),
75 .flags
= PM8606_LED2_BLUE
,
79 static struct pm860x_platform_data saarb_pm8607_info
= {
80 .touch
= &saarb_touch
,
81 .backlight
= &saarb_backlight
[0],
83 .companion_addr
= 0x10,
85 .irq_base
= IRQ_BOARD_START
,
87 .i2c_port
= GI2C_PORT
,
90 static struct i2c_board_info saarb_i2c_info
[] = {
94 .platform_data
= &saarb_pm8607_info
,
95 .irq
= gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO83
)),
99 static void __init
saarb_init(void)
101 pxa_set_ffuart_info(NULL
);
102 pxa_set_i2c_info(NULL
);
103 i2c_register_board_info(0, ARRAY_AND_SIZE(saarb_i2c_info
));
106 MACHINE_START(SAARB
, "PXA955 Handheld Platform (aka SAARB)")
107 .boot_params
= 0xa0000100,
108 .map_io
= pxa_map_io
,
109 .nr_irqs
= SAARB_NR_IRQS
,
110 .init_irq
= pxa95x_init_irq
,
112 .init_machine
= saarb_init
,