Tony Lindgren [Thu, 16 Aug 2007 07:22:43 +0000 (00:22 -0700)]
musb_hdrc: Add Nokia copyright, make GPLv2 license generic
This patch adds Nokia copyright, and makes the license text
generic to cover all parties involved by removing "Inventra
Controller Driver" and "Mentor Graphics" specific text from
the license.
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>
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>
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.
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.
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>
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>
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>
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>
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
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>
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>
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>
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>
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>