18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * linux/arch/arm/mach-omap1/board-osk.c 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Board specific init for OMAP5912 OSK 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Written by Dirk Behme <dirk.behme@de.bosch.com> 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it 98c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License as published by the 108c2ecf20Sopenharmony_ci * Free Software Foundation; either version 2 of the License, or (at your 118c2ecf20Sopenharmony_ci * option) any later version. 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 148c2ecf20Sopenharmony_ci * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 158c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 168c2ecf20Sopenharmony_ci * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 178c2ecf20Sopenharmony_ci * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 188c2ecf20Sopenharmony_ci * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 198c2ecf20Sopenharmony_ci * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 208c2ecf20Sopenharmony_ci * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 218c2ecf20Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 228c2ecf20Sopenharmony_ci * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License along 258c2ecf20Sopenharmony_ci * with this program; if not, write to the Free Software Foundation, Inc., 268c2ecf20Sopenharmony_ci * 675 Mass Ave, Cambridge, MA 02139, USA. 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci#include <linux/gpio.h> 298c2ecf20Sopenharmony_ci#include <linux/gpio/machine.h> 308c2ecf20Sopenharmony_ci#include <linux/kernel.h> 318c2ecf20Sopenharmony_ci#include <linux/init.h> 328c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 338c2ecf20Sopenharmony_ci#include <linux/interrupt.h> 348c2ecf20Sopenharmony_ci#include <linux/irq.h> 358c2ecf20Sopenharmony_ci#include <linux/i2c.h> 368c2ecf20Sopenharmony_ci#include <linux/leds.h> 378c2ecf20Sopenharmony_ci#include <linux/smc91x.h> 388c2ecf20Sopenharmony_ci#include <linux/omapfb.h> 398c2ecf20Sopenharmony_ci#include <linux/mtd/mtd.h> 408c2ecf20Sopenharmony_ci#include <linux/mtd/partitions.h> 418c2ecf20Sopenharmony_ci#include <linux/mtd/physmap.h> 428c2ecf20Sopenharmony_ci#include <linux/mfd/tps65010.h> 438c2ecf20Sopenharmony_ci#include <linux/platform_data/gpio-omap.h> 448c2ecf20Sopenharmony_ci#include <linux/platform_data/omap1_bl.h> 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#include <asm/mach-types.h> 478c2ecf20Sopenharmony_ci#include <asm/mach/arch.h> 488c2ecf20Sopenharmony_ci#include <asm/mach/map.h> 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#include "flash.h" 518c2ecf20Sopenharmony_ci#include <mach/mux.h> 528c2ecf20Sopenharmony_ci#include <mach/tc.h> 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#include <mach/hardware.h> 558c2ecf20Sopenharmony_ci#include <mach/usb.h> 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci#include "common.h" 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci/* Name of the GPIO chip used by the OMAP for GPIOs 0..15 */ 608c2ecf20Sopenharmony_ci#define OMAP_GPIO_LABEL "gpio-0-15" 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci/* At OMAP5912 OSK the Ethernet is directly connected to CS1 */ 638c2ecf20Sopenharmony_ci#define OMAP_OSK_ETHR_START 0x04800300 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci/* TPS65010 has four GPIOs. nPG and LED2 can be treated like GPIOs with 668c2ecf20Sopenharmony_ci * alternate pin configurations for hardware-controlled blinking. 678c2ecf20Sopenharmony_ci */ 688c2ecf20Sopenharmony_ci#define OSK_TPS_GPIO_BASE (OMAP_MAX_GPIO_LINES + 16 /* MPUIO */) 698c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_USB_PWR_EN (OSK_TPS_GPIO_BASE + 0) 708c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_LED_D3 (OSK_TPS_GPIO_BASE + 1) 718c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_LAN_RESET (OSK_TPS_GPIO_BASE + 2) 728c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_DSP_PWR_EN (OSK_TPS_GPIO_BASE + 3) 738c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_LED_D9 (OSK_TPS_GPIO_BASE + 4) 748c2ecf20Sopenharmony_ci# define OSK_TPS_GPIO_LED_D2 (OSK_TPS_GPIO_BASE + 5) 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_cistatic struct mtd_partition osk_partitions[] = { 778c2ecf20Sopenharmony_ci /* bootloader (U-Boot, etc) in first sector */ 788c2ecf20Sopenharmony_ci { 798c2ecf20Sopenharmony_ci .name = "bootloader", 808c2ecf20Sopenharmony_ci .offset = 0, 818c2ecf20Sopenharmony_ci .size = SZ_128K, 828c2ecf20Sopenharmony_ci .mask_flags = MTD_WRITEABLE, /* force read-only */ 838c2ecf20Sopenharmony_ci }, 848c2ecf20Sopenharmony_ci /* bootloader params in the next sector */ 858c2ecf20Sopenharmony_ci { 868c2ecf20Sopenharmony_ci .name = "params", 878c2ecf20Sopenharmony_ci .offset = MTDPART_OFS_APPEND, 888c2ecf20Sopenharmony_ci .size = SZ_128K, 898c2ecf20Sopenharmony_ci .mask_flags = 0, 908c2ecf20Sopenharmony_ci }, { 918c2ecf20Sopenharmony_ci .name = "kernel", 928c2ecf20Sopenharmony_ci .offset = MTDPART_OFS_APPEND, 938c2ecf20Sopenharmony_ci .size = SZ_2M, 948c2ecf20Sopenharmony_ci .mask_flags = 0 958c2ecf20Sopenharmony_ci }, { 968c2ecf20Sopenharmony_ci .name = "filesystem", 978c2ecf20Sopenharmony_ci .offset = MTDPART_OFS_APPEND, 988c2ecf20Sopenharmony_ci .size = MTDPART_SIZ_FULL, 998c2ecf20Sopenharmony_ci .mask_flags = 0 1008c2ecf20Sopenharmony_ci } 1018c2ecf20Sopenharmony_ci}; 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_cistatic struct physmap_flash_data osk_flash_data = { 1048c2ecf20Sopenharmony_ci .width = 2, 1058c2ecf20Sopenharmony_ci .set_vpp = omap1_set_vpp, 1068c2ecf20Sopenharmony_ci .parts = osk_partitions, 1078c2ecf20Sopenharmony_ci .nr_parts = ARRAY_SIZE(osk_partitions), 1088c2ecf20Sopenharmony_ci}; 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_cistatic struct resource osk_flash_resource = { 1118c2ecf20Sopenharmony_ci /* this is on CS3, wherever it's mapped */ 1128c2ecf20Sopenharmony_ci .flags = IORESOURCE_MEM, 1138c2ecf20Sopenharmony_ci}; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_cistatic struct platform_device osk5912_flash_device = { 1168c2ecf20Sopenharmony_ci .name = "physmap-flash", 1178c2ecf20Sopenharmony_ci .id = 0, 1188c2ecf20Sopenharmony_ci .dev = { 1198c2ecf20Sopenharmony_ci .platform_data = &osk_flash_data, 1208c2ecf20Sopenharmony_ci }, 1218c2ecf20Sopenharmony_ci .num_resources = 1, 1228c2ecf20Sopenharmony_ci .resource = &osk_flash_resource, 1238c2ecf20Sopenharmony_ci}; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_cistatic struct smc91x_platdata osk5912_smc91x_info = { 1268c2ecf20Sopenharmony_ci .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, 1278c2ecf20Sopenharmony_ci .leda = RPC_LED_100_10, 1288c2ecf20Sopenharmony_ci .ledb = RPC_LED_TX_RX, 1298c2ecf20Sopenharmony_ci}; 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_cistatic struct resource osk5912_smc91x_resources[] = { 1328c2ecf20Sopenharmony_ci [0] = { 1338c2ecf20Sopenharmony_ci .start = OMAP_OSK_ETHR_START, /* Physical */ 1348c2ecf20Sopenharmony_ci .end = OMAP_OSK_ETHR_START + 0xf, 1358c2ecf20Sopenharmony_ci .flags = IORESOURCE_MEM, 1368c2ecf20Sopenharmony_ci }, 1378c2ecf20Sopenharmony_ci [1] = { 1388c2ecf20Sopenharmony_ci .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, 1398c2ecf20Sopenharmony_ci }, 1408c2ecf20Sopenharmony_ci}; 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_cistatic struct platform_device osk5912_smc91x_device = { 1438c2ecf20Sopenharmony_ci .name = "smc91x", 1448c2ecf20Sopenharmony_ci .id = -1, 1458c2ecf20Sopenharmony_ci .dev = { 1468c2ecf20Sopenharmony_ci .platform_data = &osk5912_smc91x_info, 1478c2ecf20Sopenharmony_ci }, 1488c2ecf20Sopenharmony_ci .num_resources = ARRAY_SIZE(osk5912_smc91x_resources), 1498c2ecf20Sopenharmony_ci .resource = osk5912_smc91x_resources, 1508c2ecf20Sopenharmony_ci}; 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_cistatic struct resource osk5912_cf_resources[] = { 1538c2ecf20Sopenharmony_ci [0] = { 1548c2ecf20Sopenharmony_ci .flags = IORESOURCE_IRQ, 1558c2ecf20Sopenharmony_ci }, 1568c2ecf20Sopenharmony_ci}; 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_cistatic struct platform_device osk5912_cf_device = { 1598c2ecf20Sopenharmony_ci .name = "omap_cf", 1608c2ecf20Sopenharmony_ci .id = -1, 1618c2ecf20Sopenharmony_ci .dev = { 1628c2ecf20Sopenharmony_ci .platform_data = (void *) 2 /* CS2 */, 1638c2ecf20Sopenharmony_ci }, 1648c2ecf20Sopenharmony_ci .num_resources = ARRAY_SIZE(osk5912_cf_resources), 1658c2ecf20Sopenharmony_ci .resource = osk5912_cf_resources, 1668c2ecf20Sopenharmony_ci}; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_cistatic struct platform_device *osk5912_devices[] __initdata = { 1698c2ecf20Sopenharmony_ci &osk5912_flash_device, 1708c2ecf20Sopenharmony_ci &osk5912_smc91x_device, 1718c2ecf20Sopenharmony_ci &osk5912_cf_device, 1728c2ecf20Sopenharmony_ci}; 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_cistatic const struct gpio_led tps_leds[] = { 1758c2ecf20Sopenharmony_ci /* NOTE: D9 and D2 have hardware blink support. 1768c2ecf20Sopenharmony_ci * Also, D9 requires non-battery power. 1778c2ecf20Sopenharmony_ci */ 1788c2ecf20Sopenharmony_ci { .gpio = OSK_TPS_GPIO_LED_D9, .name = "d9", 1798c2ecf20Sopenharmony_ci .default_trigger = "disk-activity", }, 1808c2ecf20Sopenharmony_ci { .gpio = OSK_TPS_GPIO_LED_D2, .name = "d2", }, 1818c2ecf20Sopenharmony_ci { .gpio = OSK_TPS_GPIO_LED_D3, .name = "d3", .active_low = 1, 1828c2ecf20Sopenharmony_ci .default_trigger = "heartbeat", }, 1838c2ecf20Sopenharmony_ci}; 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_cistatic struct gpio_led_platform_data tps_leds_data = { 1868c2ecf20Sopenharmony_ci .num_leds = 3, 1878c2ecf20Sopenharmony_ci .leds = tps_leds, 1888c2ecf20Sopenharmony_ci}; 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_cistatic struct platform_device osk5912_tps_leds = { 1918c2ecf20Sopenharmony_ci .name = "leds-gpio", 1928c2ecf20Sopenharmony_ci .id = 0, 1938c2ecf20Sopenharmony_ci .dev.platform_data = &tps_leds_data, 1948c2ecf20Sopenharmony_ci}; 1958c2ecf20Sopenharmony_ci 1968c2ecf20Sopenharmony_cistatic int osk_tps_setup(struct i2c_client *client, void *context) 1978c2ecf20Sopenharmony_ci{ 1988c2ecf20Sopenharmony_ci if (!IS_BUILTIN(CONFIG_TPS65010)) 1998c2ecf20Sopenharmony_ci return -ENOSYS; 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci /* Set GPIO 1 HIGH to disable VBUS power supply; 2028c2ecf20Sopenharmony_ci * OHCI driver powers it up/down as needed. 2038c2ecf20Sopenharmony_ci */ 2048c2ecf20Sopenharmony_ci gpio_request(OSK_TPS_GPIO_USB_PWR_EN, "n_vbus_en"); 2058c2ecf20Sopenharmony_ci gpio_direction_output(OSK_TPS_GPIO_USB_PWR_EN, 1); 2068c2ecf20Sopenharmony_ci /* Free the GPIO again as the driver will request it */ 2078c2ecf20Sopenharmony_ci gpio_free(OSK_TPS_GPIO_USB_PWR_EN); 2088c2ecf20Sopenharmony_ci 2098c2ecf20Sopenharmony_ci /* Set GPIO 2 high so LED D3 is off by default */ 2108c2ecf20Sopenharmony_ci tps65010_set_gpio_out_value(GPIO2, HIGH); 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci /* Set GPIO 3 low to take ethernet out of reset */ 2138c2ecf20Sopenharmony_ci gpio_request(OSK_TPS_GPIO_LAN_RESET, "smc_reset"); 2148c2ecf20Sopenharmony_ci gpio_direction_output(OSK_TPS_GPIO_LAN_RESET, 0); 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci /* GPIO4 is VDD_DSP */ 2178c2ecf20Sopenharmony_ci gpio_request(OSK_TPS_GPIO_DSP_PWR_EN, "dsp_power"); 2188c2ecf20Sopenharmony_ci gpio_direction_output(OSK_TPS_GPIO_DSP_PWR_EN, 1); 2198c2ecf20Sopenharmony_ci /* REVISIT if DSP support isn't configured, power it off ... */ 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci /* Let LED1 (D9) blink; leds-gpio may override it */ 2228c2ecf20Sopenharmony_ci tps65010_set_led(LED1, BLINK); 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_ci /* Set LED2 off by default */ 2258c2ecf20Sopenharmony_ci tps65010_set_led(LED2, OFF); 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci /* Enable LOW_PWR handshake */ 2288c2ecf20Sopenharmony_ci tps65010_set_low_pwr(ON); 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_ci /* Switch VLDO2 to 3.0V for AIC23 */ 2318c2ecf20Sopenharmony_ci tps65010_config_vregs1(TPS_LDO2_ENABLE | TPS_VLDO2_3_0V 2328c2ecf20Sopenharmony_ci | TPS_LDO1_ENABLE); 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ci /* register these three LEDs */ 2358c2ecf20Sopenharmony_ci osk5912_tps_leds.dev.parent = &client->dev; 2368c2ecf20Sopenharmony_ci platform_device_register(&osk5912_tps_leds); 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci return 0; 2398c2ecf20Sopenharmony_ci} 2408c2ecf20Sopenharmony_ci 2418c2ecf20Sopenharmony_cistatic struct tps65010_board tps_board = { 2428c2ecf20Sopenharmony_ci .base = OSK_TPS_GPIO_BASE, 2438c2ecf20Sopenharmony_ci .outmask = 0x0f, 2448c2ecf20Sopenharmony_ci .setup = osk_tps_setup, 2458c2ecf20Sopenharmony_ci}; 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_cistatic struct i2c_board_info __initdata osk_i2c_board_info[] = { 2488c2ecf20Sopenharmony_ci { 2498c2ecf20Sopenharmony_ci /* This device will get the name "i2c-tps65010" */ 2508c2ecf20Sopenharmony_ci I2C_BOARD_INFO("tps65010", 0x48), 2518c2ecf20Sopenharmony_ci .dev_name = "tps65010", 2528c2ecf20Sopenharmony_ci .platform_data = &tps_board, 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci }, 2558c2ecf20Sopenharmony_ci { 2568c2ecf20Sopenharmony_ci I2C_BOARD_INFO("tlv320aic23", 0x1B), 2578c2ecf20Sopenharmony_ci }, 2588c2ecf20Sopenharmony_ci /* TODO when driver support is ready: 2598c2ecf20Sopenharmony_ci * - optionally on Mistral, ov9640 camera sensor at 0x30 2608c2ecf20Sopenharmony_ci */ 2618c2ecf20Sopenharmony_ci}; 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_cistatic void __init osk_init_smc91x(void) 2648c2ecf20Sopenharmony_ci{ 2658c2ecf20Sopenharmony_ci u32 l; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_ci if ((gpio_request(0, "smc_irq")) < 0) { 2688c2ecf20Sopenharmony_ci printk("Error requesting gpio 0 for smc91x irq\n"); 2698c2ecf20Sopenharmony_ci return; 2708c2ecf20Sopenharmony_ci } 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci /* Check EMIFS wait states to fix errors with SMC_GET_PKT_HDR */ 2738c2ecf20Sopenharmony_ci l = omap_readl(EMIFS_CCS(1)); 2748c2ecf20Sopenharmony_ci l |= 0x3; 2758c2ecf20Sopenharmony_ci omap_writel(l, EMIFS_CCS(1)); 2768c2ecf20Sopenharmony_ci} 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_cistatic void __init osk_init_cf(void) 2798c2ecf20Sopenharmony_ci{ 2808c2ecf20Sopenharmony_ci omap_cfg_reg(M7_1610_GPIO62); 2818c2ecf20Sopenharmony_ci if ((gpio_request(62, "cf_irq")) < 0) { 2828c2ecf20Sopenharmony_ci printk("Error requesting gpio 62 for CF irq\n"); 2838c2ecf20Sopenharmony_ci return; 2848c2ecf20Sopenharmony_ci } 2858c2ecf20Sopenharmony_ci /* the CF I/O IRQ is really active-low */ 2868c2ecf20Sopenharmony_ci irq_set_irq_type(gpio_to_irq(62), IRQ_TYPE_EDGE_FALLING); 2878c2ecf20Sopenharmony_ci} 2888c2ecf20Sopenharmony_ci 2898c2ecf20Sopenharmony_cistatic struct gpiod_lookup_table osk_usb_gpio_table = { 2908c2ecf20Sopenharmony_ci .dev_id = "ohci", 2918c2ecf20Sopenharmony_ci .table = { 2928c2ecf20Sopenharmony_ci /* Power GPIO on the I2C-attached TPS65010 */ 2938c2ecf20Sopenharmony_ci GPIO_LOOKUP("tps65010", 0, "power", GPIO_ACTIVE_HIGH), 2948c2ecf20Sopenharmony_ci GPIO_LOOKUP(OMAP_GPIO_LABEL, 9, "overcurrent", 2958c2ecf20Sopenharmony_ci GPIO_ACTIVE_HIGH), 2968c2ecf20Sopenharmony_ci }, 2978c2ecf20Sopenharmony_ci}; 2988c2ecf20Sopenharmony_ci 2998c2ecf20Sopenharmony_cistatic struct omap_usb_config osk_usb_config __initdata = { 3008c2ecf20Sopenharmony_ci /* has usb host connector (A) ... for development it can also 3018c2ecf20Sopenharmony_ci * be used, with a NONSTANDARD gender-bending cable/dongle, as 3028c2ecf20Sopenharmony_ci * a peripheral. 3038c2ecf20Sopenharmony_ci */ 3048c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_USB_OMAP) 3058c2ecf20Sopenharmony_ci .register_dev = 1, 3068c2ecf20Sopenharmony_ci .hmc_mode = 0, 3078c2ecf20Sopenharmony_ci#else 3088c2ecf20Sopenharmony_ci .register_host = 1, 3098c2ecf20Sopenharmony_ci .hmc_mode = 16, 3108c2ecf20Sopenharmony_ci .rwc = 1, 3118c2ecf20Sopenharmony_ci#endif 3128c2ecf20Sopenharmony_ci .pins[0] = 2, 3138c2ecf20Sopenharmony_ci}; 3148c2ecf20Sopenharmony_ci 3158c2ecf20Sopenharmony_ci#ifdef CONFIG_OMAP_OSK_MISTRAL 3168c2ecf20Sopenharmony_cistatic const struct omap_lcd_config osk_lcd_config __initconst = { 3178c2ecf20Sopenharmony_ci .ctrl_name = "internal", 3188c2ecf20Sopenharmony_ci}; 3198c2ecf20Sopenharmony_ci#endif 3208c2ecf20Sopenharmony_ci 3218c2ecf20Sopenharmony_ci#ifdef CONFIG_OMAP_OSK_MISTRAL 3228c2ecf20Sopenharmony_ci 3238c2ecf20Sopenharmony_ci#include <linux/input.h> 3248c2ecf20Sopenharmony_ci#include <linux/property.h> 3258c2ecf20Sopenharmony_ci#include <linux/spi/spi.h> 3268c2ecf20Sopenharmony_ci#include <linux/spi/ads7846.h> 3278c2ecf20Sopenharmony_ci 3288c2ecf20Sopenharmony_ci#include <linux/platform_data/keypad-omap.h> 3298c2ecf20Sopenharmony_ci 3308c2ecf20Sopenharmony_cistatic const struct property_entry mistral_at24_properties[] = { 3318c2ecf20Sopenharmony_ci PROPERTY_ENTRY_U32("pagesize", 16), 3328c2ecf20Sopenharmony_ci { } 3338c2ecf20Sopenharmony_ci}; 3348c2ecf20Sopenharmony_ci 3358c2ecf20Sopenharmony_cistatic struct i2c_board_info __initdata mistral_i2c_board_info[] = { 3368c2ecf20Sopenharmony_ci { 3378c2ecf20Sopenharmony_ci /* NOTE: powered from LCD supply */ 3388c2ecf20Sopenharmony_ci I2C_BOARD_INFO("24c04", 0x50), 3398c2ecf20Sopenharmony_ci .properties = mistral_at24_properties, 3408c2ecf20Sopenharmony_ci }, 3418c2ecf20Sopenharmony_ci /* TODO when driver support is ready: 3428c2ecf20Sopenharmony_ci * - optionally ov9640 camera sensor at 0x30 3438c2ecf20Sopenharmony_ci */ 3448c2ecf20Sopenharmony_ci}; 3458c2ecf20Sopenharmony_ci 3468c2ecf20Sopenharmony_cistatic const unsigned int osk_keymap[] = { 3478c2ecf20Sopenharmony_ci /* KEY(col, row, code) */ 3488c2ecf20Sopenharmony_ci KEY(0, 0, KEY_F1), /* SW4 */ 3498c2ecf20Sopenharmony_ci KEY(3, 0, KEY_UP), /* (sw2/up) */ 3508c2ecf20Sopenharmony_ci KEY(1, 1, KEY_LEFTCTRL), /* SW5 */ 3518c2ecf20Sopenharmony_ci KEY(2, 1, KEY_LEFT), /* (sw2/left) */ 3528c2ecf20Sopenharmony_ci KEY(0, 2, KEY_SPACE), /* SW3 */ 3538c2ecf20Sopenharmony_ci KEY(1, 2, KEY_ESC), /* SW6 */ 3548c2ecf20Sopenharmony_ci KEY(2, 2, KEY_DOWN), /* (sw2/down) */ 3558c2ecf20Sopenharmony_ci KEY(2, 3, KEY_ENTER), /* (sw2/select) */ 3568c2ecf20Sopenharmony_ci KEY(3, 3, KEY_RIGHT), /* (sw2/right) */ 3578c2ecf20Sopenharmony_ci}; 3588c2ecf20Sopenharmony_ci 3598c2ecf20Sopenharmony_cistatic const struct matrix_keymap_data osk_keymap_data = { 3608c2ecf20Sopenharmony_ci .keymap = osk_keymap, 3618c2ecf20Sopenharmony_ci .keymap_size = ARRAY_SIZE(osk_keymap), 3628c2ecf20Sopenharmony_ci}; 3638c2ecf20Sopenharmony_ci 3648c2ecf20Sopenharmony_cistatic struct omap_kp_platform_data osk_kp_data = { 3658c2ecf20Sopenharmony_ci .rows = 8, 3668c2ecf20Sopenharmony_ci .cols = 8, 3678c2ecf20Sopenharmony_ci .keymap_data = &osk_keymap_data, 3688c2ecf20Sopenharmony_ci .delay = 9, 3698c2ecf20Sopenharmony_ci}; 3708c2ecf20Sopenharmony_ci 3718c2ecf20Sopenharmony_cistatic struct resource osk5912_kp_resources[] = { 3728c2ecf20Sopenharmony_ci [0] = { 3738c2ecf20Sopenharmony_ci .start = INT_KEYBOARD, 3748c2ecf20Sopenharmony_ci .end = INT_KEYBOARD, 3758c2ecf20Sopenharmony_ci .flags = IORESOURCE_IRQ, 3768c2ecf20Sopenharmony_ci }, 3778c2ecf20Sopenharmony_ci}; 3788c2ecf20Sopenharmony_ci 3798c2ecf20Sopenharmony_cistatic struct platform_device osk5912_kp_device = { 3808c2ecf20Sopenharmony_ci .name = "omap-keypad", 3818c2ecf20Sopenharmony_ci .id = -1, 3828c2ecf20Sopenharmony_ci .dev = { 3838c2ecf20Sopenharmony_ci .platform_data = &osk_kp_data, 3848c2ecf20Sopenharmony_ci }, 3858c2ecf20Sopenharmony_ci .num_resources = ARRAY_SIZE(osk5912_kp_resources), 3868c2ecf20Sopenharmony_ci .resource = osk5912_kp_resources, 3878c2ecf20Sopenharmony_ci}; 3888c2ecf20Sopenharmony_ci 3898c2ecf20Sopenharmony_cistatic struct omap_backlight_config mistral_bl_data = { 3908c2ecf20Sopenharmony_ci .default_intensity = 0xa0, 3918c2ecf20Sopenharmony_ci}; 3928c2ecf20Sopenharmony_ci 3938c2ecf20Sopenharmony_cistatic struct platform_device mistral_bl_device = { 3948c2ecf20Sopenharmony_ci .name = "omap-bl", 3958c2ecf20Sopenharmony_ci .id = -1, 3968c2ecf20Sopenharmony_ci .dev = { 3978c2ecf20Sopenharmony_ci .platform_data = &mistral_bl_data, 3988c2ecf20Sopenharmony_ci }, 3998c2ecf20Sopenharmony_ci}; 4008c2ecf20Sopenharmony_ci 4018c2ecf20Sopenharmony_cistatic struct platform_device osk5912_lcd_device = { 4028c2ecf20Sopenharmony_ci .name = "lcd_osk", 4038c2ecf20Sopenharmony_ci .id = -1, 4048c2ecf20Sopenharmony_ci}; 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_cistatic const struct gpio_led mistral_gpio_led_pins[] = { 4078c2ecf20Sopenharmony_ci { 4088c2ecf20Sopenharmony_ci .name = "mistral:red", 4098c2ecf20Sopenharmony_ci .default_trigger = "heartbeat", 4108c2ecf20Sopenharmony_ci .gpio = 3, 4118c2ecf20Sopenharmony_ci }, 4128c2ecf20Sopenharmony_ci { 4138c2ecf20Sopenharmony_ci .name = "mistral:green", 4148c2ecf20Sopenharmony_ci .default_trigger = "cpu0", 4158c2ecf20Sopenharmony_ci .gpio = OMAP_MPUIO(4), 4168c2ecf20Sopenharmony_ci }, 4178c2ecf20Sopenharmony_ci}; 4188c2ecf20Sopenharmony_ci 4198c2ecf20Sopenharmony_cistatic struct gpio_led_platform_data mistral_gpio_led_data = { 4208c2ecf20Sopenharmony_ci .leds = mistral_gpio_led_pins, 4218c2ecf20Sopenharmony_ci .num_leds = ARRAY_SIZE(mistral_gpio_led_pins), 4228c2ecf20Sopenharmony_ci}; 4238c2ecf20Sopenharmony_ci 4248c2ecf20Sopenharmony_cistatic struct platform_device mistral_gpio_leds = { 4258c2ecf20Sopenharmony_ci .name = "leds-gpio", 4268c2ecf20Sopenharmony_ci .id = -1, 4278c2ecf20Sopenharmony_ci .dev = { 4288c2ecf20Sopenharmony_ci .platform_data = &mistral_gpio_led_data, 4298c2ecf20Sopenharmony_ci }, 4308c2ecf20Sopenharmony_ci}; 4318c2ecf20Sopenharmony_ci 4328c2ecf20Sopenharmony_cistatic struct platform_device *mistral_devices[] __initdata = { 4338c2ecf20Sopenharmony_ci &osk5912_kp_device, 4348c2ecf20Sopenharmony_ci &mistral_bl_device, 4358c2ecf20Sopenharmony_ci &osk5912_lcd_device, 4368c2ecf20Sopenharmony_ci &mistral_gpio_leds, 4378c2ecf20Sopenharmony_ci}; 4388c2ecf20Sopenharmony_ci 4398c2ecf20Sopenharmony_cistatic int mistral_get_pendown_state(void) 4408c2ecf20Sopenharmony_ci{ 4418c2ecf20Sopenharmony_ci return !gpio_get_value(4); 4428c2ecf20Sopenharmony_ci} 4438c2ecf20Sopenharmony_ci 4448c2ecf20Sopenharmony_cistatic const struct ads7846_platform_data mistral_ts_info = { 4458c2ecf20Sopenharmony_ci .model = 7846, 4468c2ecf20Sopenharmony_ci .vref_delay_usecs = 100, /* internal, no capacitor */ 4478c2ecf20Sopenharmony_ci .x_plate_ohms = 419, 4488c2ecf20Sopenharmony_ci .y_plate_ohms = 486, 4498c2ecf20Sopenharmony_ci .get_pendown_state = mistral_get_pendown_state, 4508c2ecf20Sopenharmony_ci}; 4518c2ecf20Sopenharmony_ci 4528c2ecf20Sopenharmony_cistatic struct spi_board_info __initdata mistral_boardinfo[] = { { 4538c2ecf20Sopenharmony_ci /* MicroWire (bus 2) CS0 has an ads7846e */ 4548c2ecf20Sopenharmony_ci .modalias = "ads7846", 4558c2ecf20Sopenharmony_ci .platform_data = &mistral_ts_info, 4568c2ecf20Sopenharmony_ci .max_speed_hz = 120000 /* max sample rate at 3V */ 4578c2ecf20Sopenharmony_ci * 26 /* command + data + overhead */, 4588c2ecf20Sopenharmony_ci .bus_num = 2, 4598c2ecf20Sopenharmony_ci .chip_select = 0, 4608c2ecf20Sopenharmony_ci} }; 4618c2ecf20Sopenharmony_ci 4628c2ecf20Sopenharmony_cistatic irqreturn_t 4638c2ecf20Sopenharmony_ciosk_mistral_wake_interrupt(int irq, void *ignored) 4648c2ecf20Sopenharmony_ci{ 4658c2ecf20Sopenharmony_ci return IRQ_HANDLED; 4668c2ecf20Sopenharmony_ci} 4678c2ecf20Sopenharmony_ci 4688c2ecf20Sopenharmony_cistatic void __init osk_mistral_init(void) 4698c2ecf20Sopenharmony_ci{ 4708c2ecf20Sopenharmony_ci /* NOTE: we could actually tell if there's a Mistral board 4718c2ecf20Sopenharmony_ci * attached, e.g. by trying to read something from the ads7846. 4728c2ecf20Sopenharmony_ci * But this arch_init() code is too early for that, since we 4738c2ecf20Sopenharmony_ci * can't talk to the ads or even the i2c eeprom. 4748c2ecf20Sopenharmony_ci */ 4758c2ecf20Sopenharmony_ci 4768c2ecf20Sopenharmony_ci /* parallel camera interface */ 4778c2ecf20Sopenharmony_ci omap_cfg_reg(J15_1610_CAM_LCLK); 4788c2ecf20Sopenharmony_ci omap_cfg_reg(J18_1610_CAM_D7); 4798c2ecf20Sopenharmony_ci omap_cfg_reg(J19_1610_CAM_D6); 4808c2ecf20Sopenharmony_ci omap_cfg_reg(J14_1610_CAM_D5); 4818c2ecf20Sopenharmony_ci omap_cfg_reg(K18_1610_CAM_D4); 4828c2ecf20Sopenharmony_ci omap_cfg_reg(K19_1610_CAM_D3); 4838c2ecf20Sopenharmony_ci omap_cfg_reg(K15_1610_CAM_D2); 4848c2ecf20Sopenharmony_ci omap_cfg_reg(K14_1610_CAM_D1); 4858c2ecf20Sopenharmony_ci omap_cfg_reg(L19_1610_CAM_D0); 4868c2ecf20Sopenharmony_ci omap_cfg_reg(L18_1610_CAM_VS); 4878c2ecf20Sopenharmony_ci omap_cfg_reg(L15_1610_CAM_HS); 4888c2ecf20Sopenharmony_ci omap_cfg_reg(M19_1610_CAM_RSTZ); 4898c2ecf20Sopenharmony_ci omap_cfg_reg(Y15_1610_CAM_OUTCLK); 4908c2ecf20Sopenharmony_ci 4918c2ecf20Sopenharmony_ci /* serial camera interface */ 4928c2ecf20Sopenharmony_ci omap_cfg_reg(H19_1610_CAM_EXCLK); 4938c2ecf20Sopenharmony_ci omap_cfg_reg(W13_1610_CCP_CLKM); 4948c2ecf20Sopenharmony_ci omap_cfg_reg(Y12_1610_CCP_CLKP); 4958c2ecf20Sopenharmony_ci /* CCP_DATAM CONFLICTS WITH UART1.TX (and serial console) */ 4968c2ecf20Sopenharmony_ci /* omap_cfg_reg(Y14_1610_CCP_DATAM); */ 4978c2ecf20Sopenharmony_ci omap_cfg_reg(W14_1610_CCP_DATAP); 4988c2ecf20Sopenharmony_ci 4998c2ecf20Sopenharmony_ci /* CAM_PWDN */ 5008c2ecf20Sopenharmony_ci if (gpio_request(11, "cam_pwdn") == 0) { 5018c2ecf20Sopenharmony_ci omap_cfg_reg(N20_1610_GPIO11); 5028c2ecf20Sopenharmony_ci gpio_direction_output(11, 0); 5038c2ecf20Sopenharmony_ci } else 5048c2ecf20Sopenharmony_ci pr_debug("OSK+Mistral: CAM_PWDN is awol\n"); 5058c2ecf20Sopenharmony_ci 5068c2ecf20Sopenharmony_ci 5078c2ecf20Sopenharmony_ci /* omap_cfg_reg(P19_1610_GPIO6); */ /* BUSY */ 5088c2ecf20Sopenharmony_ci gpio_request(6, "ts_busy"); 5098c2ecf20Sopenharmony_ci gpio_direction_input(6); 5108c2ecf20Sopenharmony_ci 5118c2ecf20Sopenharmony_ci omap_cfg_reg(P20_1610_GPIO4); /* PENIRQ */ 5128c2ecf20Sopenharmony_ci gpio_request(4, "ts_int"); 5138c2ecf20Sopenharmony_ci gpio_direction_input(4); 5148c2ecf20Sopenharmony_ci irq_set_irq_type(gpio_to_irq(4), IRQ_TYPE_EDGE_FALLING); 5158c2ecf20Sopenharmony_ci 5168c2ecf20Sopenharmony_ci mistral_boardinfo[0].irq = gpio_to_irq(4); 5178c2ecf20Sopenharmony_ci spi_register_board_info(mistral_boardinfo, 5188c2ecf20Sopenharmony_ci ARRAY_SIZE(mistral_boardinfo)); 5198c2ecf20Sopenharmony_ci 5208c2ecf20Sopenharmony_ci /* the sideways button (SW1) is for use as a "wakeup" button 5218c2ecf20Sopenharmony_ci * 5228c2ecf20Sopenharmony_ci * NOTE: The Mistral board has the wakeup button (SW1) wired 5238c2ecf20Sopenharmony_ci * to the LCD 3.3V rail, which is powered down during suspend. 5248c2ecf20Sopenharmony_ci * To allow this button to wake up the omap, work around this 5258c2ecf20Sopenharmony_ci * HW bug by rewiring SW1 to use the main 3.3V rail. 5268c2ecf20Sopenharmony_ci */ 5278c2ecf20Sopenharmony_ci omap_cfg_reg(N15_1610_MPUIO2); 5288c2ecf20Sopenharmony_ci if (gpio_request(OMAP_MPUIO(2), "wakeup") == 0) { 5298c2ecf20Sopenharmony_ci int ret = 0; 5308c2ecf20Sopenharmony_ci int irq = gpio_to_irq(OMAP_MPUIO(2)); 5318c2ecf20Sopenharmony_ci 5328c2ecf20Sopenharmony_ci gpio_direction_input(OMAP_MPUIO(2)); 5338c2ecf20Sopenharmony_ci irq_set_irq_type(irq, IRQ_TYPE_EDGE_RISING); 5348c2ecf20Sopenharmony_ci /* share the IRQ in case someone wants to use the 5358c2ecf20Sopenharmony_ci * button for more than wakeup from system sleep. 5368c2ecf20Sopenharmony_ci */ 5378c2ecf20Sopenharmony_ci ret = request_irq(irq, 5388c2ecf20Sopenharmony_ci &osk_mistral_wake_interrupt, 5398c2ecf20Sopenharmony_ci IRQF_SHARED, "mistral_wakeup", 5408c2ecf20Sopenharmony_ci &osk_mistral_wake_interrupt); 5418c2ecf20Sopenharmony_ci if (ret != 0) { 5428c2ecf20Sopenharmony_ci gpio_free(OMAP_MPUIO(2)); 5438c2ecf20Sopenharmony_ci printk(KERN_ERR "OSK+Mistral: no wakeup irq, %d?\n", 5448c2ecf20Sopenharmony_ci ret); 5458c2ecf20Sopenharmony_ci } else 5468c2ecf20Sopenharmony_ci enable_irq_wake(irq); 5478c2ecf20Sopenharmony_ci } else 5488c2ecf20Sopenharmony_ci printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n"); 5498c2ecf20Sopenharmony_ci 5508c2ecf20Sopenharmony_ci /* LCD: backlight, and power; power controls other devices on the 5518c2ecf20Sopenharmony_ci * board, like the touchscreen, EEPROM, and wakeup (!) switch. 5528c2ecf20Sopenharmony_ci */ 5538c2ecf20Sopenharmony_ci omap_cfg_reg(PWL); 5548c2ecf20Sopenharmony_ci if (gpio_request(2, "lcd_pwr") == 0) 5558c2ecf20Sopenharmony_ci gpio_direction_output(2, 1); 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_ci /* 5588c2ecf20Sopenharmony_ci * GPIO based LEDs 5598c2ecf20Sopenharmony_ci */ 5608c2ecf20Sopenharmony_ci omap_cfg_reg(P18_1610_GPIO3); 5618c2ecf20Sopenharmony_ci omap_cfg_reg(MPUIO4); 5628c2ecf20Sopenharmony_ci 5638c2ecf20Sopenharmony_ci i2c_register_board_info(1, mistral_i2c_board_info, 5648c2ecf20Sopenharmony_ci ARRAY_SIZE(mistral_i2c_board_info)); 5658c2ecf20Sopenharmony_ci 5668c2ecf20Sopenharmony_ci platform_add_devices(mistral_devices, ARRAY_SIZE(mistral_devices)); 5678c2ecf20Sopenharmony_ci} 5688c2ecf20Sopenharmony_ci#else 5698c2ecf20Sopenharmony_cistatic void __init osk_mistral_init(void) { } 5708c2ecf20Sopenharmony_ci#endif 5718c2ecf20Sopenharmony_ci 5728c2ecf20Sopenharmony_ci#define EMIFS_CS3_VAL (0x88013141) 5738c2ecf20Sopenharmony_ci 5748c2ecf20Sopenharmony_cistatic void __init osk_init(void) 5758c2ecf20Sopenharmony_ci{ 5768c2ecf20Sopenharmony_ci u32 l; 5778c2ecf20Sopenharmony_ci 5788c2ecf20Sopenharmony_ci osk_init_smc91x(); 5798c2ecf20Sopenharmony_ci osk_init_cf(); 5808c2ecf20Sopenharmony_ci 5818c2ecf20Sopenharmony_ci /* Workaround for wrong CS3 (NOR flash) timing 5828c2ecf20Sopenharmony_ci * There are some U-Boot versions out there which configure 5838c2ecf20Sopenharmony_ci * wrong CS3 memory timings. This mainly leads to CRC 5848c2ecf20Sopenharmony_ci * or similar errors if you use NOR flash (e.g. with JFFS2) 5858c2ecf20Sopenharmony_ci */ 5868c2ecf20Sopenharmony_ci l = omap_readl(EMIFS_CCS(3)); 5878c2ecf20Sopenharmony_ci if (l != EMIFS_CS3_VAL) 5888c2ecf20Sopenharmony_ci omap_writel(EMIFS_CS3_VAL, EMIFS_CCS(3)); 5898c2ecf20Sopenharmony_ci 5908c2ecf20Sopenharmony_ci osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys(); 5918c2ecf20Sopenharmony_ci osk_flash_resource.end += SZ_32M - 1; 5928c2ecf20Sopenharmony_ci osk5912_smc91x_resources[1].start = gpio_to_irq(0); 5938c2ecf20Sopenharmony_ci osk5912_smc91x_resources[1].end = gpio_to_irq(0); 5948c2ecf20Sopenharmony_ci osk5912_cf_resources[0].start = gpio_to_irq(62); 5958c2ecf20Sopenharmony_ci osk5912_cf_resources[0].end = gpio_to_irq(62); 5968c2ecf20Sopenharmony_ci platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices)); 5978c2ecf20Sopenharmony_ci 5988c2ecf20Sopenharmony_ci l = omap_readl(USB_TRANSCEIVER_CTRL); 5998c2ecf20Sopenharmony_ci l |= (3 << 1); 6008c2ecf20Sopenharmony_ci omap_writel(l, USB_TRANSCEIVER_CTRL); 6018c2ecf20Sopenharmony_ci 6028c2ecf20Sopenharmony_ci gpiod_add_lookup_table(&osk_usb_gpio_table); 6038c2ecf20Sopenharmony_ci omap1_usb_init(&osk_usb_config); 6048c2ecf20Sopenharmony_ci 6058c2ecf20Sopenharmony_ci /* irq for tps65010 chip */ 6068c2ecf20Sopenharmony_ci /* bootloader effectively does: omap_cfg_reg(U19_1610_MPUIO1); */ 6078c2ecf20Sopenharmony_ci if (gpio_request(OMAP_MPUIO(1), "tps65010") == 0) 6088c2ecf20Sopenharmony_ci gpio_direction_input(OMAP_MPUIO(1)); 6098c2ecf20Sopenharmony_ci 6108c2ecf20Sopenharmony_ci omap_serial_init(); 6118c2ecf20Sopenharmony_ci osk_i2c_board_info[0].irq = gpio_to_irq(OMAP_MPUIO(1)); 6128c2ecf20Sopenharmony_ci omap_register_i2c_bus(1, 400, osk_i2c_board_info, 6138c2ecf20Sopenharmony_ci ARRAY_SIZE(osk_i2c_board_info)); 6148c2ecf20Sopenharmony_ci osk_mistral_init(); 6158c2ecf20Sopenharmony_ci 6168c2ecf20Sopenharmony_ci#ifdef CONFIG_OMAP_OSK_MISTRAL 6178c2ecf20Sopenharmony_ci omapfb_set_lcd_config(&osk_lcd_config); 6188c2ecf20Sopenharmony_ci#endif 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_ci} 6218c2ecf20Sopenharmony_ci 6228c2ecf20Sopenharmony_ciMACHINE_START(OMAP_OSK, "TI-OSK") 6238c2ecf20Sopenharmony_ci /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */ 6248c2ecf20Sopenharmony_ci .atag_offset = 0x100, 6258c2ecf20Sopenharmony_ci .map_io = omap16xx_map_io, 6268c2ecf20Sopenharmony_ci .init_early = omap1_init_early, 6278c2ecf20Sopenharmony_ci .init_irq = omap1_init_irq, 6288c2ecf20Sopenharmony_ci .handle_irq = omap1_handle_irq, 6298c2ecf20Sopenharmony_ci .init_machine = osk_init, 6308c2ecf20Sopenharmony_ci .init_late = omap1_init_late, 6318c2ecf20Sopenharmony_ci .init_time = omap1_timer_init, 6328c2ecf20Sopenharmony_ci .restart = omap1_restart, 6338c2ecf20Sopenharmony_ciMACHINE_END 634