2007-09-11 20:13:17 -06:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-pxa/zylonite.c
|
|
|
|
*
|
|
|
|
* Support for the PXA3xx Development Platform (aka Zylonite)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Marvell International Ltd.
|
|
|
|
*
|
2007-10-30 01:01:38 -06:00
|
|
|
* 2007-09-04: eric miao <eric.miao@marvell.com>
|
2007-09-11 20:13:17 -06:00
|
|
|
* rewrite to align with latest kernel
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/platform_device.h>
|
2008-11-24 20:03:03 -07:00
|
|
|
#include <linux/gpio.h>
|
2008-04-13 14:46:34 -06:00
|
|
|
#include <linux/pwm_backlight.h>
|
2008-06-24 02:47:37 -06:00
|
|
|
#include <linux/smc91x.h>
|
2007-09-11 20:13:17 -06:00
|
|
|
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
2011-05-18 07:19:04 -06:00
|
|
|
#include <mach/pxa3xx.h>
|
2008-08-05 09:14:15 -06:00
|
|
|
#include <mach/audio.h>
|
2012-08-24 07:16:48 -06:00
|
|
|
#include <linux/platform_data/video-pxafb.h>
|
2008-08-05 09:14:15 -06:00
|
|
|
#include <mach/zylonite.h>
|
2012-08-24 07:16:48 -06:00
|
|
|
#include <linux/platform_data/mmc-pxamci.h>
|
|
|
|
#include <linux/platform_data/usb-ohci-pxa27x.h>
|
|
|
|
#include <linux/platform_data/keypad-pxa27x.h>
|
|
|
|
#include <linux/platform_data/mtd-nand-pxa3xx.h>
|
2007-09-11 20:13:17 -06:00
|
|
|
|
2008-04-13 14:46:34 -06:00
|
|
|
#include "devices.h"
|
2007-09-11 20:13:17 -06:00
|
|
|
#include "generic.h"
|
|
|
|
|
|
|
|
int gpio_eth_irq;
|
2008-06-17 05:03:54 -06:00
|
|
|
int gpio_debug_led1;
|
|
|
|
int gpio_debug_led2;
|
2007-09-11 20:13:17 -06:00
|
|
|
|
2008-04-15 08:50:49 -06:00
|
|
|
int wm9713_irq;
|
|
|
|
|
2007-09-11 20:13:17 -06:00
|
|
|
int lcd_id;
|
|
|
|
int lcd_orientation;
|
|
|
|
|
2010-03-17 14:15:21 -06:00
|
|
|
struct platform_device pxa_device_wm9713_audio = {
|
|
|
|
.name = "wm9713-codec",
|
|
|
|
.id = -1,
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_wm9713_audio(void)
|
|
|
|
{
|
|
|
|
platform_device_register(&pxa_device_wm9713_audio);
|
|
|
|
}
|
|
|
|
|
2007-09-11 20:13:17 -06:00
|
|
|
static struct resource smc91x_resources[] = {
|
|
|
|
[0] = {
|
|
|
|
.start = ZYLONITE_ETH_PHYS + 0x300,
|
|
|
|
.end = ZYLONITE_ETH_PHYS + 0xfffff,
|
|
|
|
.flags = IORESOURCE_MEM,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.start = -1, /* for run-time assignment */
|
|
|
|
.end = -1,
|
2008-01-14 15:30:10 -07:00
|
|
|
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
|
2007-09-11 20:13:17 -06:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2008-06-24 02:47:37 -06:00
|
|
|
static struct smc91x_platdata zylonite_smc91x_info = {
|
|
|
|
.flags = SMC91X_USE_8BIT | SMC91X_USE_16BIT |
|
|
|
|
SMC91X_NOWAIT | SMC91X_USE_DMA,
|
|
|
|
};
|
|
|
|
|
2007-09-11 20:13:17 -06:00
|
|
|
static struct platform_device smc91x_device = {
|
|
|
|
.name = "smc91x",
|
|
|
|
.id = 0,
|
|
|
|
.num_resources = ARRAY_SIZE(smc91x_resources),
|
|
|
|
.resource = smc91x_resources,
|
2008-06-24 02:47:37 -06:00
|
|
|
.dev = {
|
|
|
|
.platform_data = &zylonite_smc91x_info,
|
|
|
|
},
|
2007-09-11 20:13:17 -06:00
|
|
|
};
|
|
|
|
|
2008-06-17 05:03:54 -06:00
|
|
|
#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
|
|
|
|
static struct gpio_led zylonite_debug_leds[] = {
|
|
|
|
[0] = {
|
|
|
|
.name = "zylonite:yellow:1",
|
|
|
|
.default_trigger = "heartbeat",
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.name = "zylonite:yellow:2",
|
|
|
|
.default_trigger = "default-on",
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct gpio_led_platform_data zylonite_debug_leds_info = {
|
|
|
|
.leds = zylonite_debug_leds,
|
|
|
|
.num_leds = ARRAY_SIZE(zylonite_debug_leds),
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct platform_device zylonite_device_leds = {
|
|
|
|
.name = "leds-gpio",
|
|
|
|
.id = -1,
|
|
|
|
.dev = {
|
|
|
|
.platform_data = &zylonite_debug_leds_info,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_leds(void)
|
|
|
|
{
|
|
|
|
zylonite_debug_leds[0].gpio = gpio_debug_led1;
|
|
|
|
zylonite_debug_leds[1].gpio = gpio_debug_led2;
|
|
|
|
|
|
|
|
platform_device_register(&zylonite_device_leds);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_leds(void) {}
|
|
|
|
#endif
|
|
|
|
|
2008-02-26 18:00:26 -07:00
|
|
|
#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
|
2008-04-13 14:46:34 -06:00
|
|
|
static struct platform_pwm_backlight_data zylonite_backlight_data = {
|
|
|
|
.pwm_id = 3,
|
|
|
|
.max_brightness = 100,
|
|
|
|
.dft_brightness = 100,
|
|
|
|
.pwm_period_ns = 10000,
|
2013-08-30 04:15:24 -06:00
|
|
|
.enable_gpio = -1,
|
2008-04-13 14:46:34 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct platform_device zylonite_backlight_device = {
|
|
|
|
.name = "pwm-backlight",
|
|
|
|
.dev = {
|
|
|
|
.parent = &pxa27x_device_pwm1.dev,
|
|
|
|
.platform_data = &zylonite_backlight_data,
|
|
|
|
},
|
|
|
|
};
|
2007-09-11 20:13:17 -06:00
|
|
|
|
|
|
|
static struct pxafb_mode_info toshiba_ltm035a776c_mode = {
|
|
|
|
.pixclock = 110000,
|
|
|
|
.xres = 240,
|
|
|
|
.yres = 320,
|
|
|
|
.bpp = 16,
|
|
|
|
.hsync_len = 4,
|
|
|
|
.left_margin = 6,
|
|
|
|
.right_margin = 4,
|
|
|
|
.vsync_len = 2,
|
|
|
|
.upper_margin = 2,
|
|
|
|
.lower_margin = 3,
|
|
|
|
.sync = FB_SYNC_VERT_HIGH_ACT,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxafb_mode_info toshiba_ltm04c380k_mode = {
|
|
|
|
.pixclock = 50000,
|
|
|
|
.xres = 640,
|
|
|
|
.yres = 480,
|
|
|
|
.bpp = 16,
|
|
|
|
.hsync_len = 1,
|
|
|
|
.left_margin = 0x9f,
|
|
|
|
.right_margin = 1,
|
|
|
|
.vsync_len = 44,
|
|
|
|
.upper_margin = 0,
|
|
|
|
.lower_margin = 0,
|
|
|
|
.sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxafb_mach_info zylonite_toshiba_lcd_info = {
|
|
|
|
.num_modes = 1,
|
2008-04-30 01:52:23 -06:00
|
|
|
.lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL,
|
2007-09-11 20:13:17 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxafb_mode_info sharp_ls037_modes[] = {
|
|
|
|
[0] = {
|
|
|
|
.pixclock = 158000,
|
|
|
|
.xres = 240,
|
|
|
|
.yres = 320,
|
|
|
|
.bpp = 16,
|
|
|
|
.hsync_len = 4,
|
|
|
|
.left_margin = 39,
|
|
|
|
.right_margin = 39,
|
|
|
|
.vsync_len = 1,
|
|
|
|
.upper_margin = 2,
|
|
|
|
.lower_margin = 3,
|
|
|
|
.sync = 0,
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.pixclock = 39700,
|
|
|
|
.xres = 480,
|
|
|
|
.yres = 640,
|
|
|
|
.bpp = 16,
|
|
|
|
.hsync_len = 8,
|
|
|
|
.left_margin = 81,
|
|
|
|
.right_margin = 81,
|
|
|
|
.vsync_len = 1,
|
|
|
|
.upper_margin = 2,
|
|
|
|
.lower_margin = 7,
|
|
|
|
.sync = 0,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxafb_mach_info zylonite_sharp_lcd_info = {
|
|
|
|
.modes = sharp_ls037_modes,
|
|
|
|
.num_modes = 2,
|
2008-04-30 01:52:23 -06:00
|
|
|
.lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL,
|
2007-09-11 20:13:17 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_lcd(void)
|
|
|
|
{
|
2008-04-13 14:46:34 -06:00
|
|
|
platform_device_register(&zylonite_backlight_device);
|
2007-09-11 20:13:17 -06:00
|
|
|
|
|
|
|
if (lcd_id & 0x20) {
|
2011-02-15 00:37:30 -07:00
|
|
|
pxa_set_fb_info(NULL, &zylonite_sharp_lcd_info);
|
2007-09-11 20:13:17 -06:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* legacy LCD panels, it would be handy here if LCD panel type can
|
|
|
|
* be decided at run-time
|
|
|
|
*/
|
|
|
|
if (1)
|
|
|
|
zylonite_toshiba_lcd_info.modes = &toshiba_ltm035a776c_mode;
|
|
|
|
else
|
|
|
|
zylonite_toshiba_lcd_info.modes = &toshiba_ltm04c380k_mode;
|
|
|
|
|
2011-02-15 00:37:30 -07:00
|
|
|
pxa_set_fb_info(NULL, &zylonite_toshiba_lcd_info);
|
2007-09-11 20:13:17 -06:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_lcd(void) {}
|
|
|
|
#endif
|
|
|
|
|
2007-12-21 04:00:13 -07:00
|
|
|
#if defined(CONFIG_MMC)
|
|
|
|
static struct pxamci_platform_data zylonite_mci_platform_data = {
|
2010-04-13 17:00:42 -06:00
|
|
|
.detect_delay_ms= 200,
|
2007-12-21 04:00:13 -07:00
|
|
|
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
|
2009-12-22 05:29:40 -07:00
|
|
|
.gpio_card_detect = EXT_GPIO(0),
|
|
|
|
.gpio_card_ro = EXT_GPIO(2),
|
2009-07-06 14:16:42 -06:00
|
|
|
.gpio_power = -1,
|
2007-12-21 04:00:13 -07:00
|
|
|
};
|
|
|
|
|
2007-12-21 04:15:36 -07:00
|
|
|
static struct pxamci_platform_data zylonite_mci2_platform_data = {
|
2010-04-13 17:00:42 -06:00
|
|
|
.detect_delay_ms= 200,
|
2007-12-21 04:15:36 -07:00
|
|
|
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
|
2009-12-22 05:29:40 -07:00
|
|
|
.gpio_card_detect = EXT_GPIO(1),
|
|
|
|
.gpio_card_ro = EXT_GPIO(3),
|
|
|
|
.gpio_power = -1,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxamci_platform_data zylonite_mci3_platform_data = {
|
2010-04-13 17:00:42 -06:00
|
|
|
.detect_delay_ms= 200,
|
2009-12-22 05:29:40 -07:00
|
|
|
.ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
|
|
|
|
.gpio_card_detect = EXT_GPIO(30),
|
|
|
|
.gpio_card_ro = EXT_GPIO(31),
|
|
|
|
.gpio_power = -1,
|
2007-12-21 04:15:36 -07:00
|
|
|
};
|
|
|
|
|
2007-12-21 04:00:13 -07:00
|
|
|
static void __init zylonite_init_mmc(void)
|
|
|
|
{
|
|
|
|
pxa_set_mci_info(&zylonite_mci_platform_data);
|
2007-12-21 04:15:36 -07:00
|
|
|
pxa3xx_set_mci2_info(&zylonite_mci2_platform_data);
|
2007-12-21 04:27:08 -07:00
|
|
|
if (cpu_is_pxa310())
|
2009-12-22 05:29:40 -07:00
|
|
|
pxa3xx_set_mci3_info(&zylonite_mci3_platform_data);
|
2007-12-21 04:00:13 -07:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_mmc(void) {}
|
|
|
|
#endif
|
|
|
|
|
2008-06-01 23:32:42 -06:00
|
|
|
#if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
|
2013-05-05 21:24:58 -06:00
|
|
|
static const unsigned int zylonite_matrix_key_map[] = {
|
2008-01-22 23:25:50 -07:00
|
|
|
/* KEY(row, col, key_code) */
|
|
|
|
KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_C), KEY(0, 5, KEY_D),
|
|
|
|
KEY(1, 0, KEY_E), KEY(1, 1, KEY_F), KEY(1, 2, KEY_G), KEY(1, 5, KEY_H),
|
|
|
|
KEY(2, 0, KEY_I), KEY(2, 1, KEY_J), KEY(2, 2, KEY_K), KEY(2, 5, KEY_L),
|
|
|
|
KEY(3, 0, KEY_M), KEY(3, 1, KEY_N), KEY(3, 2, KEY_O), KEY(3, 5, KEY_P),
|
|
|
|
KEY(5, 0, KEY_Q), KEY(5, 1, KEY_R), KEY(5, 2, KEY_S), KEY(5, 5, KEY_T),
|
|
|
|
KEY(6, 0, KEY_U), KEY(6, 1, KEY_V), KEY(6, 2, KEY_W), KEY(6, 5, KEY_X),
|
|
|
|
KEY(7, 1, KEY_Y), KEY(7, 2, KEY_Z),
|
|
|
|
|
|
|
|
KEY(4, 4, KEY_0), KEY(1, 3, KEY_1), KEY(4, 1, KEY_2), KEY(1, 4, KEY_3),
|
|
|
|
KEY(2, 3, KEY_4), KEY(4, 2, KEY_5), KEY(2, 4, KEY_6), KEY(3, 3, KEY_7),
|
|
|
|
KEY(4, 3, KEY_8), KEY(3, 4, KEY_9),
|
|
|
|
|
|
|
|
KEY(4, 5, KEY_SPACE),
|
|
|
|
KEY(5, 3, KEY_KPASTERISK), /* * */
|
|
|
|
KEY(5, 4, KEY_KPDOT), /* #" */
|
|
|
|
|
|
|
|
KEY(0, 7, KEY_UP),
|
|
|
|
KEY(1, 7, KEY_DOWN),
|
|
|
|
KEY(2, 7, KEY_LEFT),
|
|
|
|
KEY(3, 7, KEY_RIGHT),
|
|
|
|
KEY(2, 6, KEY_HOME),
|
|
|
|
KEY(3, 6, KEY_END),
|
|
|
|
KEY(6, 4, KEY_DELETE),
|
|
|
|
KEY(6, 6, KEY_BACK),
|
|
|
|
KEY(6, 3, KEY_CAPSLOCK), /* KEY_LEFTSHIFT), */
|
|
|
|
|
|
|
|
KEY(4, 6, KEY_ENTER), /* scroll push */
|
|
|
|
KEY(5, 7, KEY_ENTER), /* keypad action */
|
|
|
|
|
|
|
|
KEY(0, 4, KEY_EMAIL),
|
|
|
|
KEY(5, 6, KEY_SEND),
|
|
|
|
KEY(4, 0, KEY_CALENDAR),
|
|
|
|
KEY(7, 6, KEY_RECORD),
|
|
|
|
KEY(6, 7, KEY_VOLUMEUP),
|
|
|
|
KEY(7, 7, KEY_VOLUMEDOWN),
|
|
|
|
|
|
|
|
KEY(0, 6, KEY_F22), /* soft1 */
|
|
|
|
KEY(1, 6, KEY_F23), /* soft2 */
|
|
|
|
KEY(0, 3, KEY_AUX), /* contact */
|
|
|
|
};
|
|
|
|
|
2013-05-05 21:24:58 -06:00
|
|
|
static struct matrix_keymap_data zylonite_matrix_keymap_data = {
|
|
|
|
.keymap = zylonite_matrix_key_map,
|
|
|
|
.keymap_size = ARRAY_SIZE(zylonite_matrix_key_map),
|
|
|
|
};
|
|
|
|
|
2008-01-22 23:25:50 -07:00
|
|
|
static struct pxa27x_keypad_platform_data zylonite_keypad_info = {
|
|
|
|
.matrix_key_rows = 8,
|
|
|
|
.matrix_key_cols = 8,
|
2013-05-05 21:24:58 -06:00
|
|
|
.matrix_keymap_data = &zylonite_matrix_keymap_data,
|
2008-01-22 23:25:50 -07:00
|
|
|
|
|
|
|
.enable_rotary0 = 1,
|
|
|
|
.rotary0_up_key = KEY_UP,
|
|
|
|
.rotary0_down_key = KEY_DOWN,
|
|
|
|
|
|
|
|
.debounce_interval = 30,
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_keypad(void)
|
|
|
|
{
|
|
|
|
pxa_set_keypad_info(&zylonite_keypad_info);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_keypad(void) {}
|
|
|
|
#endif
|
|
|
|
|
2008-06-02 01:37:20 -06:00
|
|
|
#if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
|
|
|
|
static struct mtd_partition zylonite_nand_partitions[] = {
|
|
|
|
[0] = {
|
|
|
|
.name = "Bootloader",
|
|
|
|
.offset = 0,
|
|
|
|
.size = 0x060000,
|
|
|
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
|
|
|
},
|
|
|
|
[1] = {
|
|
|
|
.name = "Kernel",
|
|
|
|
.offset = 0x060000,
|
|
|
|
.size = 0x200000,
|
|
|
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
.name = "Filesystem",
|
|
|
|
.offset = 0x0260000,
|
|
|
|
.size = 0x3000000, /* 48M - rootfs */
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
.name = "MassStorage",
|
|
|
|
.offset = 0x3260000,
|
|
|
|
.size = 0x3d40000,
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
.name = "BBT",
|
|
|
|
.offset = 0x6FA0000,
|
|
|
|
.size = 0x80000,
|
|
|
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
|
|
|
},
|
|
|
|
/* NOTE: we reserve some blocks at the end of the NAND flash for
|
|
|
|
* bad block management, and the max number of relocation blocks
|
|
|
|
* differs on different platforms. Please take care with it when
|
|
|
|
* defining the partition table.
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct pxa3xx_nand_platform_data zylonite_nand_info = {
|
|
|
|
.enable_arbiter = 1,
|
2011-07-14 21:44:33 -06:00
|
|
|
.num_cs = 1,
|
|
|
|
.parts[0] = zylonite_nand_partitions,
|
|
|
|
.nr_parts[0] = ARRAY_SIZE(zylonite_nand_partitions),
|
2008-06-02 01:37:20 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_nand(void)
|
|
|
|
{
|
|
|
|
pxa3xx_set_nand_info(&zylonite_nand_info);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_nand(void) {}
|
|
|
|
#endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */
|
|
|
|
|
2008-09-27 04:05:49 -06:00
|
|
|
#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
|
|
|
|
static struct pxaohci_platform_data zylonite_ohci_info = {
|
|
|
|
.port_mode = PMM_PERPORT_MODE,
|
|
|
|
.flags = ENABLE_PORT1 | ENABLE_PORT2 |
|
|
|
|
POWER_CONTROL_LOW | POWER_SENSE_LOW,
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init zylonite_init_ohci(void)
|
|
|
|
{
|
|
|
|
pxa_set_ohci_info(&zylonite_ohci_info);
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline void zylonite_init_ohci(void) {}
|
|
|
|
#endif /* CONFIG_USB_OHCI_HCD || CONFIG_USB_OHCI_HCD_MODULE */
|
|
|
|
|
2007-09-11 20:13:17 -06:00
|
|
|
static void __init zylonite_init(void)
|
|
|
|
{
|
2009-11-08 22:34:08 -07:00
|
|
|
pxa_set_ffuart_info(NULL);
|
|
|
|
pxa_set_btuart_info(NULL);
|
|
|
|
pxa_set_stuart_info(NULL);
|
|
|
|
|
2007-09-11 20:13:17 -06:00
|
|
|
/* board-processor specific initialization */
|
|
|
|
zylonite_pxa300_init();
|
|
|
|
zylonite_pxa320_init();
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Note: We depend that the bootloader set
|
|
|
|
* the correct value to MSC register for SMC91x.
|
|
|
|
*/
|
2011-10-10 02:03:51 -06:00
|
|
|
smc91x_resources[1].start = PXA_GPIO_TO_IRQ(gpio_eth_irq);
|
|
|
|
smc91x_resources[1].end = PXA_GPIO_TO_IRQ(gpio_eth_irq);
|
2007-09-11 20:13:17 -06:00
|
|
|
platform_device_register(&smc91x_device);
|
|
|
|
|
2008-06-10 03:48:25 -06:00
|
|
|
pxa_set_ac97_info(NULL);
|
2007-09-11 20:13:17 -06:00
|
|
|
zylonite_init_lcd();
|
2007-12-21 04:00:13 -07:00
|
|
|
zylonite_init_mmc();
|
2008-01-22 23:25:50 -07:00
|
|
|
zylonite_init_keypad();
|
2008-06-02 01:37:20 -06:00
|
|
|
zylonite_init_nand();
|
2008-06-17 05:03:54 -06:00
|
|
|
zylonite_init_leds();
|
2008-09-27 04:05:49 -06:00
|
|
|
zylonite_init_ohci();
|
2010-03-17 14:15:21 -06:00
|
|
|
zylonite_init_wm9713_audio();
|
2007-09-11 20:13:17 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)")
|
2011-07-05 20:38:15 -06:00
|
|
|
.atag_offset = 0x100,
|
2010-10-10 18:20:19 -06:00
|
|
|
.map_io = pxa3xx_map_io,
|
2010-08-20 01:23:59 -06:00
|
|
|
.nr_irqs = ZYLONITE_NR_IRQS,
|
2007-09-11 20:13:17 -06:00
|
|
|
.init_irq = pxa3xx_init_irq,
|
2011-05-18 07:30:04 -06:00
|
|
|
.handle_irq = pxa3xx_handle_irq,
|
2012-11-08 12:40:59 -07:00
|
|
|
.init_time = pxa_timer_init,
|
2007-09-11 20:13:17 -06:00
|
|
|
.init_machine = zylonite_init,
|
2011-11-04 08:15:53 -06:00
|
|
|
.restart = pxa_restart,
|
2007-09-11 20:13:17 -06:00
|
|
|
MACHINE_END
|