2 * linux/arch/arm/mach-mmp/teton_bga.c
4 * Support for the Marvell PXA168 Teton BGA Development Platform.
6 * Author: Mark F. Brown <mark.brown314@gmail.com>
8 * This code is based on aspenite.c
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * publishhed by the Free Software Foundation.
15 #include <linux/init.h>
16 #include <linux/kernel.h>
17 #include <linux/platform_device.h>
18 #include <linux/gpio.h>
19 #include <linux/input.h>
20 #include <plat/pxa27x_keypad.h>
21 #include <linux/i2c.h>
23 #include <asm/mach-types.h>
24 #include <asm/mach/arch.h>
25 #include <mach/addr-map.h>
26 #include <mach/mfp-pxa168.h>
27 #include <mach/pxa168.h>
28 #include <mach/teton_bga.h>
32 static unsigned long teton_bga_pin_config
[] __initdata
= {
51 static unsigned int teton_bga_matrix_key_map
[] = {
58 static struct pxa27x_keypad_platform_data teton_bga_keypad_info __initdata
= {
61 .matrix_key_map
= teton_bga_matrix_key_map
,
62 .matrix_key_map_size
= ARRAY_SIZE(teton_bga_matrix_key_map
),
63 .debounce_interval
= 30,
66 static struct i2c_board_info teton_bga_i2c_info
[] __initdata
= {
68 I2C_BOARD_INFO("ds1337", 0x68),
69 .irq
= MMP_GPIO_TO_IRQ(RTC_INT_GPIO
)
73 static void __init
teton_bga_init(void)
75 mfp_config(ARRAY_AND_SIZE(teton_bga_pin_config
));
79 pxa168_add_keypad(&teton_bga_keypad_info
);
80 pxa168_add_twsi(0, NULL
, ARRAY_AND_SIZE(teton_bga_i2c_info
));
81 platform_device_register(&pxa168_device_gpio
);
84 MACHINE_START(TETON_BGA
, "PXA168-based Teton BGA Development Platform")
86 .nr_irqs
= IRQ_BOARD_START
,
87 .init_irq
= pxa168_init_irq
,
88 .timer
= &pxa168_timer
,
89 .init_machine
= teton_bga_init
,
90 .restart
= pxa168_restart
,