blob: 4e3e511bf14646fdc3c32075cd91407d87777a2a [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
2 * File: arch/blackfin/mach-bf533/ezkit.c
Simon Arlottd2d50aa2007-06-11 15:31:30 +08003 * Based on: Original Work
Bryan Wu1394f032007-05-06 14:50:22 -07004 * Author: Aidan Williams <aidan@nicta.com.au>
5 *
6 * Created: 2005
7 * Description:
8 *
9 * Modified: Robin Getz <rgetz@blackfin.uclinux.org> - Named the boards
10 * Copyright 2005 National ICT Australia (NICTA)
11 * Copyright 2004-2006 Analog Devices Inc.
12 *
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, see the file COPYING, or write
27 * to the Free Software Foundation, Inc.,
28 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 */
30
31#include <linux/device.h>
32#include <linux/platform_device.h>
33#include <linux/mtd/mtd.h>
34#include <linux/mtd/partitions.h>
Mike Frysinger4d5e6fd2009-06-13 06:34:49 -040035#include <linux/mtd/plat-ram.h>
Bryan Wu1394f032007-05-06 14:50:22 -070036#include <linux/spi/spi.h>
37#include <linux/spi/flash.h>
Mike Frysinger67f2d332008-02-09 01:49:23 +080038#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
Mike Frysingerf02bcec2007-11-15 21:29:15 +080039#include <linux/usb/isp1362.h>
Mike Frysinger67f2d332008-02-09 01:49:23 +080040#endif
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080041#include <linux/irq.h>
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080042#include <asm/dma.h>
Bryan Wu1394f032007-05-06 14:50:22 -070043#include <asm/bfin5xx_spi.h>
Bryan Wu5d448dd2007-11-12 23:24:42 +080044#include <asm/portmux.h>
Michael Hennerich14b03202008-05-07 11:41:26 +080045#include <asm/dpmc.h>
Bryan Wu1394f032007-05-06 14:50:22 -070046
47/*
48 * Name the Board for the /proc/cpuinfo
49 */
Mike Frysingerfe85cad2008-11-18 17:48:22 +080050const char bfin_board_name[] = "ADI BF533-EZKIT";
Bryan Wu1394f032007-05-06 14:50:22 -070051
52#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
53static struct platform_device rtc_device = {
54 .name = "rtc-bfin",
55 .id = -1,
56};
57#endif
58
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080059#if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
60static struct platform_device bfin_fb_adv7393_device = {
61 .name = "bfin-adv7393",
62};
63#endif
64
Bryan Wu1394f032007-05-06 14:50:22 -070065/*
66 * USB-LAN EzExtender board
67 * Driver needs to know address, irq and flag pin.
68 */
69#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
70static struct resource smc91x_resources[] = {
71 {
72 .name = "smc91x-regs",
73 .start = 0x20310300,
74 .end = 0x20310300 + 16,
75 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080076 }, {
Bryan Wu1394f032007-05-06 14:50:22 -070077 .start = IRQ_PF9,
78 .end = IRQ_PF9,
79 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
80 },
81};
82static struct platform_device smc91x_device = {
83 .name = "smc91x",
84 .id = 0,
85 .num_resources = ARRAY_SIZE(smc91x_resources),
86 .resource = smc91x_resources,
87};
88#endif
89
Mike Frysinger4d5e6fd2009-06-13 06:34:49 -040090#if defined(CONFIG_MTD_PSD4256G) || defined(CONFIG_MTD_PSD4256G_MODULE)
91static const char *map_probes[] = {
92 "stm_flash",
93 NULL,
94};
95
96static struct platdata_mtd_ram stm_pri_data_a = {
97 .mapname = "Flash A Primary",
98 .map_probes = map_probes,
99 .bankwidth = 2,
100};
101
102static struct resource stm_pri_resource_a = {
103 .start = 0x20000000,
104 .end = 0x200fffff,
105 .flags = IORESOURCE_MEM,
106};
107
108static struct platform_device stm_pri_device_a = {
109 .name = "mtd-ram",
110 .id = 0,
111 .dev = {
112 .platform_data = &stm_pri_data_a,
113 },
114 .num_resources = 1,
115 .resource = &stm_pri_resource_a,
116};
117
118static struct platdata_mtd_ram stm_pri_data_b = {
119 .mapname = "Flash B Primary",
120 .map_probes = map_probes,
121 .bankwidth = 2,
122};
123
124static struct resource stm_pri_resource_b = {
125 .start = 0x20100000,
126 .end = 0x201fffff,
127 .flags = IORESOURCE_MEM,
128};
129
130static struct platform_device stm_pri_device_b = {
131 .name = "mtd-ram",
132 .id = 4,
133 .dev = {
134 .platform_data = &stm_pri_data_b,
135 },
136 .num_resources = 1,
137 .resource = &stm_pri_resource_b,
138};
139#endif
140
141#if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE)
142static struct platdata_mtd_ram sram_data_a = {
143 .mapname = "Flash A SRAM",
144 .bankwidth = 2,
145};
146
147static struct resource sram_resource_a = {
148 .start = 0x20240000,
149 .end = 0x2024ffff,
150 .flags = IORESOURCE_MEM,
151};
152
153static struct platform_device sram_device_a = {
154 .name = "mtd-ram",
155 .id = 8,
156 .dev = {
157 .platform_data = &sram_data_a,
158 },
159 .num_resources = 1,
160 .resource = &sram_resource_a,
161};
162
163static struct platdata_mtd_ram sram_data_b = {
164 .mapname = "Flash B SRAM",
165 .bankwidth = 2,
166};
167
168static struct resource sram_resource_b = {
169 .start = 0x202c0000,
170 .end = 0x202cffff,
171 .flags = IORESOURCE_MEM,
172};
173
174static struct platform_device sram_device_b = {
175 .name = "mtd-ram",
176 .id = 9,
177 .dev = {
178 .platform_data = &sram_data_b,
179 },
180 .num_resources = 1,
181 .resource = &sram_resource_b,
182};
183#endif
184
Bryan Wu1394f032007-05-06 14:50:22 -0700185#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
186static struct mtd_partition bfin_spi_flash_partitions[] = {
187 {
Robin Getzaa582972008-08-05 17:47:29 +0800188 .name = "bootloader(spi)",
Bryan Wu1394f032007-05-06 14:50:22 -0700189 .size = 0x00020000,
190 .offset = 0,
191 .mask_flags = MTD_CAP_ROM
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800192 }, {
Robin Getzaa582972008-08-05 17:47:29 +0800193 .name = "linux kernel(spi)",
Bryan Wu1394f032007-05-06 14:50:22 -0700194 .size = 0xe0000,
Mike Frysingeredf05642008-02-25 11:38:11 +0800195 .offset = MTDPART_OFS_APPEND,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800196 }, {
Robin Getzaa582972008-08-05 17:47:29 +0800197 .name = "file system(spi)",
Mike Frysingeredf05642008-02-25 11:38:11 +0800198 .size = MTDPART_SIZ_FULL,
199 .offset = MTDPART_OFS_APPEND,
Bryan Wu1394f032007-05-06 14:50:22 -0700200 }
201};
202
203static struct flash_platform_data bfin_spi_flash_data = {
204 .name = "m25p80",
205 .parts = bfin_spi_flash_partitions,
206 .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),
207 .type = "m25p64",
208};
209
210/* SPI flash chip (m25p64) */
211static struct bfin5xx_spi_chip spi_flash_chip_info = {
212 .enable_dma = 0, /* use dma transfer with this chip*/
213 .bits_per_word = 8,
214};
215#endif
216
Mike Frysingera261eec2009-05-20 14:05:36 +0000217#if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
Bryan Wu1394f032007-05-06 14:50:22 -0700218/* SPI ADC chip */
219static struct bfin5xx_spi_chip spi_adc_chip_info = {
220 .enable_dma = 1, /* use dma transfer with this chip*/
221 .bits_per_word = 16,
222};
223#endif
224
225#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
226static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
227 .enable_dma = 0,
228 .bits_per_word = 16,
229};
230#endif
231
Michael Hennerich6e668932008-02-09 01:54:09 +0800232#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
233static struct bfin5xx_spi_chip spidev_chip_info = {
234 .enable_dma = 0,
235 .bits_per_word = 8,
236};
237#endif
238
Bryan Wu1394f032007-05-06 14:50:22 -0700239static struct spi_board_info bfin_spi_board_info[] __initdata = {
240#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
241 {
242 /* the modalias must be the same as spi device driver name */
243 .modalias = "m25p80", /* Name of spi_driver for this device */
244 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800245 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -0700246 .chip_select = 2, /* Framework chip select. On STAMP537 it is SPISSEL2*/
247 .platform_data = &bfin_spi_flash_data,
248 .controller_data = &spi_flash_chip_info,
249 .mode = SPI_MODE_3,
250 },
251#endif
252
Mike Frysingera261eec2009-05-20 14:05:36 +0000253#if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
Bryan Wu1394f032007-05-06 14:50:22 -0700254 {
255 .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
256 .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800257 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -0700258 .chip_select = 1, /* Framework chip select. */
259 .platform_data = NULL, /* No spi_driver specific config */
260 .controller_data = &spi_adc_chip_info,
261 },
262#endif
263
264#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
265 {
266 .modalias = "ad1836-spi",
267 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800268 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700269 .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
270 .controller_data = &ad1836_spi_chip_info,
271 },
272#endif
Michael Hennerich6e668932008-02-09 01:54:09 +0800273#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
274 {
275 .modalias = "spidev",
276 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
277 .bus_num = 0,
278 .chip_select = 1,
279 .controller_data = &spidev_chip_info,
280 },
281#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700282};
283
Mike Frysinger5bda2722008-06-07 15:03:01 +0800284#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800285/* SPI (0) */
286static struct resource bfin_spi0_resource[] = {
287 [0] = {
288 .start = SPI0_REGBASE,
289 .end = SPI0_REGBASE + 0xFF,
290 .flags = IORESOURCE_MEM,
291 },
292 [1] = {
293 .start = CH_SPI,
294 .end = CH_SPI,
Yi Li53122692009-06-05 12:11:11 +0000295 .flags = IORESOURCE_DMA,
296 },
297 [2] = {
298 .start = IRQ_SPI,
299 .end = IRQ_SPI,
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800300 .flags = IORESOURCE_IRQ,
301 }
302};
303
Bryan Wu1394f032007-05-06 14:50:22 -0700304/* SPI controller data */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800305static struct bfin5xx_spi_master bfin_spi0_info = {
Bryan Wu1394f032007-05-06 14:50:22 -0700306 .num_chipselect = 8,
307 .enable_dma = 1, /* master has the ability to do dma transfer */
Bryan Wu5d448dd2007-11-12 23:24:42 +0800308 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
Bryan Wu1394f032007-05-06 14:50:22 -0700309};
310
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800311static struct platform_device bfin_spi0_device = {
312 .name = "bfin-spi",
313 .id = 0, /* Bus number */
314 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
315 .resource = bfin_spi0_resource,
Bryan Wu1394f032007-05-06 14:50:22 -0700316 .dev = {
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800317 .platform_data = &bfin_spi0_info, /* Passed to driver */
Bryan Wu1394f032007-05-06 14:50:22 -0700318 },
319};
320#endif /* spi master and devices */
321
322#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
323static struct resource bfin_uart_resources[] = {
324 {
325 .start = 0xFFC00400,
326 .end = 0xFFC004FF,
327 .flags = IORESOURCE_MEM,
328 },
329};
330
331static struct platform_device bfin_uart_device = {
332 .name = "bfin-uart",
333 .id = 1,
334 .num_resources = ARRAY_SIZE(bfin_uart_resources),
335 .resource = bfin_uart_resources,
336};
337#endif
338
Graf Yang5be36d22008-04-25 03:09:15 +0800339#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang5be36d22008-04-25 03:09:15 +0800340#ifdef CONFIG_BFIN_SIR0
Graf Yang42bd8bc2009-01-07 23:14:39 +0800341static struct resource bfin_sir0_resources[] = {
Graf Yang5be36d22008-04-25 03:09:15 +0800342 {
343 .start = 0xFFC00400,
344 .end = 0xFFC004FF,
345 .flags = IORESOURCE_MEM,
346 },
Graf Yang42bd8bc2009-01-07 23:14:39 +0800347 {
348 .start = IRQ_UART0_RX,
349 .end = IRQ_UART0_RX+1,
350 .flags = IORESOURCE_IRQ,
351 },
352 {
353 .start = CH_UART0_RX,
354 .end = CH_UART0_RX+1,
355 .flags = IORESOURCE_DMA,
356 },
Graf Yang5be36d22008-04-25 03:09:15 +0800357};
358
Graf Yang42bd8bc2009-01-07 23:14:39 +0800359static struct platform_device bfin_sir0_device = {
Graf Yang5be36d22008-04-25 03:09:15 +0800360 .name = "bfin_sir",
361 .id = 0,
Graf Yang42bd8bc2009-01-07 23:14:39 +0800362 .num_resources = ARRAY_SIZE(bfin_sir0_resources),
363 .resource = bfin_sir0_resources,
Graf Yang5be36d22008-04-25 03:09:15 +0800364};
365#endif
Graf Yang42bd8bc2009-01-07 23:14:39 +0800366#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800367
Michael Hennerich2463ef22008-01-27 16:49:48 +0800368#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
369#include <linux/input.h>
370#include <linux/gpio_keys.h>
371
372static struct gpio_keys_button bfin_gpio_keys_table[] = {
373 {BTN_0, GPIO_PF7, 1, "gpio-keys: BTN0"},
374 {BTN_1, GPIO_PF8, 1, "gpio-keys: BTN1"},
375 {BTN_2, GPIO_PF9, 1, "gpio-keys: BTN2"},
376 {BTN_3, GPIO_PF10, 1, "gpio-keys: BTN3"},
377};
378
379static struct gpio_keys_platform_data bfin_gpio_keys_data = {
380 .buttons = bfin_gpio_keys_table,
381 .nbuttons = ARRAY_SIZE(bfin_gpio_keys_table),
382};
383
384static struct platform_device bfin_device_gpiokeys = {
385 .name = "gpio-keys",
386 .dev = {
387 .platform_data = &bfin_gpio_keys_data,
388 },
389};
390#endif
391
Mike Frysingercad2ab62008-02-22 17:01:31 +0800392static struct resource bfin_gpios_resources = {
393 .start = 0,
394 .end = MAX_BLACKFIN_GPIOS - 1,
395 .flags = IORESOURCE_IRQ,
396};
397
398static struct platform_device bfin_gpios_device = {
399 .name = "simple-gpio",
400 .id = -1,
401 .num_resources = 1,
402 .resource = &bfin_gpios_resources,
403};
404
Bryan Wue3163952008-01-24 16:19:15 +0800405#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
406#include <linux/i2c-gpio.h>
407
408static struct i2c_gpio_platform_data i2c_gpio_data = {
409 .sda_pin = 1,
410 .scl_pin = 0,
411 .sda_is_open_drain = 0,
412 .scl_is_open_drain = 0,
413 .udelay = 40,
414};
415
416static struct platform_device i2c_gpio_device = {
417 .name = "i2c-gpio",
418 .id = 0,
419 .dev = {
420 .platform_data = &i2c_gpio_data,
421 },
422};
423#endif
424
Michael Hennerich14b03202008-05-07 11:41:26 +0800425static const unsigned int cclk_vlev_datasheet[] =
426{
427 VRPAIR(VLEV_085, 250000000),
428 VRPAIR(VLEV_090, 376000000),
429 VRPAIR(VLEV_095, 426000000),
430 VRPAIR(VLEV_100, 426000000),
431 VRPAIR(VLEV_105, 476000000),
432 VRPAIR(VLEV_110, 476000000),
433 VRPAIR(VLEV_115, 476000000),
434 VRPAIR(VLEV_120, 600000000),
435 VRPAIR(VLEV_125, 600000000),
436 VRPAIR(VLEV_130, 600000000),
437};
438
439static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = {
440 .tuple_tab = cclk_vlev_datasheet,
441 .tabsize = ARRAY_SIZE(cclk_vlev_datasheet),
442 .vr_settling_time = 25 /* us */,
443};
444
445static struct platform_device bfin_dpmc = {
446 .name = "bfin dpmc",
447 .dev = {
448 .platform_data = &bfin_dmpc_vreg_data,
449 },
450};
451
Bryan Wu1394f032007-05-06 14:50:22 -0700452static struct platform_device *ezkit_devices[] __initdata = {
Michael Hennerich14b03202008-05-07 11:41:26 +0800453
454 &bfin_dpmc,
455
Mike Frysinger4d5e6fd2009-06-13 06:34:49 -0400456#if defined(CONFIG_MTD_PSD4256G) || defined(CONFIG_MTD_PSD4256G_MODULE)
457 &stm_pri_device_a,
458 &stm_pri_device_b,
459#endif
460
461#if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE)
462 &sram_device_a,
463 &sram_device_b,
464#endif
465
Bryan Wu1394f032007-05-06 14:50:22 -0700466#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
467 &smc91x_device,
468#endif
469
470#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800471 &bfin_spi0_device,
472#endif
473
474#if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE)
475 &bfin_fb_adv7393_device,
Bryan Wu1394f032007-05-06 14:50:22 -0700476#endif
477
478#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
479 &rtc_device,
480#endif
481
Sonic Zhange062cea2009-01-07 23:14:39 +0800482#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
483 &bfin_uart_device,
484#endif
485
Graf Yang5be36d22008-04-25 03:09:15 +0800486#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang42bd8bc2009-01-07 23:14:39 +0800487#ifdef CONFIG_BFIN_SIR0
488 &bfin_sir0_device,
489#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800490#endif
491
Michael Hennerich2463ef22008-01-27 16:49:48 +0800492#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
493 &bfin_device_gpiokeys,
494#endif
Bryan Wue3163952008-01-24 16:19:15 +0800495
496#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
497 &i2c_gpio_device,
498#endif
Mike Frysingercad2ab62008-02-22 17:01:31 +0800499
500 &bfin_gpios_device,
Bryan Wu1394f032007-05-06 14:50:22 -0700501};
502
503static int __init ezkit_init(void)
504{
Harvey Harrisonb85d8582008-04-23 09:39:01 +0800505 printk(KERN_INFO "%s(): registering device resources\n", __func__);
Bryan Wu1394f032007-05-06 14:50:22 -0700506 platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
Bryan Wu1394f032007-05-06 14:50:22 -0700507 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
Bryan Wu1394f032007-05-06 14:50:22 -0700508 return 0;
509}
510
511arch_initcall(ezkit_init);