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 +static struct mtd_partition board_95C3AM1_partitions[] =
27 + .name = "uboot_env",
29 + .size = 0x40000, /* 2 sectors for redundant env. */
34 + .size = 0xF80000, /* map only 16 MiB */
38 +static struct flash_platform_data board_95C3AM1_flash_platform_data = {
40 + .parts = board_95C3AM1_partitions,
41 + .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 + .platform_data = &board_95C3AM1_flash_platform_data
53 +static struct gpio_led board_95C3AM1_leds_gpio[] __initdata = {
56 + .gpio = BOARD_95C3AM1_GPIO_LED_0,
60 + .gpio = BOARD_95C3AM1_GPIO_LED_1,
64 + .gpio = BOARD_95C3AM1_GPIO_LED_2,
68 + .gpio = BOARD_95C3AM1_GPIO_LED_3,
73 +static struct i2c_gpio_platform_data board_95C3AM1_i2c_gpio_data = {
78 +static struct platform_device board_95C3AM1_i2c_gpio_device = {
82 + .platform_data = &board_95C3AM1_i2c_gpio_data,
86 +static void __init board_95C3AM1_init(void)
88 + falcon_register_asc(0);
89 + falcon_register_gpio();
90 + falcon_register_wdt();
91 + falcon_register_i2c();
92 + falcon_register_spi_flash(&board_95C3AM1_flash_data);
93 + platform_device_register(&board_95C3AM1_i2c_gpio_device);
94 + ltq_add_device_leds_gpio(-1, ARRAY_SIZE(board_95C3AM1_leds_gpio),
95 + board_95C3AM1_leds_gpio);
96 + falcon_register_crypto();
99 +MIPS_MACHINE(LANTIQ_MACH_95C3AM1,
102 + board_95C3AM1_init);
103 --- a/arch/mips/lantiq/falcon/Kconfig
104 +++ b/arch/mips/lantiq/falcon/Kconfig
109 +config LANTIQ_MACH_95C3AM1
116 --- a/arch/mips/lantiq/falcon/Makefile
117 +++ b/arch/mips/lantiq/falcon/Makefile
119 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += mach-easy98000.o
120 obj-$(CONFIG_LANTIQ_MACH_EASY98000) += dev-leds-easy98000-cpld.o
121 obj-$(CONFIG_LANTIQ_MACH_EASY98020) += mach-easy98020.o
122 +obj-$(CONFIG_LANTIQ_MACH_95C3AM1) += mach-95C3AM1.o
123 --- a/arch/mips/lantiq/machtypes.h
124 +++ b/arch/mips/lantiq/machtypes.h
126 LANTIQ_MACH_EASY98000SF, /* Falcon Eval Board, Serial Flash */
127 LANTIQ_MACH_EASY98000NAND, /* Falcon Eval Board, NAND Flash */
128 LANTIQ_MACH_EASY98020, /* Falcon Reference Board */
129 + LANTIQ_MACH_95C3AM1, /* Board 95C3AM1 */