1. 02 12月, 2013 1 次提交
    • B
      ARM: at91: add Kconfig options for common clk support · c8a8c630
      Boris BREZILLON 提交于
      This patch adds the following Kconfig options to prepare the transition to
      common clk framework:
      
      - AT91_USE_OLD_CLK: this option is selected by every SoC which does not
        support new at91 clks based on common clk framework (SoC which does not
        define the clock tree in its device tree).
        This options is also selected when the user choose non dt boards support
        (new at91 clks can only be registered from a device tree definition).
      
      - COMMON_CLK_AT91: this option cannot be selected directly. Instead it is
        enabled if these 3 conditions are met:
         * at least one of the selected SoCs have a PMC (Power Management
           Controller) Unit
         * device tree support is enabled
         * the old at91 clk implementation is disabled (every selected SoC define
           its clks in its device tree and non dt boards support is disabled)
      
      - OLD_CLK_AT91: this option cannot be selected directly. Instead it is
        enabled if these 2 conditions are met:
         * at least one of the selected SoCs have a PMC (Power Management
           Controller) Unit
         * at least one of the selected SoCs does not define its clks in its
           device tree or non dt-boards support is enabled
      
      This patch selects AT91_USE_OLD_CLK in all currently supported SoCs. These
      selects will be removed after clk definitions are properly added in each
      soc's device tree.
      It also selects AT91_USE_OLD_CLK in all non-dt boards support.
      
      AT91_PMC_UNIT references are replaced by OLD_CLK_AT91, because PMC Unit is
      enabled for both old and common clk implementations, and old clk
      implementation should not be compiled if COMMON_CLK is enabled.
      
      To avoid future link errors, a new stub is created for at91_dt_clock_init
      function if OLD_CLK_AT91 is disabled.
      
      A new check is added in dt init functions (setup.c) to prepare for SoCs
      supporting new clk implementation. These SoCs won't setup the
      register_clocks callback (clk registration is done using of_clk_init).
      Signed-off-by: NBoris BREZILLON <b.brezillon@overkiz.com>
      Acked-by: NMike Turquette <mturquette@linaro.org>
      Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      c8a8c630
  2. 18 6月, 2013 1 次提交
  3. 31 5月, 2013 1 次提交
  4. 17 5月, 2013 1 次提交
  5. 14 3月, 2013 1 次提交
  6. 08 2月, 2013 1 次提交
  7. 19 11月, 2012 2 次提交
  8. 25 10月, 2012 1 次提交
  9. 23 10月, 2012 1 次提交
  10. 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
  11. 04 7月, 2012 1 次提交
  12. 02 7月, 2012 2 次提交
  13. 28 4月, 2012 1 次提交
  14. 17 4月, 2012 3 次提交
  15. 16 4月, 2012 5 次提交
  16. 15 3月, 2012 1 次提交
  17. 03 2月, 2012 2 次提交
  18. 21 1月, 2012 2 次提交
  19. 28 11月, 2011 1 次提交
  20. 01 11月, 2011 1 次提交
  21. 25 10月, 2011 1 次提交
  22. 07 9月, 2011 2 次提交
  23. 25 5月, 2011 2 次提交
  24. 23 4月, 2011 1 次提交
  25. 15 1月, 2011 2 次提交
  26. 26 10月, 2010 1 次提交
  27. 18 10月, 2010 1 次提交