Skip to content

Commit f906fb1

Browse files
committed
Merge branch 'next/board' of git://git.linaro.org/people/arnd/arm-soc
* 'next/board' of git://git.linaro.org/people/arnd/arm-soc: (34 commits) ep93xx: add support Vision EP9307 SoM ARM: mxs: Add initial support for DENX MX28 ARM: EXYNOS4: Add support SMDK4412 Board ARM: EXYNOS4: Add MCT support for EXYNOS4412 ARM: EXYNOS4: Add functions for gic interrupt handling ARM: EXYNOS4: Add support clock for EXYNOS4412 ARM: EXYNOS4: Add support new EXYNOS4412 SoC ARM: EXYNOS4: Add support MCT PPI for EXYNOS4212 ARM: EXYNOS4: Add support PPI in external GIC ARM: EXYNOS4: convert boot_params to atag_offset ixp4xx: support omicron ixp425 based boards ARM: EXYNOS4: Add support SMDK4212 Board ARM: EXYNOS4: Add support PM for EXYNOS4212 ARM: EXYNOS4: Add support clock for EXYNOS4212 ARM: EXYNOS4: Add support new EXYNOS4212 SoC at91: USB-A9G20 C01 & C11 board support at91: merge board USB-A9260 and USB-A9263 together at91: add support for RSIs EWS board ARM: SAMSUNG: Fix mask value for S5P64X0 CPU IDs ARM: SAMSUNG: Fix mask for S3C64xx CPU IDs ...
2 parents 510597e + a7fadac commit f906fb1

59 files changed

Lines changed: 3147 additions & 586 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/configs/exynos4_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_MACH_SMDKV310=y
1111
CONFIG_MACH_ARMLEX4210=y
1212
CONFIG_MACH_UNIVERSAL_C210=y
1313
CONFIG_MACH_NURI=y
14+
CONFIG_MACH_ORIGEN=y
1415
CONFIG_NO_HZ=y
1516
CONFIG_HIGH_RES_TIMERS=y
1617
CONFIG_SMP=y

‎arch/arm/configs/mxs_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ CONFIG_MACH_MX23EVK=y
2626
CONFIG_MACH_MX28EVK=y
2727
CONFIG_MACH_STMP378X_DEVB=y
2828
CONFIG_MACH_TX28=y
29+
CONFIG_MACH_M28EVK=y
2930
# CONFIG_ARM_THUMB is not set
3031
CONFIG_NO_HZ=y
3132
CONFIG_HIGH_RES_TIMERS=y

‎arch/arm/mach-at91/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ config MACH_ECO920
182182
help
183183
Select this if you are using the eco920 board
184184

185+
config MACH_RSI_EWS
186+
bool "RSI Embedded Webserver"
187+
depends on ARCH_AT91RM9200
188+
help
189+
Select this if you are using RSIs EWS board.
185190
endif
186191

187192
# ----------------------------------------------------------
@@ -381,6 +386,14 @@ config MACH_GSIA18S
381386
This enables support for the GS_IA18_S board
382387
produced by GeoSIG Ltd company. This is an internet accelerograph.
383388
<http://www.geosig.com>
389+
390+
config MACH_USB_A9G20
391+
bool "CALAO USB-A9G20"
392+
depends on ARCH_AT91SAM9G20
393+
help
394+
Select this if you are using a Calao Systems USB-A9G20.
395+
<http://www.calao-systems.com>
396+
384397
endif
385398

386399
if (ARCH_AT91SAM9260 || ARCH_AT91SAM9G20)

‎arch/arm/mach-at91/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ obj-$(CONFIG_MACH_ECBAT91) += board-ecbat91.o
3636
obj-$(CONFIG_MACH_YL9200) += board-yl-9200.o
3737
obj-$(CONFIG_MACH_CPUAT91) += board-cpuat91.o
3838
obj-$(CONFIG_MACH_ECO920) += board-eco920.o
39+
obj-$(CONFIG_MACH_RSI_EWS) += board-rsi-ews.o
3940

4041
# AT91SAM9260 board-specific support
4142
obj-$(CONFIG_MACH_AT91SAM9260EK) += board-sam9260ek.o
4243
obj-$(CONFIG_MACH_CAM60) += board-cam60.o
4344
obj-$(CONFIG_MACH_SAM9_L9260) += board-sam9-l9260.o
44-
obj-$(CONFIG_MACH_USB_A9260) += board-usb-a9260.o
45+
obj-$(CONFIG_MACH_USB_A9260) += board-usb-a926x.o
4546
obj-$(CONFIG_MACH_QIL_A9260) += board-qil-a9260.o
4647
obj-$(CONFIG_MACH_AFEB9260) += board-afeb-9260v1.o
4748
obj-$(CONFIG_MACH_CPU9260) += board-cpu9krea.o
@@ -53,7 +54,7 @@ obj-$(CONFIG_MACH_AT91SAM9G10EK) += board-sam9261ek.o
5354

5455
# AT91SAM9263 board-specific support
5556
obj-$(CONFIG_MACH_AT91SAM9263EK) += board-sam9263ek.o
56-
obj-$(CONFIG_MACH_USB_A9263) += board-usb-a9263.o
57+
obj-$(CONFIG_MACH_USB_A9263) += board-usb-a926x.o
5758
obj-$(CONFIG_MACH_NEOCORE926) += board-neocore926.o
5859

5960
# AT91SAM9RL board-specific support
@@ -67,6 +68,7 @@ obj-$(CONFIG_MACH_STAMP9G20) += board-stamp9g20.o
6768
obj-$(CONFIG_MACH_PORTUXG20) += board-stamp9g20.o
6869
obj-$(CONFIG_MACH_PCONTROL_G20) += board-pcontrol-g20.o board-stamp9g20.o
6970
obj-$(CONFIG_MACH_GSIA18S) += board-gsia18s.o board-stamp9g20.o
71+
obj-$(CONFIG_MACH_USB_A9G20) += board-usb-a926x.o
7072

7173
# AT91SAM9260/AT91SAM9G20 board-specific support
7274
obj-$(CONFIG_MACH_SNAPPER_9260) += board-snapper9260.o

‎arch/arm/mach-at91/board-rsi-ews.c‎

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
/*
2+
* board-rsi-ews.c
3+
*
4+
* Copyright (C)
5+
* 2005 SAN People,
6+
* 2008-2011 R-S-I Elektrotechnik GmbH & Co. KG
7+
*
8+
* Licensed under GPLv2 or later.
9+
*/
10+
11+
#include <linux/types.h>
12+
#include <linux/init.h>
13+
#include <linux/mm.h>
14+
#include <linux/module.h>
15+
#include <linux/platform_device.h>
16+
#include <linux/spi/spi.h>
17+
#include <linux/mtd/physmap.h>
18+
19+
#include <asm/setup.h>
20+
#include <asm/mach-types.h>
21+
#include <asm/irq.h>
22+
23+
#include <asm/mach/arch.h>
24+
#include <asm/mach/map.h>
25+
#include <asm/mach/irq.h>
26+
27+
#include <mach/hardware.h>
28+
#include <mach/board.h>
29+
30+
#include <linux/gpio.h>
31+
32+
#include "generic.h"
33+
34+
static void __init rsi_ews_init_early(void)
35+
{
36+
/* Initialize processor: 18.432 MHz crystal */
37+
at91_initialize(18432000);
38+
39+
/* Setup the LEDs */
40+
at91_init_leds(AT91_PIN_PB6, AT91_PIN_PB9);
41+
42+
/* DBGU on ttyS0. (Rx & Tx only) */
43+
/* This one is for debugging */
44+
at91_register_uart(0, 0, 0);
45+
46+
/* USART1 on ttyS2. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */
47+
/* Dialin/-out modem interface */
48+
at91_register_uart(AT91RM9200_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS
49+
| ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
50+
| ATMEL_UART_RI);
51+
52+
/* USART3 on ttyS4. (Rx, Tx, RTS) */
53+
/* RS485 communication */
54+
at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_RTS);
55+
56+
/* set serial console to ttyS0 (ie, DBGU) */
57+
at91_set_serial_console(0);
58+
}
59+
60+
/*
61+
* Ethernet
62+
*/
63+
static struct at91_eth_data rsi_ews_eth_data __initdata = {
64+
.phy_irq_pin = AT91_PIN_PC4,
65+
.is_rmii = 1,
66+
};
67+
68+
/*
69+
* USB Host
70+
*/
71+
static struct at91_usbh_data rsi_ews_usbh_data __initdata = {
72+
.ports = 1,
73+
};
74+
75+
/*
76+
* SD/MC
77+
*/
78+
static struct at91_mmc_data rsi_ews_mmc_data __initdata = {
79+
.slot_b = 0,
80+
.wire4 = 1,
81+
.det_pin = AT91_PIN_PB27,
82+
.wp_pin = AT91_PIN_PB29,
83+
};
84+
85+
/*
86+
* I2C
87+
*/
88+
static struct i2c_board_info rsi_ews_i2c_devices[] __initdata = {
89+
{
90+
I2C_BOARD_INFO("ds1337", 0x68),
91+
},
92+
{
93+
I2C_BOARD_INFO("24c01", 0x50),
94+
}
95+
};
96+
97+
/*
98+
* LEDs
99+
*/
100+
static struct gpio_led rsi_ews_leds[] = {
101+
{
102+
.name = "led0",
103+
.gpio = AT91_PIN_PB6,
104+
.active_low = 0,
105+
},
106+
{
107+
.name = "led1",
108+
.gpio = AT91_PIN_PB7,
109+
.active_low = 0,
110+
},
111+
{
112+
.name = "led2",
113+
.gpio = AT91_PIN_PB8,
114+
.active_low = 0,
115+
},
116+
{
117+
.name = "led3",
118+
.gpio = AT91_PIN_PB9,
119+
.active_low = 0,
120+
},
121+
};
122+
123+
/*
124+
* DataFlash
125+
*/
126+
static struct spi_board_info rsi_ews_spi_devices[] = {
127+
{ /* DataFlash chip 1*/
128+
.modalias = "mtd_dataflash",
129+
.chip_select = 0,
130+
.max_speed_hz = 5 * 1000 * 1000,
131+
},
132+
{ /* DataFlash chip 2*/
133+
.modalias = "mtd_dataflash",
134+
.chip_select = 1,
135+
.max_speed_hz = 5 * 1000 * 1000,
136+
},
137+
};
138+
139+
/*
140+
* NOR flash
141+
*/
142+
static struct mtd_partition rsiews_nor_partitions[] = {
143+
{
144+
.name = "boot",
145+
.offset = 0,
146+
.size = 3 * SZ_128K,
147+
.mask_flags = MTD_WRITEABLE
148+
},
149+
{
150+
.name = "kernel",
151+
.offset = MTDPART_OFS_NXTBLK,
152+
.size = SZ_2M - (3 * SZ_128K)
153+
},
154+
{
155+
.name = "root",
156+
.offset = MTDPART_OFS_NXTBLK,
157+
.size = SZ_8M
158+
},
159+
{
160+
.name = "kernelupd",
161+
.offset = MTDPART_OFS_NXTBLK,
162+
.size = 3 * SZ_512K,
163+
.mask_flags = MTD_WRITEABLE
164+
},
165+
{
166+
.name = "rootupd",
167+
.offset = MTDPART_OFS_NXTBLK,
168+
.size = 9 * SZ_512K,
169+
.mask_flags = MTD_WRITEABLE
170+
},
171+
};
172+
173+
static struct physmap_flash_data rsiews_nor_data = {
174+
.width = 2,
175+
.parts = rsiews_nor_partitions,
176+
.nr_parts = ARRAY_SIZE(rsiews_nor_partitions),
177+
};
178+
179+
#define NOR_BASE AT91_CHIPSELECT_0
180+
#define NOR_SIZE SZ_16M
181+
182+
static struct resource nor_flash_resources[] = {
183+
{
184+
.start = NOR_BASE,
185+
.end = NOR_BASE + NOR_SIZE - 1,
186+
.flags = IORESOURCE_MEM,
187+
}
188+
};
189+
190+
static struct platform_device rsiews_nor_flash = {
191+
.name = "physmap-flash",
192+
.id = 0,
193+
.dev = {
194+
.platform_data = &rsiews_nor_data,
195+
},
196+
.resource = nor_flash_resources,
197+
.num_resources = ARRAY_SIZE(nor_flash_resources),
198+
};
199+
200+
/*
201+
* Init Func
202+
*/
203+
static void __init rsi_ews_board_init(void)
204+
{
205+
/* Serial */
206+
at91_add_device_serial();
207+
at91_set_gpio_output(AT91_PIN_PA21, 0);
208+
/* Ethernet */
209+
at91_add_device_eth(&rsi_ews_eth_data);
210+
/* USB Host */
211+
at91_add_device_usbh(&rsi_ews_usbh_data);
212+
/* I2C */
213+
at91_add_device_i2c(rsi_ews_i2c_devices,
214+
ARRAY_SIZE(rsi_ews_i2c_devices));
215+
/* SPI */
216+
at91_add_device_spi(rsi_ews_spi_devices,
217+
ARRAY_SIZE(rsi_ews_spi_devices));
218+
/* MMC */
219+
at91_add_device_mmc(0, &rsi_ews_mmc_data);
220+
/* NOR Flash */
221+
platform_device_register(&rsiews_nor_flash);
222+
/* LEDs */
223+
at91_gpio_leds(rsi_ews_leds, ARRAY_SIZE(rsi_ews_leds));
224+
}
225+
226+
MACHINE_START(RSI_EWS, "RSI EWS")
227+
/* Maintainer: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de> */
228+
.timer = &at91rm9200_timer,
229+
.map_io = at91_map_io,
230+
.init_early = rsi_ews_init_early,
231+
.init_irq = at91_init_irq_default,
232+
.init_machine = rsi_ews_board_init,
233+
MACHINE_END

0 commit comments

Comments
 (0)