summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* omap2/3/4: serial: errata i202: fix for MDR1 accessDeepak K2010-08-021-3/+49
| | | | | | | | | | | | | | | | | | | | | | | | | Errata i202 (OMAP3430 - 1.12, OMAP3630 - 1.6): UART module MDR1 register access can cause a dummy underrun condition which could result in a freeze in the case of IrDA communication or if used as UART, corrupted data. Workaround is as follows for everytime MDR1 register is changed: * setup all required UART registers * setup MDR1.MODE_SELECT bit field * Wait 5 L4 clk cycles + 5 UART functional clock cycles * Clear the Tx and RX fifo using FCR register Note: The following step is not done as I am assuming it is not needed due to reconfiguration being done and there is no halted operation perse. * Read if required, the RESUME register to resume halted operation Based on an earlier patch at: http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=42d4a342c009bd9727c100abc8a4bc3063c22f0c Signed-off-by: Deepak K <deepak.k@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: serial: introduce errata handlingNishanth Menon2010-08-021-5/+10
| | | | | | | | | | introduce silicon specific quirks as a errata handling mechanism as a start UART_ERRATA_FIFO_FULL_ABORT is used to handle the override for fifo full condition for rx and tx. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warnNishanth Menon2010-08-021-1/+2
| | | | | | | | | Remove the following sparse warnings by declaring attr as static: arch/arm/mach-omap2/serial.c:627:1: warning: symbol 'dev_attr_sleep_timeout' was not declared. Should it be static? Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: serial: remove initialization sparse warningsNishanth Menon2010-08-021-2/+2
| | | | | | | | | | Initialization of pointer should be done with NULL. Removes sparse warnings: arch/arm/mach-omap2/serial.c:566:17: warning: Using plain integer as NULL pointer arch/arm/mach-omap2/serial.c:567:17: warning: Using plain integer as NULL pointer Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap3: serial: Add context save and restore for mcrGovindraj R2010-08-021-0/+6
| | | | | | | | | Adds context save/restore for mcr register as state of mcr register is lost after core off. Signed-off-by: Govindraj R <govindraj.raja@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap4: Add OMAP4 Panda SupportDavid Anders2010-08-023-0/+311
| | | | | | | | Add initial support for the OMAP4 based Panda Board. Signed-off-by: David Anders <x0132446@ti.com> [tony@atomide.com: selected board by default in Kconfig] Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP4: Add GPIO LED support for SDP boardHemanth V2010-08-021-0/+50
| | | | | | | | | This patch adds support for GPIO LEDs present on OMAP4 SDP and Blaze boards. This basically adds platform data required by leds-gpio driver Signed-off-by: Hemanth V <hemanthv@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap4: Board changes for 4430sdp tmp105 temperature sensorShubhrajyoti Datta2010-08-021-1/+7
| | | | | | | | | Adding board configuration for the tmp105 temperature sensor. The interface to the sensor is I2C. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap4: mmc: Fix the regulator resource for MMC2 on 4430sdpSantosh Shilimkar2010-08-021-4/+8
| | | | | | | | | | | | | | The MMC1 and MMC2 cards have seperate LDO supplies. Current code assumes that they are powered by same LDO. This patch fixes the same and has VAUX1 as supply to MMC2 card. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com> Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com> Tested-by: Kishore Kadiyala <kishore.kadiyala@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: tsl2563 ALS support for Nokia N900Mathias Nyman2010-08-021-0/+14
| | | | | | | | This commit will enable usage of tsl2563 ambient light sensor on Nokia N900. Signed-off-by: Ameya Palande <ameya.palande@nokia.com> Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: rx51: Add supply and data for the tpa6130a2 headphoneamplifierJarkko Nikula2010-08-021-0/+12
| | | | | | | | With these and upcoming change to tpa6130a2 driver it's possible to add support for the TPA6130A2 headphone amplifier. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: rx51: Use REGULATOR_SUPPLY macro when initializingregulator consumersJarkko Nikula2010-08-021-32/+11
| | | | | | | | | | There is REGULATOR_SUPPLY macro available for initializing the struct regulator_consumer_supply so use it where applicable (all other supplies than vdds_sdi) as it improves the readability. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Eduardo Valentin <eduardo.valentin@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: rx51: Add platform_data for tlv320aic3x with reset gpionumberJarkko Nikula2010-08-021-0/+7
| | | | | | | | | | Proper operation of the tlv320aic3x audio codec requires that reset sequencing is done in pair with supply voltages when using the regulator framework. Add the codec reset gpio used in Nokia RX51 to tlv320aic3x data. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: rx51: Set regulator V28 always onJarkko Nikula2010-08-021-0/+1
| | | | | | | | | | | | | | | | | | | It seems that the battery cover sensor in Nokia N900 is powered from the V28 domain. Now if this regulator is disabled it causes that the gpio 160 reads only zero which effectively causes uSD removal detection. Currently the bootloader enabled V28 is kept on but this may change in the future according to comment in drivers/regulator/core.c: regulator_has_full_constraints. Also if there are any consumers on the V28 domain doing regulator_enable regulator_disable cycle the V28 will be disabled after that. Prepare for these by defining the V28 as always_on regulator. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Cc: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap3: pandora: add NAND and wifi supportGrazvydas Ignotas2010-08-021-0/+120
| | | | | | | | Add platform data for NAND and wifi, also setup all GPIOs needed to use the wifi chip. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap3: pandora: update gpio-keys dataGrazvydas Ignotas2010-08-021-20/+10
| | | | | | | | | | | Update gpio-keys setup so it matches what is on default firmware. Also make use of debounce feature in gpio-keys instead of setting it explicitly, as gpio-keys is now capable of using hardware debounce on OMAPs thanks to recent gpiolib changes. Also fix a sparce warning along the way. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: zoom3: wlan board muxingOhad Ben-Cohen2010-08-021-0/+13
| | | | | | | | Add board muxing to support the wlan wl1271 chip that is hardwired to mmc2 (third mmc controller) on the ZOOM3. Signed-off-by: Ohad Ben-Cohen <ohadb@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: zoom2: wlan board muxingOhad Ben-Cohen2010-08-021-0/+13
| | | | | | | | Add board muxing to support the wlan wl1271 chip that is hardwired to mmc2 (third mmc controller) on the ZOOM2. Signed-off-by: Ohad Ben-Cohen <ohadb@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Fix regulator for power supplyThomas Weber2010-07-051-1/+1
| | | | | | | | | Devkit8000 uses the TPS65930 and not the TWL4030. The TPS65930 uses only a subset of the power supplies of the TWL4030. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Remove unused omap_board_configThomas Weber2010-07-051-6/+0
| | | | | | | | omap_board_config is no longer used and thats why empty. This patch removes the empty omap_board_config. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Using gpio_is_valid macroThomas Weber2010-07-051-4/+4
| | | | | | | Using the macro gpio_is_valid for check of valid gpio pins. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Using the REGULATOR_SUPPLY macroThomas Weber2010-07-051-20/+13
| | | | | | | Replacing supplies with the REGULATOR_SUPPLY macro. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Remove en-/disable for tv panelThomas Weber2010-07-051-12/+0
| | | | | | | | devkit8000_panel_enable_tv and devkit8000_panel_disable_tv are already done in DSS2 code. So they are no longer needed in board code. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Remove non existing vsim supplyThomas Weber2010-07-051-22/+0
| | | | | | | | | | The Devkit8000 uses the cost reduced variant tps65930 of the twl4030. The TPS65930 only has vdd1, vdd2, vpll1, vio, vmmc1, vdac and vaux2. vaux2 is not used on Devkit8000. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Remove unneeded VDVI supplyThomas Weber2010-07-051-5/+0
| | | | | | | | The VDVI power supply is no longer needed in board code with the new DSS2 interface. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Setup LCD resetKan-Ru Chen2010-07-051-0/+11
| | | | | | | | | | | | This patch corrects the LCD reset pin configuration. Original code from early devkit8000 patch sets the TWL4030 GPIO_1 to EHCI_nOC and TWL4030_GPIO_MAX+1 to ledA. Indeed these two pins are both LCD_PWREN. Setup the lcd reset_gpio properly so it can be disabled when other display is turned on. Signed-off-by: Kan-Ru Chen <kanru@0xlab.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Enable DVI-D outputKan-Ru Chen2010-07-051-0/+15
| | | | | | | | | | This patch corrects the DVI-D output setup of Devkit8000 Devkit8000 has different DVI reset pin with the BeagleBoard. On Devkit8000 the TWL4030 GPIO_7 is assigned to do the job. Signed-off-by: Kan-Ru Chen <kanru@0xlab.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: change panel to generic panelThomas Weber2010-07-051-1/+1
| | | | | | | Choose the generic panel for lcd code of Devkit8000. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* OMAP2: Devkit8000: Cleanup for power suppliesThomas Weber2010-07-051-6/+26
| | | | | | | | | | Corrected the wrong power supplies in devkit8000 code. Add supply for ads7846 to support the new regulator framework for touchscreen. Signed-off-by: Thomas Weber <weber@corscience.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead MACH_OMAP2_H4_USB1Christoph Egger2010-07-051-5/+0
| | | | | | | | MACH_OMAP2_H4_USB1 doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead MACH_OMAP_H4_OTGChristoph Egger2010-07-051-17/+0
| | | | | | | | MACH_OMAP_H4_OTG doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead APMChristoph Egger2010-07-051-84/+0
| | | | | | | | APM doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Replacing LEDS_OMAP_DEBUG with OMAP_DEBUG_LEDSChristoph Egger2010-07-052-2/+2
| | | | | | | | LEDS_OMAP_DEBUG doesn't exist in Kconfig, therefore replacing all references for it with OMAP_DEBUG_LEDS from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead OMAP_STIChristoph Egger2010-07-052-92/+0
| | | | | | | | OMAP_STI doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead OMAP_DSPChristoph Egger2010-07-055-277/+0
| | | | | | | | | OMAP_DSP doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> [tony@atomide.com: updated to apply on top of already queued patches] Signed-off-by: Tony Lindgren <tony@atomide.com>
* Removing dead OMAP_IRChristoph Egger2010-07-052-22/+0
| | | | | | | | | OMAP_IR doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> [tony@atomide.com: updated for new mux code] Signed-off-by: Tony Lindgren <tony@atomide.com>
* Replace dead OMAP_MUX_ERRORS with OMAP_MUX_WARNINGSChristoph Egger2010-07-051-1/+1
| | | | | | | | | OMAP_MUX_ERRORS doesn't exist in Kconfig, therefore replacing all references for it with OMAP_MUX_WARNINGS in the source code. Signed-off-by: Christoph Egger <siccegge@cs.fau.de> Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: Add Kconfig option to compile in typical omap featuresTony Lindgren2010-07-051-0/+21
| | | | | | | This produces a sane config that's suitable for using as the base for most omap2/3/4 boards. Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: Select all omaps and boards by defaultTony Lindgren2010-07-051-0/+28
| | | | | | Select all omaps and boards by default Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap2/3/4: Move Kconfig options to mach-omap2/KconfigTony Lindgren2010-07-052-18/+18
| | | | | | Move omap2/3/4 specific Kconfig options to mach-omap2/Kconfig Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: Make omap specific features appear under Kconfig menuTony Lindgren2010-07-053-1/+15
| | | | | | This will make Kconfig look nicer for selecting omap processor type Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: Use 32KiHZ timer by defaultTony Lindgren2010-07-051-1/+1
| | | | | | | Use 32KiHZ timer by default as this is available on all omaps except 15xx based systems. Signed-off-by: Tony Lindgren <tony@atomide.com>
* ARM: Disable VGA console for ARM in most casesTony Lindgren2010-07-051-1/+1
| | | | | | | | | | | | | | | | | | Otherwise we have to disable it manually to avoid compile errors. Now it's only enabled only for the selected machines as suggested by Anton Vorontsov <cbouatmailru@gmail.com>: $ git grep VGA_CONSOLE= arch/arm/configs/ arch/arm/configs/footbridge_defconfig:CONFIG_VGA_CONSOLE=y arch/arm/configs/integrator_defconfig:CONFIG_VGA_CONSOLE=y arch/arm/configs/netwinder_defconfig:CONFIG_VGA_CONSOLE=y Note that the Kconfig entry no longer needs separate entries for ARCH_ACORN, ARCH_EBSA110 ARCH_VERSATILE. Cc: linux-fbdev@vger.kernel.org Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Remove old mux codeTony Lindgren2010-07-0511-528/+1
| | | | | | All mach-omap2 omaps should now use the new mux code. Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Convert 2420 platform init code to use new mux codeTony Lindgren2010-07-056-57/+42
| | | | | | Convert 2420 platform init code to use new mux code Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Mux 2430 USB0HS_STP in board-2430.cTony Lindgren2010-07-051-1/+3
| | | | | | | | | Use new mux functions for that. There are no other known 2430 boards that need this mux. Cc: Felipe Balbi <felipe.balbi@nokia.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Mux Apollon LCD power in board-apollon.cTony Lindgren2010-07-052-3/+3
| | | | | | | | Use the new mux function for that. Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Tomi Valkeinen <tomi.valkeinen@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Do keypad muxing in board-*.c filesTony Lindgren2010-07-056-61/+67
| | | | | | | | | | This way we get pin muxing out of plat-omap and can convert H4 to use the new mux functions. Note that it should be safe to assume we can mux all the keypad pins except on H4 which may have Menelaus connected. Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Make omap2 FS USB code use new mux functionsTony Lindgren2010-07-051-15/+18
| | | | | | | | Make omap2 FS USB code use new mux functions. Do not mux usb2_tllse0 as it has multiple options. Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
* omap: mux: Select POP package for 2430SDPTony Lindgren2010-07-052-0/+12
| | | | | | Select POP package for 2430SDP Signed-off-by: Tony Lindgren <tony@atomide.com>