- Dec 11, 2008
-
-
Tony Lindgren authored
In the case of spurious interrupt, the handler for previous interrupt handler needs to flush posted writes with a read back of the interrupt ack register. Warn about handlers that need to flush posted writes. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
David Brownell authored
Declare the two 1Kbit EEPROMs included in the H4 board stack. One is on the CPU card; the other is on the mainboard. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Lauri Leukkunen authored
system_rev is meant for board revision, this patch changes all relevant instances to use the new omap_rev() function liberating system_rev to be used with ATAG_REVISION as it has been designed. Signed-off-by:
Lauri Leukkunen <lauri.leukkunen@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
At some point omap2 changed the bits for GET_OMAP_CLASS, which broke 15xx detection on 730 as noticed by Russell King. This patch fixes omap2 cpu detection to respect the original GET_OMAP_CLASS, and simplifies the detection for 34xx. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
Rename omap2_check_revision to omap24xx_check_revision. Then next patch will split if further and add omap34xx_check_revision. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Jarkko Nikula authored
Switch to gpio_request/free calls Signed-off-by:
Jarkko Nikula <jarkko.nikula@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
David Brownell authored
More conversion to the standard GPIO interfaces: stop using omap_set_gpio_direction() entirely, and switch over to the gpio_direction_output() call. Note that because gpio_direction_output() includes the initial value, this change isn't quite transparent. - For the call sites which defined an initial value either before or after setting the direction, that value was used. When that value was previously assigned afterwards, this could eliminate a brief output glitch ... and possibly change behavior. In a few cases (LCDs) several values were assigned together ... those were re-arranged to match the explicit sequence provided. - Some call sites didn't define such a value; so I chose an initial "off/reset" value that seemed to default to "off". In short, files touched by this patch might notice some small changes in startup behavior (with trivial fixes). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
David Brownell authored
More switchover to the cross-platform GPIO interface: use gpio_direction_input(), not an OMAP-specific call. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
David Brownell authored
This patch replaces some legacy OMAP GPIO calls with the "new" (not really, any more!) calls that work on most platforms. The calls addressed by this patch are the simple ones to get and set values ... for code that's in mainline, including the implementations of those calls. Except for the declarations and definitions of those calls, all of these changes were performed by a simple SED script. Plus, a few "if() set() else set()" branches were merged by hand. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Jouni Hogander authored
This patch changes gpio "driver" to enable debounce clock for gpio-bank only when debounce is enabled for some gpio in that bank. Gpio functional clocks are also renamed in clock tree, gpioX_fck -> gpioX_dbck. This patch triggers problem with gpio wake-up and Omap3. Gpios in PER domain aren't capable to generate wake-up if PER domain is in sleep state. For this iopad wake-up should be used and needed pad configuration should be done. Enabling iopad wake-up for gpio pads is left for bootloader or omap mux configuration in kernel. Signed-off-by:
Jouni Hogander <jouni.hogander@nokia.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Nov 04, 2008
-
-
Sanjeev Premi authored
Fix these compiler warnings: gpmc.c: In function 'gpmc_init': gpmc.c:432: warning: 'return' with a value, in function returning void gpmc.c:439: warning: 'return' with a value, in function returning void Signed-off-by:
Sanjeev Premi <premi@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Oct 16, 2008
-
-
Thomas Gleixner authored
local shadows of global variables are _bad_ Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
- Oct 14, 2008
-
-
Jean Delvare authored
Based on David Brownell's patch for tps65010 and previous work by Felipe Balbi, this patch finishes converting isp1301_omap to a new-style i2c driver. There's definitely room for further drivers cleanups, but these are out of the scope of this patch. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Tony Lindgren <tony@atomide.com>
-
- Oct 10, 2008
-
-
Nishant Kamat authored
This adds minimal board support for the OMAP3430 LDP development platform. Signed-off-by:
Nishant Kamat <nskamat@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Oct 09, 2008
-
-
Steve Sakoman authored
This patch adds minimal overo support. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Syed Mohammed, Khasim authored
Add minimal Beagle board support. Based on earlier patches by Syed Mohammed Khasim with some fixes from linux-omap tree. Signed-off-by:
Syed Mohammed Khasim <khasim@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Syed Mohammed, Khasim authored
Add minimal omap3430 support based on earlier patches from Syed Mohammed Khasim. Also merge in omap34xx SRAM support from Karthik Dasu and use consistent naming for sram init functions. Also do following changes that make 34xx support usable: - Remove unused sram.c functions for 34xx - Rename IRQ_SIR_IRQ to INTCPS_SIR_IRQ and define it locally in entry-macro.S - Update mach-omap2/io.c to support 2420, 2430, and 34xx - Also merge in 34xx GPMC changes to add fields wr_access and wr_data_mux_bus from Adrian Hunter - Remove memory initialization call omap2_init_memory() until until more generic memory initialization patches are posted. It's OK to rely on bootloader initialization until then. Signed-off-by:
Syed Mohammed, Khasim <khasim@ti.com> Signed-off-by:
Karthik <Dasu<karthik-dp@ti.com> Signed-off-by:
Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Fix sparse warnings in mach-omap2/irq.c. Fix by defining intc_bank_write_reg() and intc_bank_read_reg(), and convert INTC module register access to use them rather than __raw_{read,write}l. Also clear up some checkpatch warnings involving includes from asm/ rather than linux/. Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Oct 08, 2008
-
-
Jarkko Nikula authored
Signed-off-by:
Jarkko Nikula <jarkko.nikula@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Chandra Shekhar authored
Based on Chandra's earlier patches in linux-omap tree. Signed-off-by:
Chandra Shekhar <x0044955@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Chandra Shekhar authored
Based on Chandra's earlier patches in linux-omap tree. Note that omap1_mcbsp_check and omap2_mcbsp_check are no longer needed as there's now omap_mcbsp_check_valid_id() defined. Also some functions can now be marked __init. Signed-off-by:
Chandra Shekhar <x0044955@ti.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Oct 06, 2008
-
-
Tony Lindgren authored
Misc updates from linux-omap tree, mostly to update common device initialization and add missing defines from linux-omap tree. Also some changes to make room for adding 34xx in following patches. Note that the I2C resources are now set up in arch/arm/plat-omap/i2c.c helper, and can be removed from devices.c. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Fix sparse, checkpatch warnings fro GPMC code. Also change to use ioremap, and add missing function prototypes to gpmc.h. Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Vikram Pandita authored
This patch adds pinmux support for OMAP3. Incorporated review comments from Tony to make mux_value as bit mask. Tested on 3430SDP. Also merge in adding of I2C pins from Jarkko Nikula. Acked-by:
Anand Gadiyar <gadiyar@ti.com> Signed-off-by:
Vikram Pandita <vikram.pandita@ti.com> Signed-off-by:
Jarkko Nikula <jarkko.nikula@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
This allows to get rid of the ifdefs and will allow simpler CPU detection in the future. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
Some register offsets are different for 242x and 243x. This will allow compiling sleep code for both chips into the same kernel. Pass the addresses for SDRC_DDLA_CTRL and SDRC_POWER to the omap24xx_cpu_suspend instead of loading the values since the only. Also fix a bug to call omap2_sram_suspend with the value of SDRC_DLLA_CTRL instead of the address as that's what omap24xx_cpu_suspend expects to determine between DDR and SDR. This bug has not been noticed as the boards seem to have DDR instead of SDR. Note that some PM patches are still missing. The PM patches will be added later on once the base files are in sync with linux-omap tree. Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Jouni Hogander authored
This patch adds common function to enable/disable omap2/3 uart clocks. Enabled uarts are passed by bootloader in atags and clocks for these enabled uarts are touched. Signed-off-by:
Jouni Hogander <jouni.hogander@nokia.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
- Sep 06, 2008
-
-
Russell King authored
Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Sep 05, 2008
-
-
Russell King authored
Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
OMAP1_IO_ADDRESS(), OMAP2_IO_ADDRESS() and IO_ADDRESS() returns cookies for use with __raw_{read|write}* for accessing registers. Therefore, these macros should return (void __iomem *) cookies, not integer values. Doing this improves typechecking, and means we can find those places where, eg, DMA controllers are incorrectly given virtual addresses to DMA to, or physical addresses are thrown through a virtual to physical address translation. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Sep 04, 2008
-
-
Russell King authored
mcbsp is confused as to what takes a physical or virtual address. Fix the two instances where it gets it wrong. Acked-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Sep 01, 2008
-
-
Russell King authored
Add asm/cputype.h, moving functions and definitions from asm/system.h there. Convert all users of 'processor_id' to the more efficient read_cpuid_id() function. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Aug 27, 2008
-
-
Russell King authored
Taken from omap 97b705ad835f1481270c4b67b402d6e37fa8ad15: ARM: OMAP: Misc compile fixes after syncing with mainline Also fix 2430 smc91x to use IRQ_LOWLEVEL. Signed-off-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Aug 21, 2008
-
-
Paul Walmsley authored
Add clkdm_get_pwrdm() to the clockdomain code. It will return a pointer to the powerdomain struct that the clockdomain is contained within. Used by the PM code. Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Paul Walmsley authored
OMAP3430ES2+ introduces a new feature: optional powerdomain context hardware save-and-restore (SAR). Currently, this feature only applies to USBHOST and USBTLL module context when the USBHOST or CORE powerdomains enter a low-power sleep state[1]. This feature avoids re-enumeration of USB devices when the powerdomains return from idle, which is potentially time-consuming. This patch adds support for enabling and disabling hardware save-and-restore to the powerdomain code. Three new functions are added, pwrdm_enable_hdwr_sar(), pwrdm_disable_hdwr_sar(), and pwrdm_can_hdwr_sar(). A new struct powerdomain "flags" field is added, with a PWRDM_HAS_HDWR_SAR flag to indicate powerdomains with SAR support. Thanks to Jouni Högander <jouni.hogander@nokia.com> for reviewing an earlier version of these patches, and Richard Woodruff <r-woodruff2@ti.com> for clarifying the purpose of these bits. 1. For the USBHOST controller module, context loss occurs when the USBHOST powerdomain enters off-idle. For USBTLL, context loss occurs either if CORE enters off-idle, or if the CORE logic is configured to turn off when CORE enters retention-idle (OSWR). 34xx ES2 TRM 4.8.6.1.1, 4.8.6.1.2 Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- Aug 19, 2008
-
-
Högander Jouni authored
E.g dss_l3_ick and dss_l4_ick have same gating control. Having own clock for both of them causes race condition between enable / disable. This patch combines this kind of clocks and names new clock as <module>_ick. Signed-off-by:
Jouni Hogander <jouni.hogander@nokia.com> Acked-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
This patch integrates the OMAP3 clock tree with the clockdomain code. This patch: - marks OMAP34xx clocks with their corresponding clockdomain. - adds code to convert the clockdomain name to a clockdomain pointer in the struct clk during clk_register(). - modifies OMAP2 clock usecounting to call into the clockdomain code when clocks are enabled or disabled. Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Associate each OMAP24xx clock in arch/arm/mach-omap2/clock24xx.h with a clockdomain. Also move the L4 clock up higher in the file in preparation to define the SSI L4 iclk. Signed-off-by:
Paul Walmsley <paul@pwsan.com> Signed-off-by:
Tony Lindgren <tony@atomide.com>
-