| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2005-07-10 19:58:11 +01:00
										 |  |  |  * linux/arch/arm/mach-omap1/board-voiceblue.c | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Modified from board-generic.c | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2004 2N Telekomunikace, Ladislav Michl <michl@2n.cz> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Code for OMAP5910 based VoiceBlue board (VoIP to GSM gateway). | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 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/delay.h>
 | 
					
						
							| 
									
										
										
										
											2011-07-26 10:53:52 +01:00
										 |  |  | #include <linux/gpio.h>
 | 
					
						
							| 
									
										
										
										
											2005-10-29 19:07:23 +01:00
										 |  |  | #include <linux/platform_device.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #include <linux/interrupt.h>
 | 
					
						
							| 
									
										
										
										
											2008-12-10 17:37:16 -08:00
										 |  |  | #include <linux/irq.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #include <linux/init.h>
 | 
					
						
							|  |  |  | #include <linux/kernel.h>
 | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:32 -08:00
										 |  |  | #include <linux/mtd/physmap.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #include <linux/notifier.h>
 | 
					
						
							|  |  |  | #include <linux/reboot.h>
 | 
					
						
							|  |  |  | #include <linux/serial_8250.h>
 | 
					
						
							|  |  |  | #include <linux/serial_reg.h>
 | 
					
						
							| 
									
										
										
										
											2009-12-11 16:16:33 -08:00
										 |  |  | #include <linux/smc91x.h>
 | 
					
						
							| 
									
										
										
										
											2011-07-31 16:17:29 -04:00
										 |  |  | #include <linux/export.h>
 | 
					
						
							| 
									
										
										
										
											2013-07-08 16:01:40 -07:00
										 |  |  | #include <linux/reboot.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <asm/mach-types.h>
 | 
					
						
							|  |  |  | #include <asm/mach/arch.h>
 | 
					
						
							|  |  |  | #include <asm/mach/map.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-20 11:41:25 -07:00
										 |  |  | #include <mach/board-voiceblue.h>
 | 
					
						
							| 
									
										
										
										
											2012-09-20 11:41:37 -07:00
										 |  |  | #include <mach/flash.h>
 | 
					
						
							| 
									
										
										
										
											2012-09-19 10:46:56 -07:00
										 |  |  | #include <mach/mux.h>
 | 
					
						
							| 
									
										
										
										
											2012-10-02 13:39:28 -07:00
										 |  |  | #include <mach/tc.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-24 10:34:34 -08:00
										 |  |  | #include <mach/hardware.h>
 | 
					
						
							| 
									
										
										
										
											2012-06-04 00:56:15 -07:00
										 |  |  | #include <mach/usb.h>
 | 
					
						
							| 
									
										
										
										
											2012-02-24 10:34:34 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "common.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | static struct plat_serial8250_port voiceblue_ports[] = { | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		.mapbase	= (unsigned long)(OMAP_CS1_PHYS + 0x40000), | 
					
						
							|  |  |  | 		.flags		= UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 
					
						
							|  |  |  | 		.iotype		= UPIO_MEM, | 
					
						
							|  |  |  | 		.regshift	= 1, | 
					
						
							|  |  |  | 		.uartclk	= 3686400, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		.mapbase	= (unsigned long)(OMAP_CS1_PHYS + 0x50000), | 
					
						
							|  |  |  | 		.flags		= UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 
					
						
							|  |  |  | 		.iotype		= UPIO_MEM, | 
					
						
							|  |  |  | 		.regshift	= 1, | 
					
						
							|  |  |  | 		.uartclk	= 3686400, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		.mapbase	= (unsigned long)(OMAP_CS1_PHYS + 0x60000), | 
					
						
							|  |  |  | 		.flags		= UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 
					
						
							|  |  |  | 		.iotype		= UPIO_MEM, | 
					
						
							|  |  |  | 		.regshift	= 1, | 
					
						
							|  |  |  | 		.uartclk	= 3686400, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		.mapbase	= (unsigned long)(OMAP_CS1_PHYS + 0x70000), | 
					
						
							|  |  |  | 		.flags		= UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 
					
						
							|  |  |  | 		.iotype		= UPIO_MEM, | 
					
						
							|  |  |  | 		.regshift	= 1, | 
					
						
							|  |  |  | 		.uartclk	= 3686400, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	{ }, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct platform_device serial_device = { | 
					
						
							|  |  |  | 	.name			= "serial8250", | 
					
						
							| 
									
										
										
										
											2005-09-08 16:04:41 +01:00
										 |  |  | 	.id			= PLAT8250_DEV_PLATFORM1, | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int __init ext_uart_init(void) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2010-12-10 09:46:24 -08:00
										 |  |  | 	if (!machine_is_voiceblue()) | 
					
						
							|  |  |  | 		return -ENODEV; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-29 08:41:01 -07:00
										 |  |  | 	voiceblue_ports[0].irq = gpio_to_irq(12); | 
					
						
							|  |  |  | 	voiceblue_ports[1].irq = gpio_to_irq(13); | 
					
						
							|  |  |  | 	voiceblue_ports[2].irq = gpio_to_irq(14); | 
					
						
							|  |  |  | 	voiceblue_ports[3].irq = gpio_to_irq(15); | 
					
						
							|  |  |  | 	serial_device.dev.platform_data = voiceblue_ports; | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	return platform_device_register(&serial_device); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | arch_initcall(ext_uart_init); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:32 -08:00
										 |  |  | static struct physmap_flash_data voiceblue_flash_data = { | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | 	.width		= 2, | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:32 -08:00
										 |  |  | 	.set_vpp	= omap1_set_vpp, | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct resource voiceblue_flash_resource = { | 
					
						
							|  |  |  | 	.start	= OMAP_CS0_PHYS, | 
					
						
							|  |  |  | 	.end	= OMAP_CS0_PHYS + SZ_32M - 1, | 
					
						
							|  |  |  | 	.flags	= IORESOURCE_MEM, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct platform_device voiceblue_flash_device = { | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:32 -08:00
										 |  |  | 	.name		= "physmap-flash", | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | 	.id		= 0, | 
					
						
							|  |  |  | 	.dev		= { | 
					
						
							|  |  |  | 		.platform_data	= &voiceblue_flash_data, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	.num_resources	= 1, | 
					
						
							|  |  |  | 	.resource	= &voiceblue_flash_resource, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-12-11 16:16:33 -08:00
										 |  |  | static struct smc91x_platdata voiceblue_smc91x_info = { | 
					
						
							|  |  |  | 	.flags	= SMC91X_USE_16BIT | SMC91X_NOWAIT, | 
					
						
							|  |  |  | 	.leda	= RPC_LED_100_10, | 
					
						
							|  |  |  | 	.ledb	= RPC_LED_TX_RX, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | static struct resource voiceblue_smc91x_resources[] = { | 
					
						
							|  |  |  | 	[0] = { | 
					
						
							|  |  |  | 		.start	= OMAP_CS2_PHYS + 0x300, | 
					
						
							|  |  |  | 		.end	= OMAP_CS2_PHYS + 0x300 + 16, | 
					
						
							|  |  |  | 		.flags	= IORESOURCE_MEM, | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	[1] = { | 
					
						
							| 
									
										
										
										
											2008-01-14 22:30:10 +00:00
										 |  |  | 		.flags	= IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	}, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct platform_device voiceblue_smc91x_device = { | 
					
						
							|  |  |  | 	.name		= "smc91x", | 
					
						
							|  |  |  | 	.id		= 0, | 
					
						
							| 
									
										
										
										
											2009-12-11 16:16:33 -08:00
										 |  |  | 	.dev	= { | 
					
						
							|  |  |  | 		.platform_data	= &voiceblue_smc91x_info, | 
					
						
							|  |  |  | 	}, | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	.num_resources	= ARRAY_SIZE(voiceblue_smc91x_resources), | 
					
						
							|  |  |  | 	.resource	= voiceblue_smc91x_resources, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct platform_device *voiceblue_devices[] __initdata = { | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | 	&voiceblue_flash_device, | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	&voiceblue_smc91x_device, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct omap_usb_config voiceblue_usb_config __initdata = { | 
					
						
							|  |  |  | 	.hmc_mode	= 3, | 
					
						
							|  |  |  | 	.register_host	= 1, | 
					
						
							|  |  |  | 	.register_dev   = 1, | 
					
						
							|  |  |  | 	.pins[0]	= 2, | 
					
						
							|  |  |  | 	.pins[1]	= 6, | 
					
						
							|  |  |  | 	.pins[2]	= 6, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define MACHINE_PANICED		1
 | 
					
						
							|  |  |  | #define MACHINE_REBOOTING	2
 | 
					
						
							|  |  |  | #define MACHINE_REBOOT		4
 | 
					
						
							|  |  |  | static unsigned long machine_state; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int panic_event(struct notifier_block *this, unsigned long event, | 
					
						
							|  |  |  | 	 void *ptr) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	if (test_and_set_bit(MACHINE_PANICED, &machine_state)) | 
					
						
							|  |  |  | 		return NOTIFY_DONE; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | 	/* Flash power LED */ | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	omap_writeb(0x78, OMAP_LPG1_LCR); | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | 	omap_writeb(0x01, OMAP_LPG1_PMR);	/* Enable clock */ | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	return NOTIFY_DONE; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static struct notifier_block panic_block = { | 
					
						
							|  |  |  | 	.notifier_call	= panic_event, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | static int __init voiceblue_setup(void) | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2010-12-10 09:46:24 -08:00
										 |  |  | 	if (!machine_is_voiceblue()) | 
					
						
							|  |  |  | 		return -ENODEV; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	/* Setup panic notifier */ | 
					
						
							| 
									
										
										
										
											2006-12-07 13:58:17 -08:00
										 |  |  | 	atomic_notifier_chain_register(&panic_notifier_list, &panic_block); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2005-09-08 23:07:38 +01:00
										 |  |  | postcore_initcall(voiceblue_setup); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | static int wdt_gpio_state; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void voiceblue_wdt_enable(void) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2008-12-10 17:35:26 -08:00
										 |  |  | 	gpio_direction_output(0, 0); | 
					
						
							| 
									
										
										
										
											2008-12-10 17:35:25 -08:00
										 |  |  | 	gpio_set_value(0, 1); | 
					
						
							|  |  |  | 	gpio_set_value(0, 0); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	wdt_gpio_state = 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void voiceblue_wdt_disable(void) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2008-12-10 17:35:25 -08:00
										 |  |  | 	gpio_set_value(0, 0); | 
					
						
							|  |  |  | 	gpio_set_value(0, 1); | 
					
						
							|  |  |  | 	gpio_set_value(0, 0); | 
					
						
							| 
									
										
										
										
											2008-12-10 17:35:26 -08:00
										 |  |  | 	gpio_direction_input(0); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void voiceblue_wdt_ping(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	if (test_bit(MACHINE_REBOOT, &machine_state)) | 
					
						
							|  |  |  | 		return; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	wdt_gpio_state = !wdt_gpio_state; | 
					
						
							| 
									
										
										
										
											2008-12-10 17:35:25 -08:00
										 |  |  | 	gpio_set_value(0, wdt_gpio_state); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-08 16:01:40 -07:00
										 |  |  | static void voiceblue_restart(enum reboot_mode mode, const char *cmd) | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-27 16:39:45 -08:00
										 |  |  | 	/*
 | 
					
						
							|  |  |  | 	 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 | 
					
						
							|  |  |  | 	 * "Global Software Reset Affects Traffic Controller Frequency". | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	if (cpu_is_omap5912()) { | 
					
						
							|  |  |  | 		omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); | 
					
						
							|  |  |  | 		omap_writew(0x8, ARM_RSTCT1); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	set_bit(MACHINE_REBOOT, &machine_state); | 
					
						
							|  |  |  | 	voiceblue_wdt_enable(); | 
					
						
							|  |  |  | 	while (1) ; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPORT_SYMBOL(voiceblue_wdt_enable); | 
					
						
							|  |  |  | EXPORT_SYMBOL(voiceblue_wdt_disable); | 
					
						
							|  |  |  | EXPORT_SYMBOL(voiceblue_wdt_ping); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-27 16:39:45 -08:00
										 |  |  | static void __init voiceblue_init(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	/* mux pins for uarts */ | 
					
						
							|  |  |  | 	omap_cfg_reg(UART1_TX); | 
					
						
							|  |  |  | 	omap_cfg_reg(UART1_RTS); | 
					
						
							|  |  |  | 	omap_cfg_reg(UART2_TX); | 
					
						
							|  |  |  | 	omap_cfg_reg(UART2_RTS); | 
					
						
							|  |  |  | 	omap_cfg_reg(UART3_TX); | 
					
						
							|  |  |  | 	omap_cfg_reg(UART3_RX); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* Watchdog */ | 
					
						
							|  |  |  | 	gpio_request(0, "Watchdog"); | 
					
						
							|  |  |  | 	/* smc91x reset */ | 
					
						
							|  |  |  | 	gpio_request(7, "SMC91x reset"); | 
					
						
							|  |  |  | 	gpio_direction_output(7, 1); | 
					
						
							|  |  |  | 	udelay(2);	/* wait at least 100ns */ | 
					
						
							|  |  |  | 	gpio_set_value(7, 0); | 
					
						
							|  |  |  | 	mdelay(50);	/* 50ms until PHY ready */ | 
					
						
							|  |  |  | 	/* smc91x interrupt pin */ | 
					
						
							|  |  |  | 	gpio_request(8, "SMC91x irq"); | 
					
						
							|  |  |  | 	/* 16C554 reset*/ | 
					
						
							|  |  |  | 	gpio_request(6, "16C554 reset"); | 
					
						
							|  |  |  | 	gpio_direction_output(6, 0); | 
					
						
							|  |  |  | 	/* 16C554 interrupt pins */ | 
					
						
							|  |  |  | 	gpio_request(12, "16C554 irq"); | 
					
						
							|  |  |  | 	gpio_request(13, "16C554 irq"); | 
					
						
							|  |  |  | 	gpio_request(14, "16C554 irq"); | 
					
						
							|  |  |  | 	gpio_request(15, "16C554 irq"); | 
					
						
							| 
									
										
										
										
											2011-03-24 13:25:22 +01:00
										 |  |  | 	irq_set_irq_type(gpio_to_irq(12), IRQ_TYPE_EDGE_RISING); | 
					
						
							|  |  |  | 	irq_set_irq_type(gpio_to_irq(13), IRQ_TYPE_EDGE_RISING); | 
					
						
							|  |  |  | 	irq_set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); | 
					
						
							|  |  |  | 	irq_set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); | 
					
						
							| 
									
										
										
										
											2011-01-27 16:39:45 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-29 08:41:01 -07:00
										 |  |  | 	voiceblue_smc91x_resources[1].start = gpio_to_irq(8); | 
					
						
							|  |  |  | 	voiceblue_smc91x_resources[1].end = gpio_to_irq(8); | 
					
						
							| 
									
										
										
										
											2011-01-27 16:39:45 -08:00
										 |  |  | 	platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); | 
					
						
							|  |  |  | 	omap_serial_init(); | 
					
						
							|  |  |  | 	omap1_usb_init(&voiceblue_usb_config); | 
					
						
							|  |  |  | 	omap_register_i2c_bus(1, 100, NULL, 0); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* There is a good chance board is going up, so enable power LED
 | 
					
						
							|  |  |  | 	 * (it is connected through invertor) */ | 
					
						
							|  |  |  | 	omap_writeb(0x00, OMAP_LPG1_LCR); | 
					
						
							|  |  |  | 	omap_writeb(0x00, OMAP_LPG1_PMR);	/* Disable clock */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910") | 
					
						
							| 
									
										
										
										
											2005-07-03 17:38:58 +01:00
										 |  |  | 	/* Maintainer: Ladislav Michl <michl@2n.cz> */ | 
					
						
							| 
									
										
										
										
											2011-07-05 22:38:15 -04:00
										 |  |  | 	.atag_offset	= 0x100, | 
					
						
							| 
									
										
										
										
											2011-10-05 15:14:02 -07:00
										 |  |  | 	.map_io		= omap15xx_map_io, | 
					
						
							|  |  |  | 	.init_early     = omap1_init_early, | 
					
						
							|  |  |  | 	.init_irq	= omap1_init_irq, | 
					
						
							| 
									
										
										
										
											2005-07-03 17:38:58 +01:00
										 |  |  | 	.init_machine	= voiceblue_init, | 
					
						
							| 
									
										
										
										
											2012-04-26 13:49:29 +08:00
										 |  |  | 	.init_late	= omap1_init_late, | 
					
						
							| 
									
										
										
										
											2012-11-08 12:40:59 -07:00
										 |  |  | 	.init_time	= omap1_timer_init, | 
					
						
							| 
									
										
										
										
											2011-11-05 17:06:28 +00:00
										 |  |  | 	.restart	= voiceblue_restart, | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | MACHINE_END |