]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
16 years agotsc210x cleanup
David Brownell [Tue, 14 Aug 2007 05:38:13 +0000 (22:38 -0700)]
tsc210x cleanup

This is mostly cleanup of the tsc210x patch, but some bugs were fixed so now
it works on tsc2101 too.  Also, a few issues are now noted in the code:

 Tool-reported:
  - Address checkpatch.pl issues in the original patch
  - And also "sparse" issues

 Previously wrong:
  - Cope with CONFIG_SOUND_MODULE
  - Register accessor routines will now return error codes
  - ... many callers now abort cleanly after errors
  - Don't depend on seeing only a rev #1 tsc2102 chip!
  - Add missing EXPORT_SYMBOL declarations

 Style issues:
  - BUG_ON() is strongly to be avoided
  - So are macros that capture variables
  - And needless casting from void pointers
  - And type punning
  - Use dev_*() for messaging where practical
  - Use u16 not uint16_t, etc
  - Various other whitespace issues
  - Avoid __FUNCTION__
  - Single-lines for file-top comments; no whole paths

 Object code size and Other cleanup:
  - Compile most strings out unless -DDEBUG is configured (saving space)
  - Move some code into exit sections (then it may well vanish, saving space)
  - Add some header comments

 Open issues:
  - Hwmon needs to know VREF and the chip type, and to scale its values
  - Upstream push should exclude audio until some version is working
  - Audio will needs to export symbols to modules, too
  - Lots of the I/O calls (especially audio) still don't handle errors
  - How could board init code get board-specific temp calibration data?

Also the Kconfig is more open-ended; tsc210x might in the future include the
tsc2100 and tsc2111, it doesn't need to be limited to tsc2101 and tsc2102.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
16 years agomenelaus minor cleanups
David Brownell [Wed, 15 Aug 2007 10:50:54 +0000 (03:50 -0700)]
menelaus minor cleanups

Remove duplicate Menelaus Kconfig entry (omap tree only).

Fix Menelaus build error, and remove needless "#define DEBUG" (goes upstream).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
16 years agomcspi can be modular...
David Brownell [Tue, 14 Aug 2007 05:49:11 +0000 (22:49 -0700)]
mcspi can be modular...

Don't assume only non-modular builds.  Just in case someone's crazy.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoremove useless/wrong P20_24XX_TSC_IRQ mux
David Brownell [Tue, 14 Aug 2007 05:47:13 +0000 (22:47 -0700)]
remove useless/wrong P20_24XX_TSC_IRQ mux

Remove bogus TSC_IRQ pinmux; it's not used, there's no pin
dedicated for touchscreen (or other TSC chip) purposes, and
this doesn't even look right for P20 (0x10b not 0x108, plus
an IRQ would need to be a GPIO i.e. mux 3 not mux 0).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Keep tusb host clock on when VBUS is on
Tony Lindgren [Wed, 15 Aug 2007 10:47:05 +0000 (03:47 -0700)]
musb_hdrc: Keep tusb host clock on when VBUS is on

Otherwise host mode will not work when OMAP idles

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Stop VBUS draw on usb_gadget_unregister_driver
Tony Lindgren [Wed, 15 Aug 2007 09:12:20 +0000 (12:12 +0300)]
musb_hdrc: Stop VBUS draw on usb_gadget_unregister_driver

If musb_gadget_vbus_draw() also toggles a clock like tusb does,
USB clock will stay on after rmmoding a gadget driver. This
can block omap idle states.

Also handle disconnect as b_idle so that musb_gadget_vbus_draw()
gets called.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Fix ambiguous else warning
Tony Lindgren [Wed, 15 Aug 2007 10:43:57 +0000 (03:43 -0700)]
musb_hdrc: Fix ambiguous else warning

Fix ambiguous else warning

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Keep tusb osc_ck enabled during idle even in OTG mode
Tony Lindgren [Tue, 14 Aug 2007 11:28:23 +0000 (04:28 -0700)]
musb_hdrc: Keep tusb osc_ck enabled during idle even in OTG mode

In OTG mode VBUS draw mA can be 8mA which can be less than
musb->min_power. When connected as OTG device, tusb does not
keep osc_ck enabled without this patch.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoMerge branch 'tusb-search-replace'
Tony Lindgren [Tue, 14 Aug 2007 09:20:58 +0000 (02:20 -0700)]
Merge branch 'tusb-search-replace'

16 years agomusb_hdrc: Fix revision check for tusb3.1
Tony Lindgren [Tue, 14 Aug 2007 09:19:04 +0000 (02:19 -0700)]
musb_hdrc: Fix revision check for tusb3.1

In order to detect between tusb3.0 and 3.1, die id register
must be checked.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace channelNum with chnum
Tony Lindgren [Mon, 13 Aug 2007 12:20:32 +0000 (05:20 -0700)]
musb_hdrc: Search and replace channelNum with chnum

Search and replace channelNum with chnum

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wPacketSize with packet_sz
Tony Lindgren [Mon, 13 Aug 2007 12:19:18 +0000 (05:19 -0700)]
musb_hdrc: Search and replace wPacketSize with packet_sz

Search and replace wPacketSize with packet_sz

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bTx with tx
Tony Lindgren [Mon, 13 Aug 2007 12:18:32 +0000 (05:18 -0700)]
musb_hdrc: Search and replace bTx with tx

Search and replace bTx with tx

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wCsrVal with csr
Tony Lindgren [Mon, 13 Aug 2007 12:18:19 +0000 (05:18 -0700)]
musb_hdrc: Search and replace wCsrVal with csr

Search and replace wCsrVal with csr

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pRequest with request
Tony Lindgren [Mon, 13 Aug 2007 12:13:53 +0000 (05:13 -0700)]
musb_hdrc: Search and replace pRequest with request

Search and replace pRequest with request

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bRecip with recip
Tony Lindgren [Mon, 13 Aug 2007 12:03:44 +0000 (05:03 -0700)]
musb_hdrc: Search and replace bRecip with recip

Search and replace bRecip with recip

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bSetAddress with set_address
Tony Lindgren [Mon, 13 Aug 2007 12:02:09 +0000 (05:02 -0700)]
musb_hdrc: Search and replace bSetAddress with set_address

Search and replace bSetAddress with set_address

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bResult with result
Tony Lindgren [Mon, 13 Aug 2007 12:01:01 +0000 (05:01 -0700)]
musb_hdrc: Search and replace bResult with result

Search and replace bResult with result

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pControlRequest with ctrlrequest
Tony Lindgren [Mon, 13 Aug 2007 11:59:35 +0000 (04:59 -0700)]
musb_hdrc: Search and replace pControlRequest with ctrlrequest

Search and replace pControlRequest with ctrlrequest

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace MGC_pfDmaProgramChannel with dma_program_channel
Tony Lindgren [Mon, 13 Aug 2007 11:58:08 +0000 (04:58 -0700)]
musb_hdrc: Search and replace MGC_pfDmaProgramChannel with dma_program_channel

Search and replace MGC_pfDmaProgramChannel with dma_program_channel

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bMode with mode
Tony Lindgren [Mon, 13 Aug 2007 11:56:26 +0000 (04:56 -0700)]
musb_hdrc: Search and replace bMode with mode

Search and replace bMode with mode

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bDesiredMode with desired_mode
Tony Lindgren [Mon, 13 Aug 2007 11:55:31 +0000 (04:55 -0700)]
musb_hdrc: Search and replace bDesiredMode with desired_mode

Search and replace bDesiredMode with desired_mode

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bStatus with status
Tony Lindgren [Mon, 13 Aug 2007 11:54:53 +0000 (04:54 -0700)]
musb_hdrc: Search and replace bStatus with status

Search and replace bStatus with status

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace dwActualLength with actual_len
Tony Lindgren [Mon, 13 Aug 2007 11:53:05 +0000 (04:53 -0700)]
musb_hdrc: Search and replace dwActualLength with actual_len

Search and replace dwActualLength with actual_len

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace dwMaxLength with max_len
Tony Lindgren [Mon, 13 Aug 2007 11:52:38 +0000 (04:52 -0700)]
musb_hdrc: Search and replace dwMaxLength with max_len

Search and replace dwMaxLength with max_len

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pPrivateData with private_data
Tony Lindgren [Mon, 13 Aug 2007 11:52:24 +0000 (04:52 -0700)]
musb_hdrc: Search and replace pPrivateData with private_data

Search and replace pPrivateData with private_data

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pProcEntry with proc_entry
Tony Lindgren [Mon, 13 Aug 2007 11:33:23 +0000 (04:33 -0700)]
musb_hdrc: Search and replace pProcEntry with proc_entry

Search and replace pProcEntry with proc_entry

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bDelayPortPowerOff with delay_port_power_off
Tony Lindgren [Mon, 13 Aug 2007 11:32:55 +0000 (04:32 -0700)]
musb_hdrc: Search and replace bDelayPortPowerOff with delay_port_power_off

Search and replace bDelayPortPowerOff with delay_port_power_off

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pGadgetDriver with gadget_driver
Tony Lindgren [Mon, 13 Aug 2007 11:32:13 +0000 (04:32 -0700)]
musb_hdrc: Search and replace pGadgetDriver with gadget_driver

Search and replace pGadgetDriver with gadget_driver

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bTestMode with test_mode
Tony Lindgren [Mon, 13 Aug 2007 11:31:36 +0000 (04:31 -0700)]
musb_hdrc: Search and replace bTestMode with test_mode

Search and replace bTestMode with test_mode

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bTestModeValue with test_mode_nr
Tony Lindgren [Mon, 13 Aug 2007 11:30:49 +0000 (04:30 -0700)]
musb_hdrc: Search and replace bTestModeValue with test_mode_nr

Search and replace bTestModeValue with test_mode_nr

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bAddress with address
Tony Lindgren [Mon, 13 Aug 2007 11:28:48 +0000 (04:28 -0700)]
musb_hdrc: Search and replace bAddress with address

Search and replace bAddress with address

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bBulkCombine with bulk_combine
Tony Lindgren [Mon, 13 Aug 2007 11:23:48 +0000 (04:23 -0700)]
musb_hdrc: Search and replace bBulkCombine with bulk_combine

Search and replace bBulkCombine with bulk_combine

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bBulkSplit with bulk_split
Tony Lindgren [Mon, 13 Aug 2007 11:22:38 +0000 (04:22 -0700)]
musb_hdrc: Search and replace bBulkSplit with bulk_split

Search and replace bBulkSplit with bulk_split

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bIgnoreDisconnect with ignore_disconnect
Tony Lindgren [Mon, 13 Aug 2007 11:21:42 +0000 (04:21 -0700)]
musb_hdrc: Search and replace bIgnoreDisconnect with ignore_disconnect

Search and replace bIgnoreDisconnect with ignore_disconnect

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bIsMultipoint with is_multipoint
Tony Lindgren [Mon, 13 Aug 2007 11:20:42 +0000 (04:20 -0700)]
musb_hdrc: Search and replace bIsMultipoint with is_multipoint

Search and replace bIsMultipoint with is_multipoint

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pDmaController with dma_controller
Tony Lindgren [Mon, 13 Aug 2007 11:18:58 +0000 (04:18 -0700)]
musb_hdrc: Search and replace pDmaController with dma_controller

Search and replace pDmaController with dma_controller

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wMaxPacketSizeRx with max_packet_sz_rx
Tony Lindgren [Mon, 13 Aug 2007 11:17:26 +0000 (04:17 -0700)]
musb_hdrc: Search and replace wMaxPacketSizeRx with max_packet_sz_rx

Search and replace wMaxPacketSizeRx with max_packet_sz_rx

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wMaxPacketSizeTx with max_packet_sz_tx
Tony Lindgren [Mon, 13 Aug 2007 11:16:20 +0000 (04:16 -0700)]
musb_hdrc: Search and replace wMaxPacketSizeTx with max_packet_sz_tx

Search and replace wMaxPacketSizeTx with max_packet_sz_tx

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bIsSharedFifo with is_shared_fifo
Tony Lindgren [Mon, 13 Aug 2007 11:14:45 +0000 (04:14 -0700)]
musb_hdrc: Search and replace bIsSharedFifo with is_shared_fifo

Search and replace bIsSharedFifo with is_shared_fifo

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Get rid of old unused MUSB_EpFifoDescriptor
Tony Lindgren [Mon, 13 Aug 2007 11:13:20 +0000 (04:13 -0700)]
musb_hdrc: Get rid of old unused MUSB_EpFifoDescriptor

Get rid of old unused MUSB_EpFifoDescriptor

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bIsHost with is_host
Tony Lindgren [Mon, 13 Aug 2007 11:10:20 +0000 (04:10 -0700)]
musb_hdrc: Search and replace bIsHost with is_host

Search and replace bIsHost with is_host

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace _pthis with _musb
Tony Lindgren [Mon, 13 Aug 2007 11:08:53 +0000 (04:08 -0700)]
musb_hdrc: Search and replace _pthis with _musb

Search and replace _pthis with musb

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace MGC_SelectEnd with musb_ep_select
Tony Lindgren [Mon, 13 Aug 2007 11:06:31 +0000 (04:06 -0700)]
musb_hdrc: Search and replace MGC_SelectEnd with musb_ep_select

Search and replace MGC_SelectEnd with musb_ep_select

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace Lock with lock
Tony Lindgren [Mon, 13 Aug 2007 11:04:23 +0000 (04:04 -0700)]
musb_hdrc: Search and replace Lock with lock

Search and replace Lock with lock

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bEnd with epnum
Tony Lindgren [Mon, 13 Aug 2007 11:01:13 +0000 (04:01 -0700)]
musb_hdrc: Search and replace bEnd with epnum

Search and replace bEnd with epnum

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bEnd0Stage with ep0_stage
Tony Lindgren [Mon, 13 Aug 2007 10:59:10 +0000 (03:59 -0700)]
musb_hdrc: Search and replace bEnd0Stage with ep0_stage

Search and replace bEnd0Stage with ep0_stage

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bEndNumber with current_epnum
Tony Lindgren [Mon, 13 Aug 2007 10:47:34 +0000 (03:47 -0700)]
musb_hdrc: Search and replace bEndNumber with current_epnum

Search and replace bEndNumber with current_epnum

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bEndCount with nr_endpoints
Tony Lindgren [Mon, 13 Aug 2007 10:23:34 +0000 (03:23 -0700)]
musb_hdrc: Search and replace bEndCount with nr_endpoints

Search and replace bEndCount with nr_endpoints

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace aLocalEnd with endpoints
Tony Lindgren [Mon, 13 Aug 2007 10:21:18 +0000 (03:21 -0700)]
musb_hdrc: Search and replace aLocalEnd with endpoints

Search and replace aLocalEnd with endpoints

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace bLocalEnd with epnum
Tony Lindgren [Mon, 13 Aug 2007 10:17:55 +0000 (03:17 -0700)]
musb_hdrc: Search and replace bLocalEnd with epnum

Search and replace bLocalEnd with epnum

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wCount with len
Tony Lindgren [Mon, 13 Aug 2007 10:10:15 +0000 (03:10 -0700)]
musb_hdrc: Search and replace wCount with len

Search and replace wCount with len

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace wFifoCount with fifo_count
Tony Lindgren [Mon, 13 Aug 2007 10:08:23 +0000 (03:08 -0700)]
musb_hdrc: Search and replace wFifoCount with fifo_count

Search and replace wFifoCount with fifo_count

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace dwCount with len
Tony Lindgren [Mon, 13 Aug 2007 10:05:37 +0000 (03:05 -0700)]
musb_hdrc: Search and replace dwCount with len

Search and replace dwCount with len

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pDest with dst
Tony Lindgren [Mon, 13 Aug 2007 09:53:58 +0000 (02:53 -0700)]
musb_hdrc: Search and replace pDest with dst

Search and replace pDest with dst

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pSource with src
Tony Lindgren [Mon, 13 Aug 2007 09:52:54 +0000 (02:52 -0700)]
musb_hdrc: Search and replace pSource with src

Search and replace pSource with src

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pBase with mbase
Tony Lindgren [Mon, 13 Aug 2007 09:50:41 +0000 (02:50 -0700)]
musb_hdrc: Search and replace pBase with mbase

Search and replace pBase with mbase

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pRegs with mregs
Tony Lindgren [Mon, 13 Aug 2007 09:49:14 +0000 (02:49 -0700)]
musb_hdrc: Search and replace pRegs with mregs

Search and replace pRegs with mregs

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pEnd with musb_ep when struct musb_hw_ep
Tony Lindgren [Mon, 13 Aug 2007 09:44:37 +0000 (02:44 -0700)]
musb_hdrc: Search and replace pEnd with musb_ep when struct musb_hw_ep

Search and replace pEnd with musb_ep when struct musb_hw_ep

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pEnd with musb_ep when struct musb_ep
Tony Lindgren [Mon, 13 Aug 2007 09:43:23 +0000 (02:43 -0700)]
musb_hdrc: Search and replace pEnd with musb_ep when struct musb_ep

Search and replace pEnd with musb_ep when struct musb_ep

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pEndPt with hw_ep
Tony Lindgren [Mon, 13 Aug 2007 09:21:56 +0000 (02:21 -0700)]
musb_hdrc: Search and replace pEndPt with hw_ep

Search and replace pEndPt with hw_ep

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agomusb_hdrc: Search and replace pThis with musb
Tony Lindgren [Mon, 13 Aug 2007 09:18:21 +0000 (02:18 -0700)]
musb_hdrc: Search and replace pThis with musb

Search and replace pThis with musb

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoRevert "OMAP: Adding Support for 2K nand page support for omap2430"
Tony Lindgren [Mon, 13 Aug 2007 09:03:43 +0000 (02:03 -0700)]
Revert "OMAP: Adding Support for 2K nand page support for omap2430"

This reverts commit ebd641a5ea79f88cae62e97e3dade8e646195a18.

Revert until the rest of the patches get integrated to fix
build.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoFix omap2430 clock build error
Woodruff, Richard [Fri, 10 Aug 2007 16:51:21 +0000 (11:51 -0500)]
Fix omap2430 clock build error

This fixes a build error for 2430.  fixed_div is under a 2420 only define and it should be OMAP2.

Signed-off-by: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoFix warning in arch/arm/mach-omap2/timer-gp.c
Kyungmin Park [Mon, 13 Aug 2007 08:58:09 +0000 (01:58 -0700)]
Fix warning in arch/arm/mach-omap2/timer-gp.c

Fix warning in arch/arm/mach-omap2/timer-gp.c
arch/arm/mach-omap2/timer-gp.c: In function `omap2_gp_timer_set_mode':
arch/arm/mach-omap2/timer-gp.c:89: warning: enumeration value
`CLOCK_EVT_MODE_RESUME' not handled in switch

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Fix section mismatch warning
Dirk Behme [Sun, 12 Aug 2007 07:14:08 +0000 (09:14 +0200)]
ARM: OMAP: Fix section mismatch warning

Fix

WARNING: vmlinux.o(.text+0x1554c): Section mismatch: reference to
.init.text:reserve_bootmem (between 'omapfb_reserve_sdram' and
'omap_32k_timer_set_mode')

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Fix warning in plat-omap/mmu.c
Dirk Behme [Sun, 12 Aug 2007 07:13:44 +0000 (09:13 +0200)]
ARM: OMAP: Fix warning in plat-omap/mmu.c

Fix warning

arch/arm/plat-omap/mmu.c:1277: warning: initialization from
incompatible pointer type
arch/arm/plat-omap/mmu.c:1278: warning: initialization from
incompatible pointer type

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoRevert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck"
Tony Lindgren [Mon, 13 Aug 2007 08:52:54 +0000 (01:52 -0700)]
Revert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck"

This reverts commit 18fc252e78d914a150e278682425303c132a688d.

As noted by Richard Woodruff, with this the system gets the
wrong osc speed and ends up setting the system speed wrongly.

Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoMENELAUS: Remove unnecessary pr_err definition
Felipe Balbi [Fri, 10 Aug 2007 12:01:51 +0000 (08:01 -0400)]
MENELAUS: Remove unnecessary pr_err definition

Instead of defining a pr_err() macro, we can use dev_err() macro.

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoOMAP: Adding Support for 2K nand page support for omap2430
sshahrom@micron.com [Fri, 10 Aug 2007 10:22:31 +0000 (03:22 -0700)]
OMAP: Adding Support for 2K nand page support for omap2430

Following patches would add support for 2k Page nand with Enabled HW ECC
on omap2430 v4.0. It has been Tested with Micron Nand. The Patch is
against 2.6.22 linux-omap.git tree. As Always all the comments are welcomed.

Signed-off-by: Shahrom Sharif-Kashani <sshahrom@micron.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP2: Add camera block base address definition.
Sakari Ailus [Fri, 13 Jul 2007 08:35:51 +0000 (11:35 +0300)]
ARM: OMAP2: Add camera block base address definition.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoOMAP VIDEO: Convert printk to dev_{dbg,err,info} macros
Felipe Balbi [Tue, 24 Jul 2007 18:28:08 +0000 (14:28 -0400)]
OMAP VIDEO: Convert printk to dev_{dbg,err,info} macros

Use dev_* macros instead of direct printks. Better readability
for camera_core.c

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoVIDEO OMAP: camera_core whitespace cleanup
Felipe Balbi [Tue, 24 Jul 2007 18:28:07 +0000 (14:28 -0400)]
VIDEO OMAP: camera_core whitespace cleanup

Whitespace removal from camera_core.[ch]

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: full-retention fix for 2430
Kevin Hilman [Tue, 24 Jul 2007 22:36:51 +0000 (15:36 -0700)]
ARM: OMAP: full-retention fix for 2430

This fixes a bug where the 2430 crashes upon entering full-retention
due to a register difference between 2420 and 2430.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: cleanup: remove OMAP_MCBSP Kconfig warnings
Kevin Hilman [Mon, 6 Aug 2007 15:13:12 +0000 (08:13 -0700)]
ARM: OMAP: cleanup: remove OMAP_MCBSP Kconfig warnings

When the OMAP patches are applied and the kernel is built for a
non-ARM target, there are a handful of Kconfig warnings due to the use
of OMAP_MCBSP in arch-independent Kconfig files.

This patch simply removes the 'select OMAP_MCBSP' in these
arch-independent files since it is already 'default y' in
arch/arm/plat-omap/Kconfig

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Remove unnecessary N800 PM board specific file
Trilok Soni [Mon, 6 Aug 2007 15:10:43 +0000 (11:10 -0400)]
ARM: OMAP: Remove unnecessary N800 PM board specific file

From: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>

Remove unnecessary N800 PM board specific file

- Remove unnecessary arch/arm/mach-omap2/board-n800-pm.c file, according with
Trilok's early patch [1], that moves board-n800-pm.c code to board-n800.c

[1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commitdiff;h=0d6d581ffec0296f429a777187945943f2127e8f

Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Remove unnecessary N800 PM board specific file

Remove unnecessary arch/arm/mach-omap2/board-n800-pm.c file, according
with Trilok's early patch, that moves board-n800-pm.c code to board-n800.c

Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: Put LCD drivers back to Makefile.
Sakari Ailus [Tue, 7 Aug 2007 13:06:17 +0000 (16:06 +0300)]
ARM: OMAP: Put LCD drivers back to Makefile.

Put back references to lcd_apollon.o, lcd_2430sdp.o and lcd_mipid.o that
were lost in merge to drivers/video/omap/Makefile.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: get rid of omap2_followparent_recalc()
Paul Walmsley [Thu, 2 Aug 2007 18:10:24 +0000 (12:10 -0600)]
omap2 clock: get rid of omap2_followparent_recalc()

omap2_followparent_recalc() just calls followparent_recalc(), so,
get rid of omap2_followparent_recalc().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: remove fixed rate from mdm_osc_ck
Paul Walmsley [Thu, 2 Aug 2007 18:10:23 +0000 (12:10 -0600)]
omap2 clock: remove fixed rate from mdm_osc_ck

mdm_osc_ck has a preinitialized rate and is marked as RATE_FIXED, but rather
than using omap2_propagate_rate() as its recalc function, which accounts
for RATE_FIXED clocks, it uses omap2_followparent_recalc(), which sets the
rate to the parent clock's rate.  After reviewing the 2430 TRM, fix this
inconsistency by removing the fixed rate declarations (TRM says that this
clock is 'typically' 26MHz).

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: add fixed divisor clock code
Paul Walmsley [Thu, 2 Aug 2007 18:10:22 +0000 (12:10 -0600)]
omap2 clock: add fixed divisor clock code

The rates of some clocks are equal to their parents' rates, divided by some
fixed integer.  This contrasts with the existing 'followparent' clocks,
which follow their parents' rates strictly; and the existing 'clksel' clocks,
which follow their parents' rates divided by a runtime-selectable divisor.
Add code to implement these clocks without resorting to specifying a
fixed rate.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: use dedicated omap2_dpll_recalc() for DPLL recalc func
Paul Walmsley [Thu, 2 Aug 2007 18:10:21 +0000 (12:10 -0600)]
omap2 clock: use dedicated omap2_dpll_recalc() for DPLL recalc func

dpll_ck is not a clksel clock, and so it does not really fit well into
omap2_clksel_recalc().  Split off its recalc code into its own function,
omap2_dpll_recalc().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: Use symbolic constants in clock.c
Paul Walmsley [Thu, 2 Aug 2007 18:10:20 +0000 (12:10 -0600)]
omap2 clock: Use symbolic constants in clock.c

Convert most of the magic numbers remaining in mach-omap2/clock.c to
symbolic constants.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: Cleanup in clksel-related code; add sys_clkout2 divisor handling
Paul Walmsley [Thu, 2 Aug 2007 18:10:19 +0000 (12:10 -0600)]
omap2 clock: Cleanup in clksel-related code; add sys_clkout2 divisor handling

Convert omap2_get_clksel to use void __iomem *.  Add
omap2_divisor_to_clksel(), to convert clock divisors into appropriate
register bit field values.  Use non-shifted register bit field masks
in clksel code, rather than masks that have been preshifted down to
bit 0 -- this simplifies existing code and facilitates the use of
symbolic constants from the recent PRCM cleanup.  Also add code to
properly handle divisors for sys_clkout2 on OMAP2420.  Previously
this clock's divisor settings were ignored.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: From: Paul Walmsley <paul@pwsan.com> Subject:
Paul Walmsley [Thu, 2 Aug 2007 18:10:18 +0000 (12:10 -0600)]
omap2 clock: From: Paul Walmsley <paul@pwsan.com> Subject:

Clean up omap2_clk_set_parent() by bailing out early if the clock is not
parent-selectable.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: return -EINVAL if no clock enable code; fix dpll_ck enable
Paul Walmsley [Thu, 2 Aug 2007 18:10:17 +0000 (12:10 -0600)]
omap2 clock: return -EINVAL if no clock enable code; fix dpll_ck enable

If the clock framework can't figure out how to enable a clock, return
-EINVAL to indicate that the clock cannot be enabled.  Previously the
code returned 0, which indicated success.

Also fix the "clock.c: Enable for dpll_ck without enable code" boot
warning by marking dpll_ck as ALWAYS_ENABLED.  This is not technically
true, since the DPLL can be bypassed; but since we currently have no
software infrastructure to control it directly, ALWAYS_ENABLED is a
sufficient fiction for dpll_ck.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: omap2 clock.c: Consolidate wait-for-lock code
Paul Walmsley [Thu, 2 Aug 2007 18:10:16 +0000 (12:10 -0600)]
omap2 clock: omap2 clock.c: Consolidate wait-for-lock code

omap2 clock.c contains two nearly identical wait-for-clock-enable routines.
Consolidate them into one omap2_wait_clock_ready() function.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: convert PARENT_CONTROLS_CLOCK into a clock flag
Paul Walmsley [Thu, 2 Aug 2007 18:10:15 +0000 (12:10 -0600)]
omap2 clock: convert PARENT_CONTROLS_CLOCK into a clock flag

The clock framework currently uses a magic value in struct clk
.enable_bit to indicate that the clock's parent controls enabling and
disabling the clock.  There's no need to use this type of in-band
special value when there's already a good means to indicate binary
clock parameters: the clock flags field.  This patch converts the
existing PARENT_CONTROLS_CLOCK code to use a clock flag.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: vlynq_fck is missing clksel divider code
Paul Walmsley [Thu, 2 Aug 2007 18:10:14 +0000 (12:10 -0600)]
omap2 clock: vlynq_fck is missing clksel divider code

vlynq_fck is a clksel clock.  But omap2_clk_set_parent() is missing
the code to divide its parent's rate down appropriately when vlynq_fck
is set to use a core_ck parent.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: fix some clocks incorrectly marked as present on OMAP2430
Paul Walmsley [Thu, 2 Aug 2007 18:10:13 +0000 (12:10 -0600)]
omap2 clock: fix some clocks incorrectly marked as present on OMAP2430

Several clocks are marked as present on OMAP2430, even though they are
2420-only.  Drop CLOCK_IN_OMAP243X from those clocks' flags.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: use symbolic constants in clock.h rate_offset/src_offset fields
Paul Walmsley [Thu, 2 Aug 2007 18:10:12 +0000 (12:10 -0600)]
omap2 clock: use symbolic constants in clock.h rate_offset/src_offset fields

Convert most of the magic numbers remaining in mach-omap2/clock.h to
symbolic constants.  This primarily affects the src_offset/rate_offset
fields.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: move SDRC-related code from clock.c to memory.c
Paul Walmsley [Thu, 2 Aug 2007 18:10:11 +0000 (12:10 -0600)]
omap2 clock: move SDRC-related code from clock.c to memory.c

The clock framework contains two functions, omap2_dll_force_needed()
and omap2_reprogram_sdrc(), which are SDRC code, not really clock
code.  So, move these functions to memory.c.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: clean up dss2_fck clock flags
Paul Walmsley [Thu, 2 Aug 2007 18:10:10 +0000 (12:10 -0600)]
omap2 clock: clean up dss2_fck clock flags

dss2_fck is not a fixed-rate clock; its rate is dependent on its parent's
rate.  So, drop the .rate assignment and drop the RATE_FIXED clock flag.
It also is a leaf clock - no clocks have it as a parent - so it can't
propagate its rate anywhere.  So, drop the RATE_PROPAGATES and fix the
recalc function pointer accordingly.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: get rid of sleep_ck
Paul Walmsley [Thu, 2 Aug 2007 18:10:09 +0000 (12:10 -0600)]
omap2 clock: get rid of sleep_ck

According to the 2420 TRM rev J, SLEEP_CLK doesn't have any registers
or bits associated with it, so it's outside software control.  It's
also a leaf clock - no software-controllable clocks use it as a
parent.  There's nothing we can do with it in software.  So, drop it.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: drop unnecessary variable in omap2_clk_round_rate()
Paul Walmsley [Thu, 2 Aug 2007 18:10:08 +0000 (12:10 -0600)]
omap2 clock: drop unnecessary variable in omap2_clk_round_rate()

Drop an unnecessary variable, valid_rate, in omap2_clk_round_rate().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: fix CodingStyle issues
Paul Walmsley [Thu, 2 Aug 2007 18:10:07 +0000 (12:10 -0600)]
omap2 clock: fix CodingStyle issues

Clean up some CodingStyle non-conformances in clock.c.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: vlynq_fck recalc should be clksel, not followparent
Paul Walmsley [Thu, 2 Aug 2007 18:10:06 +0000 (12:10 -0600)]
omap2 clock: vlynq_fck recalc should be clksel, not followparent

vlynq_fck is a clksel clock, so its rate is equal to its parent's
rate, divided by whichever divisor is selected.  But its definition in
clock.h specifies omap2_followparent_recalc() as its rate calculation
code, which sets the clock's rate to that of its parent without
accounting for any divisor.  Fix to use omap2_clksel_recalc() instead.
omap2_clksel_recalc() is also missing the appropriate special case to
divide the vlynq_fck rate down; add this in.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: fix clksel divisor bug
Paul Walmsley [Thu, 2 Aug 2007 18:10:05 +0000 (12:10 -0600)]
omap2 clock: fix clksel divisor bug

For clksel clocks, omap2_clk_set_rate() incorrectly divides the parent
clock's rate by the actual bits of the register field, rather than the
translated divisor value.  This happens to work for most clksel
clocks, since the register bit fields are equal to the divisor values.
But for some clocks, such as sys_clkout, the code gets the resulting
rate wrong.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: fix incorrect rate calculation for osc_ck, sys_ck
Paul Walmsley [Thu, 2 Aug 2007 18:10:04 +0000 (12:10 -0600)]
omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck

omap2_get_crystal_rate() calculates osc_ck and sys_ck rates
incorrectly.  osc_ck runs at the same rate as the external clock
source.  Also, sys_ck's rate derives from osc_ck's rate, divided (not
multiplied) by PRCM_CLKSRC_CTRL:SYSCLKDIV.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoomap2 clock: drop meaningless RATE_CKCTLs
Paul Walmsley [Thu, 2 Aug 2007 18:10:03 +0000 (12:10 -0600)]
omap2 clock: drop meaningless RATE_CKCTLs

Drop the RATE_CKCTL clock flag from iva1_mpu_int_ifck, gfx_ick, ssi_l4_ick,
and dss_ick.  These clocks are not source-selectable, which is the practical
meaning of RATE_CKCTL in the 2420 clock framework.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
16 years agoARM: OMAP: 2430SDP: turn off secondary LCD backlight on boot
Kevin Hilman [Mon, 30 Jul 2007 22:55:28 +0000 (15:55 -0700)]
ARM: OMAP: 2430SDP: turn off secondary LCD backlight on boot

There is not yet any driver for the secondary LCD, so turn off
the backlight on boot.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>