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 +extern unsigned char ltq_ethaddr[6];
19 +#ifdef CONFIG_MTD_PARTITIONS
20 +static struct mtd_partition board_95C3AM1_partitions[] =
28 + .name = "uboot_env",
30 + .size = 0x40000, /* 2 sectors for redundant env. */
35 + .size = 0xF80000, /* map only 16 MiB */
39 +static struct flash_platform_data board_95C3AM1_flash_platform_data = {
41 + .parts = board_95C3AM1_partitions,
42 + .nr_parts = ARRAY_SIZE(board_95C3AM1_partitions)
46 +static struct spi_board_info board_95C3AM1_flash_data __initdata = {
47 + .modalias = "m25p80",
50 + .max_speed_hz = 10 * 1000 * 1000,
52 +#ifdef CONFIG_MTD_PARTITIONS
53 + .platform_data = &board_95C3AM1_flash_platform_data
57 +static struct gpio_led board_95C3AM1_leds_gpio[] __initdata = {
60 + .gpio = BOARD_95C3AM1_GPIO_LED_0,
64 + .gpio = BOARD_95C3AM1_GPIO_LED_1,
68 + .gpio = BOARD_95C3AM1_GPIO_LED_2,
72 + .gpio = BOARD_95C3AM1_GPIO_LED_3,
77 +static struct i2c_gpio_platform_data board_95C3AM1_i2c_gpio_data = {
82 +static struct platform_device board_95C3AM1_i2c_gpio_device = {
86 + .platform_data = &board_95C3AM1_i2c_gpio_data,
90 +static void __init board_95C3AM1_init(void)
92 + falcon_register_asc(0);
93 + falcon_register_gpio();
94 + falcon_register_wdt();
95 + falcon_register_i2c();
96 + falcon_register_spi_flash(&board_95C3AM1_flash_data);
97 + platform_device_register(&board_95C3AM1_i2c_gpio_device);
98 + ltq_add_device_leds_gpio(-1, ARRAY_SIZE(board_95C3AM1_leds_gpio),
99 + board_95C3AM1_leds_gpio);
100 + falcon_register_crypto();
103 +MIPS_MACHINE(LANTIQ_MACH_95C3AM1,
106 + board_95C3AM1_init);
107 --- a/arch/mips/lantiq/falcon/Kconfig
108 +++ b/arch/mips/lantiq/falcon/Kconfig
109 @@ -10,6 +10,10 @@ config LANTIQ_MACH_EASY98020
113 +config LANTIQ_MACH_95C3AM1
120 --- a/arch/mips/lantiq/falcon/Makefile
121 +++ b/arch/mips/lantiq/falcon/Makefile
122 @@ -4,3 +4,4 @@ obj-$(CONFIG_LANTIQ_MACH_EASY98000) += a
123 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += mach-easy98000.o
124 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += dev-leds-easy98000-cpld.o
125 obj-$(CONFIG_LANTIQ_MACH_EASY98020) += mach-easy98020.o
126 +obj-$(CONFIG_LANTIQ_MACH_95C3AM1) += mach-95C3AM1.o
127 --- a/arch/mips/lantiq/machtypes.h
128 +++ b/arch/mips/lantiq/machtypes.h
129 @@ -21,6 +21,7 @@ enum lantiq_mach_type {
130 LANTIQ_MACH_EASY98000SF, /* Falcon Eval Board, Serial Flash */
131 LANTIQ_MACH_EASY98000NAND, /* Falcon Eval Board, NAND Flash */
132 LANTIQ_MACH_EASY98020, /* Falcon Reference Board */
133 + LANTIQ_MACH_95C3AM1, /* Board 95C3AM1 */