1. 09 3月, 2011 1 次提交
    • P
      OMAP1: McBSP: fix build break for non-multi-OMAP1 configs · e7916740
      Paul Walmsley 提交于
      Commit 3cf32bba ("OMAP: McBSP: Convert
      McBSP to platform device model") breaks compilation with non-multi-OMAP1
      configs:
      
        CC      arch/arm/mach-omap1/mcbsp.o
      arch/arm/mach-omap1/mcbsp.c: In function 'omap1_mcbsp_init':
      arch/arm/mach-omap1/mcbsp.c:384: warning: dereferencing 'void *' pointer
      arch/arm/mach-omap1/mcbsp.c:387: error: invalid use of void expression
      arch/arm/mach-omap1/mcbsp.c:390: warning: dereferencing 'void *' pointer
      arch/arm/mach-omap1/mcbsp.c:393: error: invalid use of void expression
      
      Fix by avoiding NULL dereferences.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Kishon Vijay Abraham I <kishon@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Acked-by: NJarkko Nikula <jhnikula@gmail.com>
      [tony@atomide.com: updated description not to remove unnecessary branch name]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      e7916740
  2. 25 2月, 2011 1 次提交
  3. 18 2月, 2011 1 次提交
  4. 10 2月, 2011 2 次提交
  5. 04 2月, 2011 1 次提交
  6. 03 2月, 2011 1 次提交
  7. 02 2月, 2011 1 次提交
  8. 28 1月, 2011 9 次提交
    • A
      arm: mach-omap1: board-voiceblue: add missing include · 232bc651
      Aaro Koskinen 提交于
      Eliminates the following sparse warnings:
      
      	arch/arm/mach-omap1/board-voiceblue.c:253:6: warning: symbol 'voiceblue_wdt_enable' was not declared. Should it be static?
      	arch/arm/mach-omap1/board-voiceblue.c:261:6: warning: symbol 'voiceblue_wdt_disable' was not declared. Should it be static?
      	arch/arm/mach-omap1/board-voiceblue.c:269:6: warning: symbol 'voiceblue_wdt_ping' was not declared. Should it be static?
      	arch/arm/mach-omap1/board-voiceblue.c:278:6: warning: symbol 'voiceblue_reset' was not declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      232bc651
    • R
      ARM: OMAP: Allow platforms to hook reset cleanly · ee54dba9
      Russell King - ARM Linux 提交于
      This adds a clean method to allow platforms to hook into the reset
      code if they require to.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ee54dba9
    • A
      arm: mach-omap1: board-h3: make nand_platdata static · 277a2856
      Aaro Koskinen 提交于
      Eliminates the following sparse warning:
      
      	arch/arm/mach-omap1/board-h3.c:207:27: warning: symbol 'nand_platdata' was not declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      277a2856
    • A
      arm: mach-omap1: board-htcherald: make htcpld_chips and htcpld_pfdata static · 140089da
      Aaro Koskinen 提交于
      Eliminates the following sparse warnings:
      
      	arch/arm/mach-omap1/board-htcherald.c:334:34: warning: symbol 'htcpld_chips' was not declared. Should it be static?
      	arch/arm/mach-omap1/board-htcherald.c:369:34: warning: symbol 'htcpld_pfdata' was not declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      140089da
    • A
      arm: mach-omap1: board-innovator: make innovator_mmc_init() static · 04023542
      Aaro Koskinen 提交于
      Eliminates the following sparse warning:
      
      	arch/arm/mach-omap1/board-innovator.c:368:13: warning: symbol 'innovator_mmc_init' was not declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      04023542
    • A
      arm: mach-omap1: board-h2: make h2_nand_platdata static · 5db98f75
      Aaro Koskinen 提交于
      Eliminates the following sparse warning:
      
      	arch/arm/mach-omap1/board-h2.c:205:27: warning: symbol 'h2_nand_platdata' was not declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      5db98f75
    • F
      arm: omap1: fix a bunch of section mismatches · bdc58fb9
      Felipe Balbi 提交于
      Fix the following section mismatches:
      WARNING: arch/arm/mach-omap1/built-in.o(.data+0x491c): Section mismatch
      in reference from the variable fsample_config to the (unknown reference)
      .init.data:(unknown)
      The variable fsample_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: arch/arm/mach-omap1/built-in.o(.data+0x8f0c): Section mismatch
      in reference from the variable ams_delta_config to the (unknown
      reference) .init.data:(unknown)
      The variable ams_delta_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: arch/arm/mach-omap1/built-in.o(.data+0x93ac): Section mismatch
      in reference from the variable ams_delta_camera_device to the (unknown
      reference) .init.data:(unknown)
      The variable ams_delta_camera_device references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: vmlinux.o(.data+0x5e94): Section mismatch in reference from the
      variable fsample_config to the (unknown reference) .init.data:(unknown)
      The variable fsample_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: vmlinux.o(.data+0xa484): Section mismatch in reference from the
      variable ams_delta_config to the (unknown reference)
      .init.data:(unknown)
      The variable ams_delta_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: vmlinux.o(.data+0xa924): Section mismatch in reference from the
      variable ams_delta_camera_device to the (unknown reference)
      .init.data:(unknown)
      The variable ams_delta_camera_device references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the
      variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      bdc58fb9
    • F
      arm: omap1: fix compile warning · ae3126ed
      Felipe Balbi 提交于
      Fix the following compile warning:
      arch/arm/mach-omap1/board-palmte.c:233:13: warning:
      'palmte_headphones_detect' defined but not used
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ae3126ed
    • T
      omap1: Simplify use of omap_irq_flags · efe318a3
      Tony Lindgren 提交于
      Commit 03a9e512
      (omap1: Use asm_irq_flags for entry-macro.S) added support
      for multi-omap builds with addition of the omap_irq_flags.
      
      Commit 9f9605c2
      (omap2+: Fix unused variable warning for omap_irq_base)
      simplified omap2+ entry-macro.S by moving omap_irq_flags
      out of entry-macro.S.
      
      Simplify omap1 entry-macro.S in a similar way to keep the
      code consistent. Based on a similar earlier patch for omap2+
      by Russell King <rmk+kernel@arm.linux.org.uk>.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      efe318a3
  9. 20 1月, 2011 2 次提交
  10. 19 1月, 2011 2 次提交
    • T
      omap1: Fix sched_clock for the MPU timer · f376ea17
      Tony Lindgren 提交于
      Otherwise systems using the MPU timer will hang.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      f376ea17
    • P
      OMAP: counter_32k: init clocksource as part of machine timer init · d8328f3b
      Paul Walmsley 提交于
      After commit dc548fbb ("ARM: omap: convert
      sched_clock() to use new infrastructure"), OMAPs that use the 32KiHz
      "synchronization timer" as their clocksource crash during boot:
      
      [    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
      [    0.000000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
      [    0.000000] pgd = c0004000
      [    0.000000] [00000000] *pgd=00000000
      [    0.000000] Internal error: Oops: 80000005 [#1] SMP
      [    0.000000] last sysfs file:
      [    0.000000] Modules linked in:
      [    0.000000] CPU: 0    Tainted: G        W    (2.6.37-07734-g2467802 #7)
      [    0.000000] PC is at 0x0
      [    0.000000] LR is at sched_clock_poll+0x2c/0x3c
      [    0.000000] pc : [<00000000>]    lr : [<c0060b74>]    psr: 600001d3
      [    0.000000] sp : c058bfd0  ip : c058a000  fp : 00000000
      [    0.000000] r10: 00000000  r9 : 411fc092  r8 : 800330c8
      [    0.000000] r7 : c05a08e0  r6 : c0034c48  r5 : c05ffc40  r4 : c0034c4c
      [    0.000000] r3 : c05ffe6c  r2 : c05a0bc0  r1 : c059f098  r0 : 00000000
      [    0.000000] Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
      [    0.000000] Control: 10c53c7f  Table: 8000404a  DAC: 00000017
      
      This is due to the recent ARM init_sched_clock() changes and the late
      initialization of the counter_32k clock source.  More information here:
      
         http://marc.info/?l=linux-omap&m=129513468605208&w=2
      
      Fix by initializing the counter_32k clocksource during the machine timer
      initialization.
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Tested-by: NThomas Weber <weber@corscience.de>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      d8328f3b
  11. 14 1月, 2011 1 次提交
  12. 06 1月, 2011 2 次提交
  13. 23 12月, 2010 2 次提交
  14. 22 12月, 2010 1 次提交
  15. 21 12月, 2010 6 次提交
  16. 11 12月, 2010 2 次提交
  17. 10 12月, 2010 1 次提交
  18. 08 12月, 2010 4 次提交
    • T
      omap1: Fix gpio mpuio bank to work for multi-omap for 7xx/15xx/16xx · 5de62b86
      Tony Lindgren 提交于
      We need to divide the 15xx/16xx offset by 2 for 7xx. Use bank->stride
      for that. This allows us to get rid of the duplicate defines for the
      MPUIO registers.
      
      Note that this will cause omap-keypad.c driver to not work on 7xx.
      However, the right fix there is to move over to matrix_keypad instead
      as suggested by Cory Maccarrone <darkstar6262@gmail.com> and
      Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>.
      
      Cc: Cory Maccarrone <darkstar6262@gmail.com>
      Acked-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      5de62b86
    • V
      OMAP: GPIO: Implement GPIO as a platform device · 77640aab
      Varadarajan, Charulatha 提交于
      Implement GPIO as a platform device.
      
      GPIO APIs are used in machine_init functions. Hence it is
      required to complete GPIO probe before board_init. Therefore
      GPIO device register and driver register are implemented as
      postcore_initcalls.
      
      omap_gpio_init() does nothing now and this function would be
      removed in the next patch as it's usage is spread across most
      of the board files.
      
      Inorder to convert GPIO as platform device, modifications are
      required in clockxxxx_data.c file for OMAP1 so that device names
      can be used to obtain clock instead of getting clocks by
      name/NULL ptr.
      
      Use runtime pm APIs (pm_runtime_put*/pm_runtime_get*) for enabling
      or disabling the clocks, modify sysconfig settings and remove usage
      of clock FW APIs.
      Note 1: Converting GPIO driver to use runtime PM APIs is not done as a
      separate patch because GPIO clock names are different for various OMAPs
      and are different for some of the banks in the same CPU. This would need
      usage of cpu_is checks and bank id checks while using clock FW APIs in
      the gpio driver. Hence while making GPIO a platform driver framework,
      PM runtime APIs are used directly.
      
      Note 2: While implementing GPIO as a platform device, pm runtime APIs
      are used as mentioned above and modification is not done in gpio's
      prepare for idle/ resume after idle functions. This would be done
      in the next patch series and GPIO driver would be made to use dev_pm_ops
      instead of sysdev_class in that series only.
      
      Due to the above, the GPIO driver implicitly relies on
      CM_AUTOIDLE = 1 on its iclk for power management to work, since the
      driver never disables its iclk.
      This would be taken care in the next patch series (see Note 3 below).
      
      Refer to
      http://www.mail-archive.com/linux-omap@vger.kernel.org/msg39112.html
      for more details.
      
      Note 3: only pm_runtime_get_sync is called in gpio's probe() and
      pm_runtime_put* is never called. This is to make the implementation
      similar to the existing GPIO code. Another patch series would be sent
      to correct this.
      
      In OMAP3 and OMAP4 gpio's debounce clocks are optional clocks. They
      are enabled/ disabled whenever required using clock framework APIs
      
      TODO:
      1. Cleanup the GPIO driver. Use function pointers and register
      offest pointers instead of using hardcoded values
      2. Remove all cpu_is_ checks and OMAP specific macros
      3. Remove usage of gpio_bank array so that only
         instance specific information is used in driver code
      4. Rename 'method'/ avoid it's usage
      5. Fix the non-wakeup gpios handling for OMAP2430, OMAP3 & OMAP4
      6. Modify gpio's prepare for idle/ resume after idle functions
         to use runtime pm implentation.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Reviewed-by: NBasak, Partha <p-basak2@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      [tony@atomide.com: updated for bank specific revision and updated boards]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      77640aab
    • V
      OMAP7xx: GPIO: Introduce support for GPIO init · 9d52342c
      Varadarajan, Charulatha 提交于
      Add support for handling OMAP7xx specific gpio_init by
      providing platform device data and doing device registration.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9d52342c
    • V
      OMAP16xx: GPIO: Introduce support for GPIO init · 87fe6229
      Varadarajan, Charulatha 提交于
      Add support for handling OMAP16xx specific gpio_init by
      providing platform device data and doing device registration.
      Signed-off-by: NCharulatha V <charu@ti.com>
      Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      87fe6229