2 +++ b/arch/mips/lantiq/falcon/mach-95C3AM1.c
4 +#include <linux/init.h>
5 +#include <linux/platform_device.h>
6 +#include <linux/i2c-gpio.h>
7 +#include "../machtypes.h"
10 +#include "dev-leds-gpio.h"
12 +#define BOARD_95C3AM1_GPIO_LED_0 10
13 +#define BOARD_95C3AM1_GPIO_LED_1 11
14 +#define BOARD_95C3AM1_GPIO_LED_2 12
15 +#define BOARD_95C3AM1_GPIO_LED_3 13
17 +#ifdef CONFIG_MTD_PARTITIONS
18 +static struct mtd_partition board_95C3AM1_partitions[] =
26 + .name = "uboot_env",
28 + .size = 0x40000, /* 2 sectors for redundant env. */
33 + .size = 0xF80000, /* map only 16 MiB */
37 +static struct flash_platform_data board_95C3AM1_flash_platform_data = {
39 + .parts = board_95C3AM1_partitions,
40 + .nr_parts = ARRAY_SIZE(board_95C3AM1_partitions)
44 +static struct spi_board_info board_95C3AM1_flash_data __initdata = {
45 + .modalias = "m25p80",
48 + .max_speed_hz = 10 * 1000 * 1000,
50 +#ifdef CONFIG_MTD_PARTITIONS
51 + .platform_data = &board_95C3AM1_flash_platform_data
55 +static struct gpio_led board_95C3AM1_leds_gpio[] __initdata = {
58 + .gpio = BOARD_95C3AM1_GPIO_LED_0,
62 + .gpio = BOARD_95C3AM1_GPIO_LED_1,
66 + .gpio = BOARD_95C3AM1_GPIO_LED_2,
70 + .gpio = BOARD_95C3AM1_GPIO_LED_3,
75 +static struct i2c_gpio_platform_data board_95C3AM1_i2c_gpio_data = {
80 +static struct platform_device board_95C3AM1_i2c_gpio_device = {
84 + .platform_data = &board_95C3AM1_i2c_gpio_data,
88 +static void __init board_95C3AM1_init(void)
90 + falcon_register_asc(0);
91 + falcon_register_gpio();
92 + falcon_register_wdt();
93 + falcon_register_i2c();
94 + falcon_register_spi_flash(&board_95C3AM1_flash_data);
95 + platform_device_register(&board_95C3AM1_i2c_gpio_device);
96 + ltq_add_device_leds_gpio(-1, ARRAY_SIZE(board_95C3AM1_leds_gpio),
97 + board_95C3AM1_leds_gpio);
98 + falcon_register_crypto();
101 +MIPS_MACHINE(LANTIQ_MACH_95C3AM1,
104 + board_95C3AM1_init);
105 --- a/arch/mips/lantiq/falcon/Kconfig
106 +++ b/arch/mips/lantiq/falcon/Kconfig
107 @@ -10,6 +10,10 @@ config LANTIQ_MACH_EASY98020
111 +config LANTIQ_MACH_95C3AM1
118 --- a/arch/mips/lantiq/falcon/Makefile
119 +++ b/arch/mips/lantiq/falcon/Makefile
120 @@ -4,3 +4,4 @@ obj-$(CONFIG_LANTIQ_MACH_EASY98000) += a
121 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += mach-easy98000.o
122 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += dev-leds-easy98000-cpld.o
123 obj-$(CONFIG_LANTIQ_MACH_EASY98020) += mach-easy98020.o
124 +obj-$(CONFIG_LANTIQ_MACH_95C3AM1) += mach-95C3AM1.o
125 --- a/arch/mips/lantiq/machtypes.h
126 +++ b/arch/mips/lantiq/machtypes.h
127 @@ -21,6 +21,7 @@ enum lantiq_mach_type {
128 LANTIQ_MACH_EASY98000SF, /* Falcon Eval Board, Serial Flash */
129 LANTIQ_MACH_EASY98000NAND, /* Falcon Eval Board, NAND Flash */
130 LANTIQ_MACH_EASY98020, /* Falcon Reference Board */
131 + LANTIQ_MACH_95C3AM1, /* Board 95C3AM1 */