1. 16 10月, 2012 3 次提交
  2. 14 10月, 2012 1 次提交
    • R
      ARM: config: sort select statements alphanumerically · b1b3f49c
      Russell King 提交于
      As suggested by Andrew Morton:
      
        This is a pet peeve of mine.  Any time there's a long list of items
        (header file inclusions, kconfig entries, array initalisers, etc) and
        someone wants to add a new item, they *always* go and stick it at the
        end of the list.
      
        Guys, don't do this.  Either put the new item into a randomly-chosen
        position or, probably better, alphanumerically sort the list.
      
      lets sort all our select statements alphanumerically.  This commit was
      created by the following perl:
      
      while (<>) {
      	while (/\\\s*$/) {
      		$_ .= <>;
      	}
      	undef %selects if /^\s*config\s+/;
      	if (/^\s+select\s+(\w+).*/) {
      		if (defined($selects{$1})) {
      			if ($selects{$1} eq $_) {
      				print STDERR "Warning: removing duplicated $1 entry\n";
      			} else {
      				print STDERR "Error: $1 differently selected\n".
      					"\tOld: $selects{$1}\n".
      					"\tNew: $_\n";
      				exit 1;
      			}
      		}
      		$selects{$1} = $_;
      		next;
      	}
      	if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
      			  /^endif/ or /^endchoice/)) {
      		foreach $k (sort (keys %selects)) {
      			print "$selects{$k}";
      		}
      		undef %selects;
      	}
      	print;
      }
      if (%selects) {
      	foreach $k (sort (keys %selects)) {
      		print "$selects{$k}";
      	}
      }
      
      It found two duplicates:
      
      Warning: removing duplicated S5P_SETUP_MIPIPHY entry
      Warning: removing duplicated HARDIRQS_SW_RESEND entry
      
      and they are identical duplicates, hence the shrinkage in the diffstat
      of two lines.
      
      We have four testers reporting success of this change (Tony, Stephen,
      Linus and Sekhar.)
      Acked-by: NJason Cooper <jason@lakedaemon.net>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b1b3f49c
  3. 09 10月, 2012 3 次提交
  4. 06 10月, 2012 1 次提交
  5. 03 10月, 2012 2 次提交
    • J
      ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig · 70071ff9
      Jean Pihet 提交于
      Select POWER_SUPPLY from POWER_AVS_OMAP entry in Kconfig.
      
      This avoids the following build problems using a randconfig
      that has CONFIG_POWER_SUPPLY not set:
      
        LD      init/built-in.o
      arch/arm/mach-omap2/built-in.o: In function `sr_class3_configure':
      arch/arm/mach-omap2/smartreflex-class3.c:44: undefined reference to `sr_configure_errgen'
      arch/arm/mach-omap2/built-in.o: In function `sr_class3_disable':
      arch/arm/mach-omap2/smartreflex-class3.c:33: undefined reference to `sr_disable_errgen'
      arch/arm/mach-omap2/smartreflex-class3.c:35: undefined reference to `sr_disable'
      arch/arm/mach-omap2/built-in.o: In function `sr_class3_enable':
      arch/arm/mach-omap2/smartreflex-class3.c:28: undefined reference to `sr_enable'
      arch/arm/mach-omap2/built-in.o: In function `sr_class3_init':
      arch/arm/mach-omap2/smartreflex-class3.c:59: undefined reference to `sr_register_class'
      make: *** [vmlinux] Error 1
      Signed-off-by: NJean Pihet <j-pihet@ti.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      70071ff9
    • W
      ARM: OMAP: omap_device: fix return value check in omap_device_build_ss() · a87e6628
      Wei Yongjun 提交于
      In case of error, the function omap_device_alloc() returns ERR_PTR()
      and never returns NULL pointer. The NULL test in the return value
      check should be replaced with IS_ERR().
      
      dpatch engine is used to auto generated this patch.
      (https://github.com/weiyj/dpatch)
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      a87e6628
  6. 25 9月, 2012 1 次提交
  7. 24 9月, 2012 7 次提交
    • J
      ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP · 5c3e4ec4
      Jon Hunter 提交于
      Some instances of the DMTIMER peripheral on OMAP devices have the ability
      to interrupt the on-chip DSP in addition to the ARM CPU. Add a DMTIMER
      attribute to indicate which timers can interrupt the DSP. By using the
      omap_dm_timer_request_by_cap() API, driver will now be able to allocate
      a DMTIMER that can interrupt the DSP based upon this attribute and not require
      the driver to know which instance has this capability.
      
      DMTIMERs that have the ability to interrupt the DSP on OMAP devices are as
      follows ...
      
      - OMAP1 (OMAP5912/16xx/17xx) devices	- All 8 DMTIMERs
      - OMAP2/3/4 devices			- DMTIMERs 5-8
      
      Please note that for OMAP3+, timer8 has the ability to interrupt the DSP and
      generate a PWM output.
      Signed-off-by: NJon Hunter <jon-hunter@ti.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      5c3e4ec4
    • P
      ARM: OMAP3: hwmod data: add mmu data for iva and isp · 5486474c
      Paul Walmsley 提交于
      Add mmu hwmod data for iva and isp.
      
      Due to compatibility an ifdef CONFIG_OMAP_IOMMU_IVA2 needs to be
      propagated (previously on iommu resource info) to hwmod data in OMAP3,
      so users of iommu and tidspbridge can avoid issues of two modules
      managing mmu data/irqs/resets; this until tidspbridge can be migrated
      to iommu framework.
      
      Cc: Benoit Cousson <b-cousson@ti.com>
      Signed-off-by: NOmar Ramirez Luna <omar.luna@linaro.org>
      [paul@pwsan.com: fixed some kerneldoc and whitespace; ISP MMUs not present
       on AM35xx so restricted these hwmods to 34xx/36xx]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      5486474c
    • O
      ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected · 7460f140
      Omar Ramirez Luna 提交于
      If included without IOMMU_API being selected it will break
      compilation:
      
      arch/arm/plat-omap/include/plat/iommu.h:
      	In function 'dev_to_omap_iommu':
      arch/arm/plat-omap/include/plat/iommu.h:148:
      	error: 'struct dev_archdata' has no member named 'iommu'
      
      This will be seen when hwmod includes iommu.h to get the
      structure for attributes. Also needed for tidspbridge
      incremental migration to use iommu code.
      
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NOmar Ramirez Luna <omar.luna@linaro.org>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      7460f140
    • T
      ARM: OMAP4: hwmod: flag hwmods/modules not supporting module level context status · 46b3af27
      Tero Kristo 提交于
      On OMAP4 most modules/hwmods support module level context status. On
      OMAP3 and earlier, we relied on the power domain level context status.
      Identify all modules that don't support 'context_offs' by adding a
      flag bit, HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT.  Rest have a valid
      'context_offs' populated in .prcm structure already.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      [paul@pwsan.com: add flag bit rather than overloading .context_offs;
       update changelog message]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      46b3af27
    • T
      ARM: OMAP4: hwmod data: add support for lostcontext_mask · ce80979a
      Tero Kristo 提交于
      Currently hwmod only provides the offset for the context lose
      register, and if we attempt to share the same register between two or
      more hwmods, the resulting context loss counts get wrong. Thus, we
      need a way to specify which bits are used for the context loss
      information for each.  This is accomplished by adding a new field to
      the omap4 prcm struct, 'lostcontext_mask', which specifies a bit-mask
      to use for filtering the register.
      
      Mark the affected hwmods appropriately.  'l4_abe' hwmod uses the
      LOSTMEM_AESSMEM bit of RM_ABE_AESS_CONTEXT register, as l4_abe doesn't
      have its own dedicated register for this purpose. This register is
      shared with 'aess' hwmod, thus both hwmods must also specify which
      bits of the register are used for them.
      
      This patch only adds the hwmod data, but a future patch should add
      code support such that only the specified bits are read and cleared by
      the context lose counter update code. If a hwmod doesn't specify
      'lostcontext_mask' (default behavior), the whole contents of the
      context register should be used without any filtering.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      [paul@pwsan.com: updated to apply after conversion to use flag bit for
       missing module context-loss register; combined data and code patches;
       dropped code change due to serial driver breakage]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      ce80979a
    • O
      ARM: OMAP2+: omap_device: expose hwmod assert/deassert to omap devices · 8bb9fde2
      Omar Ramirez Luna 提交于
      This API is meant to be an interface to hwmod assert/deassert
      function, omap devices can call them through their platform data to
      control their reset lines, they are expected to know the name of the
      reset line they are trying to control.
      Signed-off-by: NOmar Ramirez Luna <omar.luna@linaro.org>
      [paul@pwsan.com: tweaked some documentation; fixed CodingStyle issue]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      8bb9fde2
    • I
      ARM: OMAP: hwmod code: remove unused hwmod function prototypes · c9e49024
      Igor Grinberg 提交于
      Several hwmod function prototypes appear to not have an implementation
      because the corresponding functions were removed or renamed.
      Those prototypes are unneeded anymore - remove them.
      Signed-off-by: NIgor Grinberg <grinberg@compulab.co.il>
      [paul@pwsan.com: tweaked subject]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      c9e49024
  8. 23 9月, 2012 2 次提交
    • R
      ARM: OMAP2+: clock: Remove all direct dereferencing of struct clk · 5dcc3b97
      Rajendra Nayak 提交于
      While we move to Common Clk Framework (CCF), direct deferencing of struct
      clk wouldn't be possible anymore. Hence get rid of all such instances
      in the current clock code and use macros/helpers similar to the ones that
      are provided by CCF.
      
      While here also concatenate some strings split across multiple lines
      which seem to be needed anyway.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      [paul@pwsan.com: simplified some compound expressions; reformatted some
       messages]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Mike Turquette <mturquette@linaro.org>
      5dcc3b97
    • R
      ARM: OMAP2+: hwmod: get rid of all omap_clk_get_by_name usage · 6ea74cb9
      Rajendra Nayak 提交于
      Moving to Common clk framework for OMAP would mean we no longer use
      internal lookup mechanism like omap_clk_get_by_name().
      get rid of all its usage mostly from hwmod and omap_device
      code.
      
      Moving to clk_get() also means the respective platforms
      need the clkdev tables updated with an entry for all clocks
      used by hwmod to have clock name same as the alias.
      
      Based on original changes from Mike Turquette.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
      [paul@pwsan.com: removed IS_ERR_OR_NULL() conversion (rmk comment);
       restricted omap_96m_alwon_fck_3630 to OMAP36xx; added missing AM35xx
       clock aliases for emac_fck, emac_ick, vpfe_ick, vpfe_fck; added
       aliases rng_ick and several emulation clocks]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      6ea74cb9
  9. 22 9月, 2012 2 次提交
  10. 21 9月, 2012 16 次提交
  11. 19 9月, 2012 1 次提交
    • A
      ARM: omap: move platform_data definitions · 2203747c
      Arnd Bergmann 提交于
      Platform data for device drivers should be defined in
      include/linux/platform_data/*.h, not in the architecture
      and platform specific directories.
      
      This moves such data out of the omap include directories
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: "Benoît Cousson" <b-cousson@ti.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Ohad Ben-Cohen <ohad@wizery.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Cc: Jean Pihet <j-pihet@ti.com>
      Cc: J Keerthy <j-keerthy@ti.com>
      Cc: linux-omap@vger.kernel.org
      2203747c
  12. 13 9月, 2012 1 次提交