1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-pxa/balloon3.c
5 * Support for Balloonboard.org Balloon3 board.
7 * Author: Nick Bane, Wookey, Jonathan McDowell
9 * Copyright: Toby Churchill Ltd
10 * Derived from mainstone.c, by Nico Pitre
13 #include <linux/export.h>
14 #include <linux/init.h>
15 #include <linux/platform_device.h>
16 #include <linux/interrupt.h>
17 #include <linux/leds.h>
18 #include <linux/sched.h>
19 #include <linux/bitops.h>
21 #include <linux/gpio.h>
22 #include <linux/ioport.h>
23 #include <linux/ucb1400.h>
24 #include <linux/mtd/mtd.h>
25 #include <linux/types.h>
26 #include <linux/platform_data/pcf857x.h>
27 #include <linux/platform_data/i2c-pxa.h>
28 #include <linux/mtd/platnand.h>
29 #include <linux/mtd/physmap.h>
30 #include <linux/regulator/max1586.h>
32 #include <asm/setup.h>
33 #include <asm/mach-types.h>
35 #include <linux/sizes.h>
37 #include <asm/mach/arch.h>
38 #include <asm/mach/map.h>
39 #include <asm/mach/irq.h>
40 #include <asm/mach/flash.h>
43 #include <mach/balloon3.h>
44 #include <mach/audio.h>
45 #include <linux/platform_data/video-pxafb.h>
46 #include <linux/platform_data/mmc-pxamci.h>
48 #include "pxa27x-udc.h"
49 #include <linux/platform_data/irda-pxaficp.h>
50 #include <linux/platform_data/usb-ohci-pxa27x.h>
55 /******************************************************************************
57 ******************************************************************************/
58 static unsigned long balloon3_pin_config
[] __initdata
= {
59 /* Select BTUART 'COM1/ttyS0' as IO option for pins 42/43/44/45 */
65 /* Reset, configured as GPIO wakeup source */
66 GPIO1_GPIO
| WAKEUP_ON_EDGE_BOTH
,
69 /******************************************************************************
70 * Compatibility: Parameter parsing
71 ******************************************************************************/
72 static unsigned long balloon3_irq_enabled
;
74 static unsigned long balloon3_features_present
=
75 (1 << BALLOON3_FEATURE_OHCI
) | (1 << BALLOON3_FEATURE_CF
) |
76 (1 << BALLOON3_FEATURE_AUDIO
) |
77 (1 << BALLOON3_FEATURE_TOPPOLY
);
79 int balloon3_has(enum balloon3_features feature
)
81 return (balloon3_features_present
& (1 << feature
)) ? 1 : 0;
83 EXPORT_SYMBOL_GPL(balloon3_has
);
85 int __init
parse_balloon3_features(char *arg
)
90 return kstrtoul(arg
, 0, &balloon3_features_present
);
92 early_param("balloon3_features", parse_balloon3_features
);
94 /******************************************************************************
96 ******************************************************************************/
97 #if defined(CONFIG_PCMCIA_PXA2XX) || defined(CONFIG_PCMCIA_PXA2XX_MODULE)
98 static unsigned long balloon3_cf_pin_config
[] __initdata
= {
111 static void __init
balloon3_cf_init(void)
113 if (!balloon3_has(BALLOON3_FEATURE_CF
))
116 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_cf_pin_config
));
119 static inline void balloon3_cf_init(void) {}
122 /******************************************************************************
124 ******************************************************************************/
125 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
126 static struct mtd_partition balloon3_nor_partitions
[] = {
129 .offset
= 0x00000000,
130 .size
= MTDPART_SIZ_FULL
,
134 static struct physmap_flash_data balloon3_flash_data
[] = {
136 .width
= 2, /* bankwidth in bytes */
137 .parts
= balloon3_nor_partitions
,
138 .nr_parts
= ARRAY_SIZE(balloon3_nor_partitions
)
142 static struct resource balloon3_flash_resource
= {
143 .start
= PXA_CS0_PHYS
,
144 .end
= PXA_CS0_PHYS
+ SZ_64M
- 1,
145 .flags
= IORESOURCE_MEM
,
148 static struct platform_device balloon3_flash
= {
149 .name
= "physmap-flash",
151 .resource
= &balloon3_flash_resource
,
154 .platform_data
= balloon3_flash_data
,
157 static void __init
balloon3_nor_init(void)
159 platform_device_register(&balloon3_flash
);
162 static inline void balloon3_nor_init(void) {}
165 /******************************************************************************
166 * Audio and Touchscreen
167 ******************************************************************************/
168 #if defined(CONFIG_TOUCHSCREEN_UCB1400) || \
169 defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE)
170 static unsigned long balloon3_ac97_pin_config
[] __initdata
= {
172 GPIO29_AC97_SDATA_IN_0
,
173 GPIO30_AC97_SDATA_OUT
,
179 static struct ucb1400_pdata vpac270_ucb1400_pdata
= {
180 .irq
= PXA_GPIO_TO_IRQ(BALLOON3_GPIO_CODEC_IRQ
),
184 static struct platform_device balloon3_ucb1400_device
= {
185 .name
= "ucb1400_core",
188 .platform_data
= &vpac270_ucb1400_pdata
,
192 static void __init
balloon3_ts_init(void)
194 if (!balloon3_has(BALLOON3_FEATURE_AUDIO
))
197 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_ac97_pin_config
));
198 pxa_set_ac97_info(NULL
);
199 platform_device_register(&balloon3_ucb1400_device
);
202 static inline void balloon3_ts_init(void) {}
205 /******************************************************************************
207 ******************************************************************************/
208 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
209 static unsigned long balloon3_lcd_pin_config
[] __initdata
= {
210 GPIOxx_LCD_TFT_16BPP
,
214 static struct pxafb_mode_info balloon3_lcd_modes
[] = {
230 static struct pxafb_mach_info balloon3_lcd_screen
= {
231 .modes
= balloon3_lcd_modes
,
232 .num_modes
= ARRAY_SIZE(balloon3_lcd_modes
),
233 .lcd_conn
= LCD_COLOR_TFT_16BPP
| LCD_PCLK_EDGE_FALL
,
236 static void balloon3_backlight_power(int on
)
238 gpio_set_value(BALLOON3_GPIO_RUN_BACKLIGHT
, on
);
241 static void __init
balloon3_lcd_init(void)
245 if (!balloon3_has(BALLOON3_FEATURE_TOPPOLY
))
248 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config
));
250 ret
= gpio_request(BALLOON3_GPIO_RUN_BACKLIGHT
, "BKL-ON");
252 pr_err("Requesting BKL-ON GPIO failed!\n");
256 ret
= gpio_direction_output(BALLOON3_GPIO_RUN_BACKLIGHT
, 1);
258 pr_err("Setting BKL-ON GPIO direction failed!\n");
262 balloon3_lcd_screen
.pxafb_backlight_power
= balloon3_backlight_power
;
263 pxa_set_fb_info(NULL
, &balloon3_lcd_screen
);
267 gpio_free(BALLOON3_GPIO_RUN_BACKLIGHT
);
272 static inline void balloon3_lcd_init(void) {}
275 /******************************************************************************
276 * SD/MMC card controller
277 ******************************************************************************/
278 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
279 static unsigned long balloon3_mmc_pin_config
[] __initdata
= {
288 static struct pxamci_platform_data balloon3_mci_platform_data
= {
289 .ocr_mask
= MMC_VDD_32_33
| MMC_VDD_33_34
,
290 .detect_delay_ms
= 200,
293 static void __init
balloon3_mmc_init(void)
295 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_mmc_pin_config
));
296 pxa_set_mci_info(&balloon3_mci_platform_data
);
299 static inline void balloon3_mmc_init(void) {}
302 /******************************************************************************
304 ******************************************************************************/
305 #if defined(CONFIG_USB_PXA27X)||defined(CONFIG_USB_PXA27X_MODULE)
306 static void balloon3_udc_command(int cmd
)
308 if (cmd
== PXA2XX_UDC_CMD_CONNECT
)
309 UP2OCR
|= UP2OCR_DPPUE
| UP2OCR_DPPUBE
;
310 else if (cmd
== PXA2XX_UDC_CMD_DISCONNECT
)
311 UP2OCR
&= ~UP2OCR_DPPUE
;
314 static int balloon3_udc_is_connected(void)
319 static struct pxa2xx_udc_mach_info balloon3_udc_info __initdata
= {
320 .udc_command
= balloon3_udc_command
,
321 .udc_is_connected
= balloon3_udc_is_connected
,
325 static void __init
balloon3_udc_init(void)
327 pxa_set_udc_info(&balloon3_udc_info
);
330 static inline void balloon3_udc_init(void) {}
333 /******************************************************************************
335 ******************************************************************************/
336 #if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE)
337 static struct pxaficp_platform_data balloon3_ficp_platform_data
= {
338 .transceiver_cap
= IR_FIRMODE
| IR_SIRMODE
| IR_OFF
,
341 static void __init
balloon3_irda_init(void)
343 pxa_set_ficp_info(&balloon3_ficp_platform_data
);
346 static inline void balloon3_irda_init(void) {}
349 /******************************************************************************
351 ******************************************************************************/
352 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
353 static unsigned long balloon3_uhc_pin_config
[] __initdata
= {
358 static struct pxaohci_platform_data balloon3_ohci_info
= {
359 .port_mode
= PMM_PERPORT_MODE
,
360 .flags
= ENABLE_PORT_ALL
| POWER_CONTROL_LOW
| POWER_SENSE_LOW
,
363 static void __init
balloon3_uhc_init(void)
365 if (!balloon3_has(BALLOON3_FEATURE_OHCI
))
367 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_uhc_pin_config
));
368 pxa_set_ohci_info(&balloon3_ohci_info
);
371 static inline void balloon3_uhc_init(void) {}
374 /******************************************************************************
376 ******************************************************************************/
377 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
378 static unsigned long balloon3_led_pin_config
[] __initdata
= {
379 GPIO9_GPIO
, /* NAND activity LED */
380 GPIO10_GPIO
, /* Heartbeat LED */
383 struct gpio_led balloon3_gpio_leds
[] = {
385 .name
= "balloon3:green:idle",
386 .default_trigger
= "heartbeat",
387 .gpio
= BALLOON3_GPIO_LED_IDLE
,
390 .name
= "balloon3:green:nand",
391 .default_trigger
= "nand-disk",
392 .gpio
= BALLOON3_GPIO_LED_NAND
,
397 static struct gpio_led_platform_data balloon3_gpio_led_info
= {
398 .leds
= balloon3_gpio_leds
,
399 .num_leds
= ARRAY_SIZE(balloon3_gpio_leds
),
402 static struct platform_device balloon3_leds
= {
406 .platform_data
= &balloon3_gpio_led_info
,
410 struct gpio_led balloon3_pcf_gpio_leds
[] = {
412 .name
= "balloon3:green:led0",
413 .gpio
= BALLOON3_PCF_GPIO_LED0
,
416 .name
= "balloon3:green:led1",
417 .gpio
= BALLOON3_PCF_GPIO_LED1
,
420 .name
= "balloon3:orange:led2",
421 .gpio
= BALLOON3_PCF_GPIO_LED2
,
424 .name
= "balloon3:orange:led3",
425 .gpio
= BALLOON3_PCF_GPIO_LED3
,
428 .name
= "balloon3:orange:led4",
429 .gpio
= BALLOON3_PCF_GPIO_LED4
,
432 .name
= "balloon3:orange:led5",
433 .gpio
= BALLOON3_PCF_GPIO_LED5
,
436 .name
= "balloon3:red:led6",
437 .gpio
= BALLOON3_PCF_GPIO_LED6
,
440 .name
= "balloon3:red:led7",
441 .gpio
= BALLOON3_PCF_GPIO_LED7
,
446 static struct gpio_led_platform_data balloon3_pcf_gpio_led_info
= {
447 .leds
= balloon3_pcf_gpio_leds
,
448 .num_leds
= ARRAY_SIZE(balloon3_pcf_gpio_leds
),
451 static struct platform_device balloon3_pcf_leds
= {
455 .platform_data
= &balloon3_pcf_gpio_led_info
,
459 static void __init
balloon3_leds_init(void)
461 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_led_pin_config
));
462 platform_device_register(&balloon3_leds
);
463 platform_device_register(&balloon3_pcf_leds
);
466 static inline void balloon3_leds_init(void) {}
469 /******************************************************************************
471 ******************************************************************************/
472 static void balloon3_mask_irq(struct irq_data
*d
)
474 int balloon3_irq
= (d
->irq
- BALLOON3_IRQ(0));
475 balloon3_irq_enabled
&= ~(1 << balloon3_irq
);
476 __raw_writel(~balloon3_irq_enabled
, BALLOON3_INT_CONTROL_REG
);
479 static void balloon3_unmask_irq(struct irq_data
*d
)
481 int balloon3_irq
= (d
->irq
- BALLOON3_IRQ(0));
482 balloon3_irq_enabled
|= (1 << balloon3_irq
);
483 __raw_writel(~balloon3_irq_enabled
, BALLOON3_INT_CONTROL_REG
);
486 static struct irq_chip balloon3_irq_chip
= {
488 .irq_ack
= balloon3_mask_irq
,
489 .irq_mask
= balloon3_mask_irq
,
490 .irq_unmask
= balloon3_unmask_irq
,
493 static void balloon3_irq_handler(struct irq_desc
*desc
)
495 unsigned long pending
= __raw_readl(BALLOON3_INT_CONTROL_REG
) &
496 balloon3_irq_enabled
;
498 struct irq_data
*d
= irq_desc_get_irq_data(desc
);
499 struct irq_chip
*chip
= irq_desc_get_chip(desc
);
502 /* clear useless edge notification */
507 irq
= BALLOON3_IRQ(0) + __ffs(pending
);
508 generic_handle_irq(irq
);
509 pending
&= pending
- 1;
511 pending
= __raw_readl(BALLOON3_INT_CONTROL_REG
) &
512 balloon3_irq_enabled
;
516 static void __init
balloon3_init_irq(void)
521 /* setup extra Balloon3 irqs */
522 for (irq
= BALLOON3_IRQ(0); irq
<= BALLOON3_IRQ(7); irq
++) {
523 irq_set_chip_and_handler(irq
, &balloon3_irq_chip
,
525 irq_clear_status_flags(irq
, IRQ_NOREQUEST
| IRQ_NOPROBE
);
528 irq_set_chained_handler(BALLOON3_AUX_NIRQ
, balloon3_irq_handler
);
529 irq_set_irq_type(BALLOON3_AUX_NIRQ
, IRQ_TYPE_EDGE_FALLING
);
531 pr_debug("%s: chained handler installed - irq %d automatically "
532 "enabled\n", __func__
, BALLOON3_AUX_NIRQ
);
535 /******************************************************************************
537 ******************************************************************************/
538 #if defined(CONFIG_GPIO_PCF857X) || defined(CONFIG_GPIO_PCF857X_MODULE)
539 static struct pcf857x_platform_data balloon3_pcf857x_pdata
= {
540 .gpio_base
= BALLOON3_PCF_GPIO_BASE
,
547 static struct i2c_board_info __initdata balloon3_i2c_devs
[] = {
549 I2C_BOARD_INFO("pcf8574a", 0x38),
550 .platform_data
= &balloon3_pcf857x_pdata
,
554 static void __init
balloon3_i2c_init(void)
556 pxa_set_i2c_info(NULL
);
557 i2c_register_board_info(0, ARRAY_AND_SIZE(balloon3_i2c_devs
));
560 static inline void balloon3_i2c_init(void) {}
563 /******************************************************************************
565 ******************************************************************************/
566 #if defined(CONFIG_MTD_NAND_PLATFORM)||defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
567 static void balloon3_nand_cmd_ctl(struct nand_chip
*this, int cmd
,
570 uint8_t balloon3_ctl_set
= 0, balloon3_ctl_clr
= 0;
572 if (ctrl
& NAND_CTRL_CHANGE
) {
574 balloon3_ctl_set
|= BALLOON3_NAND_CONTROL_FLCLE
;
576 balloon3_ctl_clr
|= BALLOON3_NAND_CONTROL_FLCLE
;
579 balloon3_ctl_set
|= BALLOON3_NAND_CONTROL_FLALE
;
581 balloon3_ctl_clr
|= BALLOON3_NAND_CONTROL_FLALE
;
583 if (balloon3_ctl_clr
)
584 __raw_writel(balloon3_ctl_clr
,
585 BALLOON3_NAND_CONTROL_REG
);
586 if (balloon3_ctl_set
)
587 __raw_writel(balloon3_ctl_set
,
588 BALLOON3_NAND_CONTROL_REG
+
589 BALLOON3_FPGA_SETnCLR
);
592 if (cmd
!= NAND_CMD_NONE
)
593 writeb(cmd
, this->legacy
.IO_ADDR_W
);
596 static void balloon3_nand_select_chip(struct nand_chip
*this, int chip
)
598 if (chip
< 0 || chip
> 3)
601 /* Assert all nCE lines */
603 BALLOON3_NAND_CONTROL_FLCE0
| BALLOON3_NAND_CONTROL_FLCE1
|
604 BALLOON3_NAND_CONTROL_FLCE2
| BALLOON3_NAND_CONTROL_FLCE3
,
605 BALLOON3_NAND_CONTROL_REG
+ BALLOON3_FPGA_SETnCLR
);
607 /* Deassert correct nCE line */
608 __raw_writew(BALLOON3_NAND_CONTROL_FLCE0
<< chip
,
609 BALLOON3_NAND_CONTROL_REG
);
612 static int balloon3_nand_dev_ready(struct nand_chip
*this)
614 return __raw_readl(BALLOON3_NAND_STAT_REG
) & BALLOON3_NAND_STAT_RNB
;
617 static int balloon3_nand_probe(struct platform_device
*pdev
)
622 __raw_writew(BALLOON3_NAND_CONTROL2_16BIT
,
623 BALLOON3_NAND_CONTROL2_REG
+ BALLOON3_FPGA_SETnCLR
);
625 ver
= __raw_readw(BALLOON3_FPGA_VER
);
627 pr_warn("The FPGA code, version 0x%04x, is too old. "
628 "NAND support might be broken in this version!", ver
);
630 /* Power up the NAND chips */
631 ret
= gpio_request(BALLOON3_GPIO_RUN_NAND
, "NAND");
635 ret
= gpio_direction_output(BALLOON3_GPIO_RUN_NAND
, 1);
639 gpio_set_value(BALLOON3_GPIO_RUN_NAND
, 1);
641 /* Deassert all nCE lines and write protect line */
643 BALLOON3_NAND_CONTROL_FLCE0
| BALLOON3_NAND_CONTROL_FLCE1
|
644 BALLOON3_NAND_CONTROL_FLCE2
| BALLOON3_NAND_CONTROL_FLCE3
|
645 BALLOON3_NAND_CONTROL_FLWP
,
646 BALLOON3_NAND_CONTROL_REG
+ BALLOON3_FPGA_SETnCLR
);
650 gpio_free(BALLOON3_GPIO_RUN_NAND
);
655 static void balloon3_nand_remove(struct platform_device
*pdev
)
657 /* Power down the NAND chips */
658 gpio_set_value(BALLOON3_GPIO_RUN_NAND
, 0);
659 gpio_free(BALLOON3_GPIO_RUN_NAND
);
662 static struct mtd_partition balloon3_partition_info
[] = {
670 .offset
= MTDPART_OFS_APPEND
,
671 .size
= MTDPART_SIZ_FULL
675 struct platform_nand_data balloon3_nand_pdata
= {
679 .nr_partitions
= ARRAY_SIZE(balloon3_partition_info
),
680 .partitions
= balloon3_partition_info
,
684 .dev_ready
= balloon3_nand_dev_ready
,
685 .select_chip
= balloon3_nand_select_chip
,
686 .cmd_ctrl
= balloon3_nand_cmd_ctl
,
687 .probe
= balloon3_nand_probe
,
688 .remove
= balloon3_nand_remove
,
692 static struct resource balloon3_nand_resource
[] = {
694 .start
= BALLOON3_NAND_BASE
,
695 .end
= BALLOON3_NAND_BASE
+ 0x4,
696 .flags
= IORESOURCE_MEM
,
700 static struct platform_device balloon3_nand
= {
702 .num_resources
= ARRAY_SIZE(balloon3_nand_resource
),
703 .resource
= balloon3_nand_resource
,
706 .platform_data
= &balloon3_nand_pdata
,
710 static void __init
balloon3_nand_init(void)
712 platform_device_register(&balloon3_nand
);
715 static inline void balloon3_nand_init(void) {}
718 /******************************************************************************
719 * Core power regulator
720 ******************************************************************************/
721 #if defined(CONFIG_REGULATOR_MAX1586) || \
722 defined(CONFIG_REGULATOR_MAX1586_MODULE)
723 static struct regulator_consumer_supply balloon3_max1587a_consumers
[] = {
724 REGULATOR_SUPPLY("vcc_core", NULL
),
727 static struct regulator_init_data balloon3_max1587a_v3_info
= {
729 .name
= "vcc_core range",
733 .valid_ops_mask
= REGULATOR_CHANGE_VOLTAGE
,
735 .consumer_supplies
= balloon3_max1587a_consumers
,
736 .num_consumer_supplies
= ARRAY_SIZE(balloon3_max1587a_consumers
),
739 static struct max1586_subdev_data balloon3_max1587a_subdevs
[] = {
743 .platform_data
= &balloon3_max1587a_v3_info
,
747 static struct max1586_platform_data balloon3_max1587a_info
= {
748 .subdevs
= balloon3_max1587a_subdevs
,
749 .num_subdevs
= ARRAY_SIZE(balloon3_max1587a_subdevs
),
750 .v3_gain
= MAX1586_GAIN_R24_3k32
, /* 730..1550 mV */
753 static struct i2c_board_info __initdata balloon3_pi2c_board_info
[] = {
755 I2C_BOARD_INFO("max1586", 0x14),
756 .platform_data
= &balloon3_max1587a_info
,
760 static void __init
balloon3_pmic_init(void)
762 pxa27x_set_i2c_power_info(NULL
);
763 i2c_register_board_info(1, ARRAY_AND_SIZE(balloon3_pi2c_board_info
));
766 static inline void balloon3_pmic_init(void) {}
769 /******************************************************************************
771 ******************************************************************************/
772 static void __init
balloon3_init(void)
774 ARB_CNTRL
= ARB_CORE_PARK
| 0x234;
776 pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_pin_config
));
778 pxa_set_ffuart_info(NULL
);
779 pxa_set_btuart_info(NULL
);
780 pxa_set_stuart_info(NULL
);
783 balloon3_irda_init();
785 balloon3_leds_init();
787 balloon3_nand_init();
789 balloon3_pmic_init();
796 static struct map_desc balloon3_io_desc
[] __initdata
= {
798 .virtual = (unsigned long)BALLOON3_FPGA_VIRT
,
799 .pfn
= __phys_to_pfn(BALLOON3_FPGA_PHYS
),
800 .length
= BALLOON3_FPGA_LENGTH
,
805 static void __init
balloon3_map_io(void)
808 iotable_init(balloon3_io_desc
, ARRAY_SIZE(balloon3_io_desc
));
811 MACHINE_START(BALLOON3
, "Balloon3")
812 /* Maintainer: Nick Bane. */
813 .map_io
= balloon3_map_io
,
814 .nr_irqs
= BALLOON3_NR_IRQS
,
815 .init_irq
= balloon3_init_irq
,
816 .handle_irq
= pxa27x_handle_irq
,
817 .init_time
= pxa_timer_init
,
818 .init_machine
= balloon3_init
,
819 .atag_offset
= 0x100,
820 .restart
= pxa_restart
,