1. 10 Mar, 2012 1 commit
  2. 08 Mar, 2012 3 commits
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix build for omap4 only builds with missing include of linux/bug.h · 4647ca57
      Tony Lindgren authored
      Found few more with randconfig generated .configs:
      
      In file included from arch/arm/mach-omap2/prm-regbits-34xx.h:17,
                       from arch/arm/mach-omap2/vc.c:18:
      arch/arm/mach-omap2/prm2xxx_3xxx.h: In function ‘omap2_prm_read_mod_reg’:
      arch/arm/mach-omap2/prm2xxx_3xxx.h:239: error: implicit declaration of function ‘WARN’
      
      In file included from arch/arm/mach-omap2/powerdomain44xx.c:22:
      arch/arm/mach-omap2/prm2xxx_3xxx.h: In function ‘omap2_prm_read_mod_reg’:
      arch/arm/mach-omap2/prm2xxx_3xxx.h:239: error: implicit declaration of function ‘WARN’
      
      This is because omap2_prm functions are currently just stubs for
      omap4 only builds.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      4647ca57
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix section warnings for hsmmc_init_one · 6028505c
      Tony Lindgren authored
      Otherwise we can get the following error depending on
      the compiler:
      
      WARNING: arch/arm/mach-omap2/built-in.o(.text+0xafe0):
      Section mismatch in reference from the function omap_hsmmc_init_one()
      to the function .init.text:omap_hsmmc_pdata_init()
      The function omap_hsmmc_init_one() references
      the function __init omap_hsmmc_pdata_init().
      This is often because omap_hsmmc_init_one lacks a __init
      annotation or the annotation of omap_hsmmc_pdata_init is wrong.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      6028505c
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix build issues with missing include of linux/bug.h · d9a5f4dd
      Tony Lindgren authored
      Otherwise we can get the following if bug.h is not included from kernel.h:
      
      arch/arm/mach-omap2/powerdomain-common.c:
      In function 'omap2_pwrdm_get_mem_bank_onstate_mask':
      arch/arm/mach-omap2/powerdomain-common.c:64:3: error:
      implicit declaration of function 'WARN_ON' [-Werror=implicit-function-declaration]
      cc1: some warnings being treated as errors
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      d9a5f4dd
  3. 07 Mar, 2012 3 commits
    • Olof Johansson's avatar
      Merge branch 'fixes-non-critical-part2' of... · 269f6a93
      Olof Johansson authored
      Merge branch 'fixes-non-critical-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/fixes-non-critical
      
      * 'fixes-non-critical-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        ARM: OMAP3+: PM: VP: fix integer truncation error
        ARM: OMAP2+: PM: fix wakeupgen warning when hotplug disabled
        ARM: OMAP2+: PM: fix section mismatch with omap2_init_processor_devices()
        ARM: OMAP2: Fix section warning for n8x0 when CONFIG_MMC_OMAP is not set
        ARM: OMAP2+: Fix omap24xx_io_desc warning if SoC subtypes are not selected
        ARM: OMAP1: Fix section mismatch for omap1_init_early()
        ARM: OMAP1: Fix typo in lcd_dma.c
        ARM: OMAP: mailbox: trivial whitespace fix
        ARM: OMAP: Remove definition cpu_is_omap4430()
        ARM: OMAP2+: included some headers twice
        ARM: OMAP: clock.c: included linux/debugfs.h twice
        ARM: OMAP: don't build hwspinlock in vain
        ARM: OMAP2+: ads7846_init: put gpio_pendown into pdata if it's provided
        ARM: omap: pandora: fix usbhs platform data
        ARM: OMAP: sram: Add am33xx SRAM support (minimal)
        ARM: OMAP2+: id: Add am33xx SoC type detection
        ARM: OMAP2+: GPMC: Export gpmc_enable_hwecc and gpmc_calculate_ecc
        ARM: OMAP: dmtimer: fix missing content/correction in low-power mode support
      269f6a93
    • Olof Johansson's avatar
      Merge branch 'fixes-non-critical' of... · 412fe6b3
      Olof Johansson authored
      Merge branch 'fixes-non-critical' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/fixes-non-critical
      
      * 'fixes-non-critical' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        Revert "ARM: OMAP2+: Fix multiple randconfig errors with SOC_OMAP and SOC_OMAP_NOOP"
      412fe6b3
    • Yuan Jiangli's avatar
      ARM: OMAP3+: PM: VP: fix integer truncation error · 3223d007
      Yuan Jiangli authored
      commit 2f34ce81
      (OMAP3: PM: Adding voltage driver support.)
      introduced runtime computation of waittime to handle all potential
      sys clocks available.
      
      In the voltage processor, the SPMSUpdateWait is calculated based on
      the slew rate and the voltage step (SMPSUpdateWait = slew rate *
      Voltage Step). After the voltage processor receives the SMPS_Ack
      signal, the Voltage Controller will wait for SMPSUpdateWait clock
      cycles for the voltage to settle to the new value. For all
      practical purposes, the waittime parameter is the OMAP hardware
      translation of what the slew rate on the PMIC is.
      
      As an example, with TPS62361 on OMAP4460,
      step_size = 10000
      slew_rate = 32000
      sys_clk_rate = 38400
      
      Our current computation results in the following:
       = ((step_size / slew_rate) * sys_clk_rate) / 1000
       = ((10000 / 32000) * 38400 / 1000
       = 0
      
      Fix the same using DIV_ROUND_UP as an extra wait clock cycle
      is better than lesser clock cycle. For the above example, this
      translates to:
       = (10000 * 38400) / (1000 * 32000)
       = 12
      Acked-by: default avatarJon Hunter <jon-hunter@ti.com>
      [nm@ti.com: slightly better implementation]
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarYuan Jiangli <jlyuan@motorola.com>
      Acked-by: default avatarKevin Hilman <khilman@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      3223d007
  4. 06 Mar, 2012 19 commits
  5. 29 Feb, 2012 14 commits