- 25 May, 2007 40 commits
-
-
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>
-
David Brownell authored
Partial build fixes for tsc2101 audio. It still won't link though, it needs undefined omap_tsc2101_{read,write}() functions to access chip registers ... and requires that e.g. tsc2102 audio isn't also configured (they use the same exported McBSP DMA functions, which likewise prevent use with EAC). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
The OMAP SPI controller drivers handle SPI_CPHA incorrectly. It should mean: CPHA=0 ... sample at leading edge of clock CPHA=1 ... sample at trailing edge of clock This fixes them, and the protocol drivers which depended on the wrong meaning. Separate ads7846 and omap_uwire patches are going upstream, already since those drivers were already pushed there. The tsc2102 code already had this right ... strange. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Kevin Hilman <khilman@mvista.com>
-
andrzej zaborowski authored
The TSC2102 option in drivers/input/touchscreen/Kconfig got lost somewhere in January (although the commit is not visible in git-web), so adding it back. Also remove the input_dev.dev assignment due to an upstream change. Signed-off-by: Andrzej Zaborowski <balrog@zabor.org> From 492e5cbe39613f06b8146c12bff9500259739fd5 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski <balrog@zabor.org> Date: Tue, 22 May 2007 20:08:47 +0200 Subject: [PATCH] Re-add a lost TSC2102 touchscreen Kconfig entry. The TSC2102 option in drivers/input/touchscreen/Kconfig got lost somewhere in January (although the commit is not visible in git-web), so adding it back. Also remove the input_dev.dev assignment due to an upstream change. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
andrzej zaborowski authored
- CONFIG_BACKLIGHT_DEVICE now became CONFIG_BACKLIGHT_CLASS_DEVICE. - Re-add OMAPBL_MAX_INTENSITY usage that was removed in last commit and the macro became unused. Signed-off-by: Andrzej Zaborowski <balrog@zabor.org> From feb798039e5c6e06f64556ad482dbbd021153a1b Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski <balrog@zabor.org> Date: Tue, 22 May 2007 19:59:11 +0200 Subject: [PATCH] OMAP: Update omap-bl Kconfig entry. - CONFIG_BACKLIGHT_DEVICE is now CONFIG_BACKLIGHT_CLASS_DEVICE. - Re-add OMAPBL_MAX_INTENSITY usage that became unused after last commit. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in OMAP2 board-generic.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in OMAP1 board-generic.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-2430sdp.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-palmz71.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-palmtt.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-palmte.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-sx1.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-p2.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-n800.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-nokia770.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Dirk Behme authored
Fix section mismatch in board-h4.c Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-