1. 16 7月, 2010 1 次提交
  2. 21 5月, 2010 1 次提交
  3. 15 5月, 2010 1 次提交
  4. 06 5月, 2010 4 次提交
  5. 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
  6. 23 4月, 2010 1 次提交
  7. 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
  8. 26 2月, 2010 1 次提交
  9. 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
  10. 16 2月, 2010 5 次提交
  11. 13 2月, 2010 1 次提交
  12. 27 1月, 2010 1 次提交
  13. 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
  14. 09 1月, 2010 3 次提交
  15. 12 12月, 2009 10 次提交
  16. 09 12月, 2009 1 次提交
  17. 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