- 25 May, 2007 40 commits
-
-
Vikram Pandita authored
Fix Mentor controller DMA for OMAP2430/3430 Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> Signed-off-by: Nishant Kamat <nskamat@ti.com> Acked-by: Kevin Hilman <khilman@mvista.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Kevin Hilman authored
OMAP2430 builds/boots ok for me, but as Khem just pointed out, OMAP1 builds are broken. This patch gets OMAP1 building again: Signed-off-by: Kevin Hilman <khilman@mvista.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for OMAP3430 base addresses; include that file in hardware.h. Remove #error in omap24xx.h on unknown architecture type. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for Power/Reset Management register bits for the OMAP3430 architecture. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for Clock Management register bits for the OMAP3430 architecture. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants to prm.h for Power/Reset Management registers on the OMAP3430. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants to cm.h for Clock Management registers for the OMAP3430. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add OMAP3430 register bit defines that are shared between the Clock Management and Power/Reset Management registers. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add 3430-specific module offset defines to prcm_common.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
All of the users of prcm-regs.h have been patched - remove prcm-regs.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Remove remaining prcm-regs.h includes. Most of these files don't use prcm-regs.h anyway. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert the OMAP2-specific code in plat-omap/dsp to use the new PRCM read/write functions and symbolic constants for registers and register bits. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert magic numbers in the enable_bit member of the struct clk definitions in clock.h to use the new-style register bit defines from {prm,cm}_regbits_24xx.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert the symbolic constants in the enable_reg member of the struct clk definitions in clock.h to use the new-style register defines from {prm,cm}.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Use OMAP2_PRM_BASE and OMAP2_CM_BASE in sram-fn.s to prepare for the OMAP3430 conversion. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Replace magic numbers and prcm-regs.h-sourced defines, for readability and in preparation to remove prcm-regs.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Replace magic numbers, prcm-regs.h-sourced defines, and local defines with the new PRCM register and register bit defines. Also convert register read/write code to use {cm,prm}_{read,write}_{,mod}_reg(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Replace magic numbers, prcm-regs.h-sourced defines, and local defines with the new PRCM register and register bit defines. Also convert register read/write code to use {cm,prm}_{read,write}_{,mod}_reg(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for Power/Reset Management register bits for the OMAP2420 and OMAP2430 architectures. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for Clock Management register bits for the OMAP2420 and OMAP2430 architectures. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add Power/Reset Management register bit defines to prm.h that are shared between OMAP24XX and OMAP3430. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for OMAP24XX Power/Reset Management registers, along with read/write functions. The registers are divided into two groups: global registers and module registers. Global registers appear only once on the chip, and are used with prm_{read,write}_reg(). Module registers generally appear more than once, in different OMAP modules, and have similar functions in each module. They are used with prm_{read,write}_mod_reg(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add Clock Management register bit defines to cm.h that are shared between OMAP24XX and OMAP3430. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for OMAP24XX Clock Management registers, along with read/write functions. The registers are divided into two groups: global registers and module registers. Global registers appear only once on the chip, and are used with cm_{read,write}_reg(). Module registers generally appear more than once, in different OMAP modules, and have similar functions in each module. They are used with cm_{read,write}_mod_reg(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add symbolic constants for OMAP2_PRM_BASE and OMAP2_CM_BASE addresses. On the 2420 and 2430 these are the same, but on later OMAP architectures, they are different. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add OMAP24XX register bit defines that are shared between the Clock Management and Power/Reset Management registers. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add 24XX-specific module offset defines to prcm_common.h. Also add module offsets that are shared between OMAP2/3. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Remove SDRC registers from prcm-regs.h, since they are now located in sdrc.h. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert files that use SDRC registers in mach-omap2/ to use sdrc.h symbolic constants and sdrc_{read,write}_reg(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Create sdrc.h, containing symbolic constants for SDRC registers and sdrc_{read,write}_reg() to read and write those registers. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Change users of OMAP24XX_CTRL_BASE to use OMAP2_CTRL_BASE. Remove the OMAP24XX_CTRL_BASE define. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Change users of OMAP24XX_SDRC_BASE to use OMAP2_SDRC_BASE. Remove the OMAP24XX_SDRC_BASE define. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Change users of OMAP24XX_PRCM_BASE to use OMAP2_PRCM_BASE. Remove the OMAP24XX_PRCM_BASE define. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Change users of OMAP24XX_32KSYNCT_BASE to use OMAP2_32KSYNCT_BASE, in preparation to remove OMAP24XX_32KSYNCT_BASE. Convert the 32K sync timer reference in pm.c to use a symbolic constant rather than a magic number. Remove the OMAP24XX_32KSYNCT_BASE define. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Redo the defines in omap24xx.h to fix poorly-named defines, such as OMAP24XX_SDRC_BASE, which is different between 2420 and 2430. Also, prepare for future multi-architecture kernels by removing the architecture prefixes from several of the defines. (Presumably in the future these will be assigned to 'static void __iomem *'s by runtime init code depending on the CPU type.) Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Kevin Hilman authored
Removes the tsc2046 specific driver, and changes the 2430SDP platform code to use the ads7846 instead. Signed-off-by: Kevin Hilman <khilman@mvista.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
David Brownell authored
McSPI functional updates: - Implement the spi_transfer.delay_usecs mechanism (previously omitted). - Remove strange per-device <asm/arch/mcspi.h> hookery ... it's not even correct as a per-device config. We *always* want "single channel" mode (in "keep chipselect active" mode); and if we used "turbo", it would be a per-transfer option (as an rx-only double buffering tweak). - When enabling/disabling a channel, old value is irrelevant; don't read. - Sanity check spi->mode bits, and reject ones we don't support. - Streamline DMA channel selection: do it once during probe(), using static tables; smaller, faster. OMAP 2430 still needs changes here, minimally for the third SPI controller. (Board init should change too, to not assume all SPI controllers are used on every board...) - Remove #ifdefs around doing reset on driver startup ... enable clocks so we can do that (!), and turn on auto-idle. - Waste less time enabling/disabling the clocks while working the queue. - Flag DMA channels as freed when we do so ... so they can't get reused later (when another driver may own them). - Minor PIO fix: don't need to verify TX side completed except for TX_ONLY mode, since RX completed implies TX completed. - Remove bogus code which always dropped chipselect after the last RX_ONLY word (rather than leaving it enabled). - Move error checks out of work loop into setup() and transfer(), so that they're reported ASAP rather than as mysterious transfer errors). Plus a handful of cleanups: whitespace fixes, comments. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Initial updates for McSPI driver: - bug fixes: * handle byte-wide tx pio correctly for multiple bytes * cleanup workqueue on module exit * allow modular build (and rmmod) * request_mem_region * remove wrongly exported driver symbol - cleanup: * remove needless debug strings from object file * remove needless init and exit sections from object file * remove superfluous get/put of spi_master * fix whitespace and indentation bugs * fix line-too-long bugs * use spi_master_*() calls not class_*() calls * use dev_*() messaging not printk Combined with the next patch, this gives around a 10% shrink to the driver footprint, improves correctness, and helps it get ready to merge upstream. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Fixes some Kconfig glitches with lcd_mipid.c ... I suspect this driver should use SPI_MODE_0 now (but, no specs so I can't know). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Various fixes needed to build the tsc2102 audio. Several fixes relate specifically to building it as a module. Note that this doesn't address the need for omap-alsa-dma.c to go into a separate module so that e.g. tsc2101 and tsc2102 modules can both be built, or the assumption that the audio is going out over McBSP not EAC. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-