Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* linux/arch/arm/mach-s3c2410/mach-vr1000.c |
| 2 | * |
Ben Dooks | ccae941 | 2009-11-13 22:54:14 +0000 | [diff] [blame] | 3 | * Copyright (c) 2003-2008 Simtec Electronics |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * Ben Dooks <ben@simtec.co.uk> |
| 5 | * |
| 6 | * Machine support for Thorcom VR1000 board. Designed for Thorcom by |
| 7 | * Simtec Electronics, http://www.simtec.co.uk/ |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #include <linux/kernel.h> |
| 16 | #include <linux/types.h> |
| 17 | #include <linux/interrupt.h> |
| 18 | #include <linux/list.h> |
| 19 | #include <linux/timer.h> |
| 20 | #include <linux/init.h> |
Ben Dooks | ec976d6 | 2009-05-13 22:52:24 +0100 | [diff] [blame] | 21 | #include <linux/gpio.h> |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 22 | #include <linux/dm9000.h> |
Ben Dooks | 60d6698 | 2008-07-03 11:24:42 +0100 | [diff] [blame] | 23 | #include <linux/i2c.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
| 25 | #include <linux/serial.h> |
| 26 | #include <linux/tty.h> |
| 27 | #include <linux/serial_8250.h> |
| 28 | #include <linux/serial_reg.h> |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 29 | #include <linux/io.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
| 31 | #include <asm/mach/arch.h> |
| 32 | #include <asm/mach/map.h> |
| 33 | #include <asm/mach/irq.h> |
| 34 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 35 | #include <mach/bast-map.h> |
| 36 | #include <mach/vr1000-map.h> |
| 37 | #include <mach/vr1000-irq.h> |
| 38 | #include <mach/vr1000-cpld.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 40 | #include <mach/hardware.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | #include <asm/irq.h> |
| 42 | #include <asm/mach-types.h> |
| 43 | |
Ben Dooks | a2b7ba9 | 2008-10-07 22:26:09 +0100 | [diff] [blame] | 44 | #include <plat/regs-serial.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 45 | #include <mach/regs-gpio.h> |
| 46 | #include <mach/leds-gpio.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | |
Ben Dooks | d5120ae | 2008-10-07 23:09:51 +0100 | [diff] [blame] | 48 | #include <plat/clock.h> |
Ben Dooks | a2b7ba9 | 2008-10-07 22:26:09 +0100 | [diff] [blame] | 49 | #include <plat/devs.h> |
| 50 | #include <plat/cpu.h> |
Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 51 | #include <plat/iic.h> |
Ben Dooks | 4d3a346 | 2009-11-13 22:34:20 +0000 | [diff] [blame] | 52 | #include <plat/audio-simtec.h> |
Ben Dooks | 9d529c6 | 2008-07-03 11:24:39 +0100 | [diff] [blame] | 53 | |
Heiko Stuebner | ec2cc75 | 2012-03-07 01:47:11 -0800 | [diff] [blame] | 54 | #include "simtec.h" |
Kukjin Kim | b27b072 | 2012-01-03 14:02:03 +0100 | [diff] [blame] | 55 | #include "common.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | |
| 57 | /* macros for virtual address mods for the io space entries */ |
| 58 | #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) |
| 59 | #define VA_C4(item) ((unsigned long)(item) + BAST_VAM_CS4) |
| 60 | #define VA_C3(item) ((unsigned long)(item) + BAST_VAM_CS3) |
| 61 | #define VA_C2(item) ((unsigned long)(item) + BAST_VAM_CS2) |
| 62 | |
| 63 | /* macros to modify the physical addresses for io space */ |
| 64 | |
Ben Dooks | df1ec6d | 2005-11-08 19:15:30 +0000 | [diff] [blame] | 65 | #define PA_CS2(item) (__phys_to_pfn((item) + S3C2410_CS2)) |
| 66 | #define PA_CS3(item) (__phys_to_pfn((item) + S3C2410_CS3)) |
| 67 | #define PA_CS4(item) (__phys_to_pfn((item) + S3C2410_CS4)) |
| 68 | #define PA_CS5(item) (__phys_to_pfn((item) + S3C2410_CS5)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | |
| 70 | static struct map_desc vr1000_iodesc[] __initdata = { |
| 71 | /* ISA IO areas */ |
Ben Dooks | df1ec6d | 2005-11-08 19:15:30 +0000 | [diff] [blame] | 72 | { |
| 73 | .virtual = (u32)S3C24XX_VA_ISA_BYTE, |
| 74 | .pfn = PA_CS2(BAST_PA_ISAIO), |
| 75 | .length = SZ_16M, |
| 76 | .type = MT_DEVICE, |
| 77 | }, { |
| 78 | .virtual = (u32)S3C24XX_VA_ISA_WORD, |
| 79 | .pfn = PA_CS3(BAST_PA_ISAIO), |
| 80 | .length = SZ_16M, |
| 81 | .type = MT_DEVICE, |
| 82 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | |
Ben Dooks | df1ec6d | 2005-11-08 19:15:30 +0000 | [diff] [blame] | 84 | /* CPLD control registers, and external interrupt controls */ |
| 85 | { |
| 86 | .virtual = (u32)VR1000_VA_CTRL1, |
| 87 | .pfn = __phys_to_pfn(VR1000_PA_CTRL1), |
| 88 | .length = SZ_1M, |
| 89 | .type = MT_DEVICE, |
| 90 | }, { |
| 91 | .virtual = (u32)VR1000_VA_CTRL2, |
| 92 | .pfn = __phys_to_pfn(VR1000_PA_CTRL2), |
| 93 | .length = SZ_1M, |
| 94 | .type = MT_DEVICE, |
| 95 | }, { |
| 96 | .virtual = (u32)VR1000_VA_CTRL3, |
| 97 | .pfn = __phys_to_pfn(VR1000_PA_CTRL3), |
| 98 | .length = SZ_1M, |
| 99 | .type = MT_DEVICE, |
| 100 | }, { |
| 101 | .virtual = (u32)VR1000_VA_CTRL4, |
| 102 | .pfn = __phys_to_pfn(VR1000_PA_CTRL4), |
| 103 | .length = SZ_1M, |
| 104 | .type = MT_DEVICE, |
| 105 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | }; |
| 107 | |
| 108 | #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK |
| 109 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
| 110 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
| 111 | |
Ben Dooks | 66a9b49 | 2006-06-18 23:04:05 +0100 | [diff] [blame] | 112 | static struct s3c2410_uartcfg vr1000_uartcfgs[] __initdata = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 113 | [0] = { |
| 114 | .hwport = 0, |
| 115 | .flags = 0, |
| 116 | .ucon = UCON, |
| 117 | .ulcon = ULCON, |
| 118 | .ufcon = UFCON, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | }, |
| 120 | [1] = { |
| 121 | .hwport = 1, |
| 122 | .flags = 0, |
| 123 | .ucon = UCON, |
| 124 | .ulcon = ULCON, |
| 125 | .ufcon = UFCON, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | }, |
| 127 | /* port 2 is not actually used */ |
| 128 | [2] = { |
| 129 | .hwport = 2, |
| 130 | .flags = 0, |
| 131 | .ucon = UCON, |
| 132 | .ulcon = ULCON, |
| 133 | .ufcon = UFCON, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | } |
| 135 | }; |
| 136 | |
| 137 | /* definitions for the vr1000 extra 16550 serial ports */ |
| 138 | |
| 139 | #define VR1000_BAUDBASE (3692307) |
| 140 | |
| 141 | #define VR1000_SERIAL_MAPBASE(x) (VR1000_PA_SERIAL + 0x80 + ((x) << 5)) |
| 142 | |
| 143 | static struct plat_serial8250_port serial_platform_data[] = { |
| 144 | [0] = { |
| 145 | .mapbase = VR1000_SERIAL_MAPBASE(0), |
| 146 | .irq = IRQ_VR1000_SERIAL + 0, |
| 147 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
| 148 | .iotype = UPIO_MEM, |
| 149 | .regshift = 0, |
| 150 | .uartclk = VR1000_BAUDBASE, |
| 151 | }, |
| 152 | [1] = { |
| 153 | .mapbase = VR1000_SERIAL_MAPBASE(1), |
| 154 | .irq = IRQ_VR1000_SERIAL + 1, |
| 155 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
| 156 | .iotype = UPIO_MEM, |
| 157 | .regshift = 0, |
| 158 | .uartclk = VR1000_BAUDBASE, |
| 159 | }, |
| 160 | [2] = { |
| 161 | .mapbase = VR1000_SERIAL_MAPBASE(2), |
| 162 | .irq = IRQ_VR1000_SERIAL + 2, |
| 163 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
| 164 | .iotype = UPIO_MEM, |
| 165 | .regshift = 0, |
| 166 | .uartclk = VR1000_BAUDBASE, |
| 167 | }, |
| 168 | [3] = { |
| 169 | .mapbase = VR1000_SERIAL_MAPBASE(3), |
| 170 | .irq = IRQ_VR1000_SERIAL + 3, |
| 171 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
| 172 | .iotype = UPIO_MEM, |
| 173 | .regshift = 0, |
| 174 | .uartclk = VR1000_BAUDBASE, |
| 175 | }, |
| 176 | { }, |
| 177 | }; |
| 178 | |
| 179 | static struct platform_device serial_device = { |
| 180 | .name = "serial8250", |
Russell King | 6df29de | 2005-09-08 16:04:41 +0100 | [diff] [blame] | 181 | .id = PLAT8250_DEV_PLATFORM, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | .dev = { |
| 183 | .platform_data = serial_platform_data, |
| 184 | }, |
| 185 | }; |
| 186 | |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 187 | /* DM9000 ethernet devices */ |
| 188 | |
| 189 | static struct resource vr1000_dm9k0_resource[] = { |
Tushar Behera | 940e46a | 2012-05-12 16:12:25 +0900 | [diff] [blame^] | 190 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000, 4), |
| 191 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0x40, 0x40), |
| 192 | [2] = DEFINE_RES_NAMED(IRQ_VR1000_DM9000A, 1, NULL, IORESOURCE_IRQ \ |
| 193 | | IORESOURCE_IRQ_HIGHLEVEL), |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | static struct resource vr1000_dm9k1_resource[] = { |
Tushar Behera | 940e46a | 2012-05-12 16:12:25 +0900 | [diff] [blame^] | 197 | [0] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0x80, 4), |
| 198 | [1] = DEFINE_RES_MEM(S3C2410_CS5 + VR1000_PA_DM9000 + 0xC0, 0x40), |
| 199 | [2] = DEFINE_RES_NAMED(IRQ_VR1000_DM9000N, 1, NULL, IORESOURCE_IRQ \ |
| 200 | | IORESOURCE_IRQ_HIGHLEVEL), |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 201 | }; |
| 202 | |
| 203 | /* for the moment we limit ourselves to 16bit IO until some |
| 204 | * better IO routines can be written and tested |
| 205 | */ |
| 206 | |
Ben Dooks | 9f693d7 | 2005-10-12 19:58:07 +0100 | [diff] [blame] | 207 | static struct dm9000_plat_data vr1000_dm9k_platdata = { |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 208 | .flags = DM9000_PLATF_16BITONLY, |
| 209 | }; |
| 210 | |
| 211 | static struct platform_device vr1000_dm9k0 = { |
| 212 | .name = "dm9000", |
| 213 | .id = 0, |
| 214 | .num_resources = ARRAY_SIZE(vr1000_dm9k0_resource), |
| 215 | .resource = vr1000_dm9k0_resource, |
| 216 | .dev = { |
| 217 | .platform_data = &vr1000_dm9k_platdata, |
| 218 | } |
| 219 | }; |
| 220 | |
| 221 | static struct platform_device vr1000_dm9k1 = { |
| 222 | .name = "dm9000", |
| 223 | .id = 1, |
| 224 | .num_resources = ARRAY_SIZE(vr1000_dm9k1_resource), |
| 225 | .resource = vr1000_dm9k1_resource, |
| 226 | .dev = { |
| 227 | .platform_data = &vr1000_dm9k_platdata, |
| 228 | } |
| 229 | }; |
| 230 | |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 231 | /* LEDS */ |
| 232 | |
| 233 | static struct s3c24xx_led_platdata vr1000_led1_pdata = { |
| 234 | .name = "led1", |
Ben Dooks | 070276d | 2009-05-17 22:32:23 +0100 | [diff] [blame] | 235 | .gpio = S3C2410_GPB(0), |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 236 | .def_trigger = "", |
| 237 | }; |
| 238 | |
| 239 | static struct s3c24xx_led_platdata vr1000_led2_pdata = { |
| 240 | .name = "led2", |
Ben Dooks | 070276d | 2009-05-17 22:32:23 +0100 | [diff] [blame] | 241 | .gpio = S3C2410_GPB(1), |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 242 | .def_trigger = "", |
| 243 | }; |
| 244 | |
| 245 | static struct s3c24xx_led_platdata vr1000_led3_pdata = { |
| 246 | .name = "led3", |
Ben Dooks | 070276d | 2009-05-17 22:32:23 +0100 | [diff] [blame] | 247 | .gpio = S3C2410_GPB(2), |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 248 | .def_trigger = "", |
| 249 | }; |
| 250 | |
| 251 | static struct platform_device vr1000_led1 = { |
| 252 | .name = "s3c24xx_led", |
| 253 | .id = 1, |
| 254 | .dev = { |
| 255 | .platform_data = &vr1000_led1_pdata, |
| 256 | }, |
| 257 | }; |
| 258 | |
| 259 | static struct platform_device vr1000_led2 = { |
| 260 | .name = "s3c24xx_led", |
| 261 | .id = 2, |
| 262 | .dev = { |
| 263 | .platform_data = &vr1000_led2_pdata, |
| 264 | }, |
| 265 | }; |
| 266 | |
| 267 | static struct platform_device vr1000_led3 = { |
| 268 | .name = "s3c24xx_led", |
Ben Dooks | abac08d7 | 2006-12-19 19:10:13 +0100 | [diff] [blame] | 269 | .id = 3, |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 270 | .dev = { |
| 271 | .platform_data = &vr1000_led3_pdata, |
| 272 | }, |
| 273 | }; |
| 274 | |
Ben Dooks | 60d6698 | 2008-07-03 11:24:42 +0100 | [diff] [blame] | 275 | /* I2C devices. */ |
| 276 | |
| 277 | static struct i2c_board_info vr1000_i2c_devs[] __initdata = { |
| 278 | { |
| 279 | I2C_BOARD_INFO("tlv320aic23", 0x1a), |
| 280 | }, { |
Ben Dooks | 9c3871c | 2008-07-03 11:24:44 +0100 | [diff] [blame] | 281 | I2C_BOARD_INFO("tmp101", 0x48), |
| 282 | }, { |
Ben Dooks | 60d6698 | 2008-07-03 11:24:42 +0100 | [diff] [blame] | 283 | I2C_BOARD_INFO("m41st87", 0x68), |
| 284 | }, |
| 285 | }; |
| 286 | |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 287 | /* devices for this board */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | |
| 289 | static struct platform_device *vr1000_devices[] __initdata = { |
Ben Dooks | b813248 | 2009-11-23 00:13:39 +0000 | [diff] [blame] | 290 | &s3c_device_ohci, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 291 | &s3c_device_lcd, |
| 292 | &s3c_device_wdt, |
Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 293 | &s3c_device_i2c0, |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 294 | &s3c_device_adc, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 295 | &serial_device, |
Ben Dooks | d97a666 | 2005-06-23 21:56:47 +0100 | [diff] [blame] | 296 | &vr1000_dm9k0, |
Ben Dooks | b2eba6b | 2006-12-07 20:28:23 +0100 | [diff] [blame] | 297 | &vr1000_dm9k1, |
| 298 | &vr1000_led1, |
| 299 | &vr1000_led2, |
| 300 | &vr1000_led3, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | }; |
| 302 | |
Ben Dooks | 2bc7509 | 2008-07-15 17:17:48 +0100 | [diff] [blame] | 303 | static struct clk *vr1000_clocks[] __initdata = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 304 | &s3c24xx_dclk0, |
| 305 | &s3c24xx_dclk1, |
| 306 | &s3c24xx_clkout0, |
| 307 | &s3c24xx_clkout1, |
| 308 | &s3c24xx_uclk, |
| 309 | }; |
| 310 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 311 | static void vr1000_power_off(void) |
| 312 | { |
Ben Dooks | 7614e1d | 2010-05-04 12:53:11 +0900 | [diff] [blame] | 313 | gpio_direction_output(S3C2410_GPB(9), 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | } |
| 315 | |
Ben Dooks | 5fe10ab | 2005-09-20 17:24:33 +0100 | [diff] [blame] | 316 | static void __init vr1000_map_io(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 317 | { |
| 318 | /* initialise clock sources */ |
| 319 | |
Ben Dooks | d96a980 | 2008-04-16 00:12:39 +0100 | [diff] [blame] | 320 | s3c24xx_dclk0.parent = &clk_upll; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | s3c24xx_dclk0.rate = 12*1000*1000; |
| 322 | |
| 323 | s3c24xx_dclk1.parent = NULL; |
| 324 | s3c24xx_dclk1.rate = 3692307; |
| 325 | |
| 326 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; |
| 327 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; |
| 328 | |
| 329 | s3c24xx_uclk.parent = &s3c24xx_clkout1; |
| 330 | |
Ben Dooks | ce89c20 | 2007-04-20 11:15:27 +0100 | [diff] [blame] | 331 | s3c24xx_register_clocks(vr1000_clocks, ARRAY_SIZE(vr1000_clocks)); |
| 332 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 333 | pm_power_off = vr1000_power_off; |
| 334 | |
| 335 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); |
| 336 | s3c24xx_init_clocks(0); |
| 337 | s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 338 | } |
| 339 | |
Ben Dooks | 57e5171 | 2007-04-20 11:19:16 +0100 | [diff] [blame] | 340 | static void __init vr1000_init(void) |
| 341 | { |
Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 342 | s3c_i2c0_set_platdata(NULL); |
Ben Dooks | 57e5171 | 2007-04-20 11:19:16 +0100 | [diff] [blame] | 343 | platform_add_devices(vr1000_devices, ARRAY_SIZE(vr1000_devices)); |
Ben Dooks | 9d529c6 | 2008-07-03 11:24:39 +0100 | [diff] [blame] | 344 | |
Ben Dooks | 60d6698 | 2008-07-03 11:24:42 +0100 | [diff] [blame] | 345 | i2c_register_board_info(0, vr1000_i2c_devs, |
| 346 | ARRAY_SIZE(vr1000_i2c_devs)); |
| 347 | |
Ben Dooks | 9d529c6 | 2008-07-03 11:24:39 +0100 | [diff] [blame] | 348 | nor_simtec_init(); |
Ben Dooks | 4d3a346 | 2009-11-13 22:34:20 +0000 | [diff] [blame] | 349 | simtec_audio_add(NULL, true, NULL); |
Ben Dooks | 7614e1d | 2010-05-04 12:53:11 +0900 | [diff] [blame] | 350 | |
| 351 | WARN_ON(gpio_request(S3C2410_GPB(9), "power off")); |
Ben Dooks | 57e5171 | 2007-04-20 11:19:16 +0100 | [diff] [blame] | 352 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 353 | |
| 354 | MACHINE_START(VR1000, "Thorcom-VR1000") |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 355 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ |
Nicolas Pitre | 69d5071 | 2011-07-05 22:38:17 -0400 | [diff] [blame] | 356 | .atag_offset = 0x100, |
Ben Dooks | 6904b24 | 2005-06-29 11:09:15 +0100 | [diff] [blame] | 357 | .map_io = vr1000_map_io, |
Ben Dooks | 57e5171 | 2007-04-20 11:19:16 +0100 | [diff] [blame] | 358 | .init_machine = vr1000_init, |
Ben Dooks | 6904b24 | 2005-06-29 11:09:15 +0100 | [diff] [blame] | 359 | .init_irq = s3c24xx_init_irq, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 360 | .timer = &s3c24xx_timer, |
Kukjin Kim | b27b072 | 2012-01-03 14:02:03 +0100 | [diff] [blame] | 361 | .restart = s3c2410_restart, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 362 | MACHINE_END |