1. 06 5月, 2010 1 次提交
    • J
      OMAP1: Amstrad Delta: add FIQ handler for serial keyboardport interrupt processing · 60c3bf3f
      Janusz Krzysztofik 提交于
      This patch introduces a Fast Interrupt Request (FIQ) handler for Amstrad Delta
      (E3) videophone. The handler's purpose is to process interrupts generated by a
      GPIO line that a serial keyboard clock hangs off. It collects consecutive bits
      into words, pushing them into a buffer, then requests a higher level interrupt
      after one or more words are ready for further processing by a keyboard port
      driver.
      
      The handler also processes interrupts generated by two other GPIO lines, used
      by other on-board supported devices, by simply requesting a higher level
      interrupt, that in turn should invoke those device's specific irq handlers.
      
      IRQ12 line, not used by OMAP1510 hardware (described as reserved), has been
      choosen as a higher level interrupt source.
      Signed-off-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      60c3bf3f
  2. 04 5月, 2010 1 次提交
    • T
      omap: Use a memory address for storing the debug port info instead of UART1 scratchpad · 96554d70
      Tony Lindgren 提交于
      This removes the dependency to the UART1 being available for storing
      the debug configuration in uncompress.h. This will simplify the
      DEBUG_LL UART configuration for boards that may not have UART1, or
      have an external UART as it requires only one mapping for DEBUG_LL.
      
      The patch has a few limitations. Basically now we're assuming that
      the kernel uncompress code won't overlap with OMAP_UART_INFO. We also
      assume the printascii is called at least once before paging_init in
      order for addruart to have a chance to read the UART setup from
      OMAP_UART_INFO.
      
      As suggested by Cyril Chemparathy <cyril@ti.com>,
      Vikram Pandita <vikram.pandita@ti.com> and
      Kevin Hilman <khilman@deeprootsystems.com>. Based on an earlier
      patch posted for Davinci by Cyril Chemparathy <cyril@ti.com>.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      96554d70
  3. 23 4月, 2010 1 次提交
  4. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  5. 26 2月, 2010 1 次提交
  6. 25 2月, 2010 3 次提交
    • S
      OMAP4: clock: Add dummy clock nodes for interface clocks · 7c43d547
      Santosh Shilimkar 提交于
      On OMAP4 platform the iclk control is completly under hardware control
      and no software control is available.
      
      This difference w.r.t previous OMAP's needs all the common driver
      accross OMAP's , cpu_is_xxxx() checks. To avoid poulluting the
      drivers dummy clock nodes are created (The autogeneration
      script has been updated accordingly).
      Signed-off-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Signed-off-by: NBenoit Cousson <b-cousson@ti.com>
      [paul@pwsan.com: made OMAP1 dummy_ck common and edited patch to reuse that]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      7c43d547
    • P
      OMAP clock: drop RATE_FIXED clock flag · 51c19541
      Paul Walmsley 提交于
      The RATE_FIXED clock flag is pointless.  In the OMAP1 clock code, it
      simply causes the omap1_clk_round_rate() function to return the
      current rate of the clock.  omap1_clk_round_rate(), however, should
      never be called for a fixed-rate clock, since none of these clocks
      have a .round_rate function pointer set in their struct clk records.
      Similarly, in the OMAP2+ clock code, the RATE_FIXED flag just causes
      the clock code to emit a warning if the OMAP clock maintainer was
      foolish enough to add a .round_rate function pointer to a fixed-rate
      clock.  "Doctor, it hurts when I pretend that a fixed-rate clock is
      rate-changeable."  "Then don't pretend that a fixed-rate clock is
      rate-changeable."  It has no functional value.  This patch drops the
      RATE_FIXED clock flag, removing it from all clocks that are so marked.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Richard Woodruff <r-woodruff2@ti.com>
      51c19541
    • P
      OMAP clock: drop .id field; ensure each clock has a unique name · b92c170d
      Paul Walmsley 提交于
      After the clkdev conversion, the struct clk.id field became
      superfluous, so, drop it.  Bring the clock names closer to the TRMs
      and ensure they are unique for debugfs.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      b92c170d
  7. 16 2月, 2010 5 次提交
  8. 13 2月, 2010 1 次提交
  9. 27 1月, 2010 1 次提交
  10. 21 1月, 2010 1 次提交
    • P
      OMAP1 clock: fix for "BUG: spinlock lockup on CPU#0" · af022faf
      Paul Walmsley 提交于
      Commit 52650505 caused clock initialization
      to fail on OMAP1 with "BUG: spinlock lockup on CPU#0" -- this is because
      omap1_select_table_rate() and omap1_round_to_table_rate() call clk_get_rate()
      with the clockfw spinlock held.  Fix by accessing the rate directly from
      the internal clock framework functions.
      
      Thanks to Tony Lindgren <tony@atomide.com> for reporting and testing the fix.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Tony Lindgren <tony@atomide.com>
      af022faf
  11. 09 1月, 2010 3 次提交
  12. 12 12月, 2009 10 次提交
  13. 09 12月, 2009 1 次提交
  14. 23 11月, 2009 4 次提交
    • C
      omap1: Add board support and LCD for HTC Herald · 9c2816f7
      Cory Maccarrone 提交于
      This patch introduces support for the HTC Herald (T-Mobile
      Wing, etc.) series of smart phones -- board support and LCD
      panel settings.
      Signed-off-by: NCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9c2816f7
    • C
      omap1: omap_udc: Add clocking and disable vbus sense for omap7xx · 45f780a0
      Cory Maccarrone 提交于
      The l3_ocpi_ck clock is needed on omap7xx processors for USB.
      Additionally, bit 8 of the SOFT_REQ_REG needs to be enabled for
      the usb_dc_ck on omap7xx, which is a different bit than that
      of the omap16xx-defined clock of the same name.
      
      I added a provision for the usb_dc_ck and l3_ocpi_ck clocks as
      dc_clk and hhc_clk, respectively, for omap7xx CPUs.  Additionally,
      I added a check in machine_without_vbus_sense for all omap7xx
      devices, as presently I know of no omap7xx-based devices that
      have vbus sense, and it made more sense to me to use a cpu check
      here than to spell out each machine one at a time.  Finally, DMA
      is disabled for omap7xx, as it causes problems with these chips.
      
      Cc: linux-usb@vger.kernel.org
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      45f780a0
    • C
      omap1: mmc: Add platform init for omap7xx · 490a5665
      Cory Maccarrone 提交于
      The MMC mux pins normally used by omap chips in devices.c
      are different from what is needed by omap7xx chips.  This
      change adds a conditional around the mux setup code to
      enable the correct mux pins.
      
      The omap730 and omap850 both use a different clock for the "fck"
      clock of the MMC interface than other omap processors based on the
      SOFT_REQ_REG, pin 12.  The "ick" clock is the same as that used
      by other omap processors.
      
      * Added the missing clock definition as mmc3_ck to clock.h
      * Added the clock definition to omap_clks in clock.c
      * Added CK_7XX to the mmci-omap.0 "ick" clock already in clock.c
      
      With these changes, it is now possible to initialize and use MMC
      cards with omap730 and omap850 devices.
      Signed-off-by: NCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      490a5665
    • A
      omap: Eliminate OMAP_MAX_NR_PORTS · 9d30b99f
      Alexander Shishkin 提交于
      Eliminate OMAP_MAX_NR_PORTS
      
      Note that also the null terminator entry for omap1
      serial_platform_data needs to be now removed to avoid
      oopsing.
      
      Note that mach-omap1 uses struct plat_serial8250_port
      array, which requires a null terminator at the end,
      and that's why we need to use ARRAY_SIZE - 1. This
      is not needed on mach-omap2 as the array used is
      struct omap_uart_state, and does not use a null
      terminator.
      Signed-off-by: NAlexander Shishkin <virtuoso@slind.org>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9d30b99f
  15. 23 10月, 2009 2 次提交
    • J
      omap1: Fix DSP public peripherals support for ams-delta · b3dba0b8
      Janusz Krzysztofik 提交于
      DSP public peripherals used to work on OMAP1510 based (or all OMAP1 class?)
      machines as long as old dspgateway code were present in the l-o tree. For
      several months it is no longer included, breaking support for McBSP1 based
      audio on Amstrad Delta, for example.
      
      This patch, derived from the old dspgateway code, corrects the problem for the
      board by simply taking the DSP out of reset state, I guess. That way, things
      should not break when a new dsp code is added to the tree, and the change can
      be reverted then.
      
      If there are any reports on McBSP1 or other DSP public peripherals not working
      for other OMAP1 machines (I've not heard of any for now), I can prepare a more
      general patch providing an extra include file with a helper function defined.
      
      Created and tested against linux-2.6.32-rc5
      Signed-off-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b3dba0b8
    • J
      omap1: Fix redundant UARTs pin muxing that can break other hardware support · c33da3a8
      Janusz Krzysztofik 提交于
      Commit 15ac408e removed enabled_uart
      and OMAP_TAG_UART. This works for mach-omap2, but causes issues on
      mach-omap1 for some boards as the mach-omap1 serial.c was muxing
      pins based on the enabled_uart flag for 15xx.
      
      Fix this by muxing pins in board-*.c files for the 15xx boards for
      the uart ports that had enabled_uart flag set before the commit
      above.
      
      Tested on Amsdtrad Delta only.
      
      Note that in the future we should add support for powering down
      the uarts with a timer like mach-omap2/serial.c does. Otherwise
      the enabled uarts will be blocking retention-while-idle.
      Signed-off-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c33da3a8
  16. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  17. 20 10月, 2009 3 次提交
    • T
      omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 · 3eff851b
      Tony Lindgren 提交于
      Create the headers needed for compiling under
      mach-omap1/include/mach and mach-omap2/include/mach.
      
      This was done with the following script:
      
      #!/bin/bash
      mach_files="clkdev.h gpio.h hardware.h io.h irqs.h memory.h \
      smp.h system.h timex.h uncompress.h vmalloc.h"
      omaps="mach-omap1 mach-omap2"
      
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      
      mkdir -p $plat_dir_new
      git add $plat_dir_new
      
      for dir in $omaps; do
      	mach_dir_new="arch/arm/$dir/include/mach"
      	for header in $mach_files; do
      		file="$mach_dir_new/$header"
      		if [ ! -f $file ]; then
      			echo -ne "/*\n * $file\n */\n\n#include <plat/$header>\n" > $file
      			git add $file
      			if [ ! -f $plat_dir_new/$header ]; then
      				git mv $mach_dir_old/$header $plat_dir_new/$header
      			fi
      		fi
      	done
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3eff851b
    • T
      omap: headers: Move mtd-xip.h to be mach-omap1 specific · 1e79ab8a
      Tony Lindgren 提交于
      These registers are omap1 specific.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      1e79ab8a
    • T
      omap: Split vmalloc.h for mach-omap1 and mach-omap2 · 72464dba
      Tony Lindgren 提交于
      Earlier patch "omap: Remap L3, L4 to get more kernel io address space"
      changed the VMALLOC_END.
      
      However, this change causes problems on mach-omap1:
      
      BUG: mapping for 0xe0000000 at 0xe0000000 overlaps vmalloc space
      BUG: mapping for 0xe1000000 at 0xe1000000 overlaps vmalloc space
      
      Fix this by creating separate vmalloc.h files for mach-omap1
      and mach-omap2.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      72464dba