1. 03 6月, 2014 1 次提交
    • D
      i2c: ChromeOS EC tunnel driver · 9d230c9e
      Doug Anderson 提交于
      On ARM Chromebooks we have a few devices that are accessed by both the
      AP (the main "Application Processor") and the EC (the Embedded
      Controller).  These are:
      * The battery (sbs-battery).
      * The power management unit tps65090.
      
      On the original Samsung ARM Chromebook these devices were on an I2C
      bus that was shared between the AP and the EC and arbitrated using
      some extranal GPIOs (see i2c-arb-gpio-challenge).
      
      The original arbitration scheme worked well enough but had some
      downsides:
      * It was nonstandard (not using standard I2C multimaster)
      * It only worked if the EC-AP communication was I2C
      * It was relatively hard to debug problems (hard to tell if i2c issues
        were caused by the EC, the AP, or some device on the bus).
      
      On the HP Chromebook 11 the design was changed to:
      * The AP/EC comms were still i2c, but the battery/tps65090 were no
        longer on the bus used for AP/EC communication.  The battery was
        exposed to the AP through a limited i2c tunnel and tps65090 was
        exposed to the AP through a custom Linux driver.
      
      On the Samsung ARM Chromebook 2 the scheme is changed yet again, now:
      * The AP/EC comms are now using SPI for faster speeds.
      * The EC's i2c bus is exposed to the AP through a full i2c tunnel.
      
      The upstream "tegra124-venice2" uses the same scheme as the Samsung
      ARM Chromebook 2, though it has a different set of components on the
      other side of the bus.
      
      This driver supports the scheme used by the Samsung ARM Chromebook 2.
      Future patches to this driver could add support for the battery tunnel
      on the HP Chromebook 11 (and perhaps could even be used to access
      tps65090 on the HP Chromebook 11 instead of using a special driver,
      but I haven't researched that enough).
      Signed-off-by: NVincent Palatin <vpalatin@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Reviewed-by: NWolfram Sang <wsa@the-dreams.de>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      9d230c9e
  2. 08 4月, 2014 1 次提交
  3. 07 4月, 2014 1 次提交
    • W
      i2c: cadence: fix Kconfig dependency · 1fbeab0b
      Wolfram Sang 提交于
      During development, the driver first really needed to depend on
      COMMON_CLK only. Later, it was switched to writel_relaxed, but it was
      forgotten to update the dependencies, so build errors occured:
      
      config: make ARCH=i386 allyesconfig
      
      All error/warnings:
      
         drivers/i2c/busses/i2c-cadence.c: In function 'cdns_i2c_clear_bus_hold':
      >> drivers/i2c/busses/i2c-cadence.c:168:3: error: implicit declaration
      >> of function 'writel_relaxed' [-Werror=implicit-function-declaration]
      
      Use a very safe dependency for now.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      1fbeab0b
  4. 06 4月, 2014 1 次提交
  5. 29 3月, 2014 1 次提交
  6. 28 3月, 2014 1 次提交
  7. 14 3月, 2014 1 次提交
  8. 10 3月, 2014 1 次提交
  9. 07 3月, 2014 1 次提交
  10. 06 3月, 2014 1 次提交
  11. 25 1月, 2014 1 次提交
  12. 13 1月, 2014 2 次提交
  13. 04 1月, 2014 1 次提交
  14. 02 1月, 2014 1 次提交
  15. 16 11月, 2013 1 次提交
  16. 15 11月, 2013 2 次提交
  17. 01 11月, 2013 1 次提交
  18. 31 10月, 2013 1 次提交
  19. 13 9月, 2013 1 次提交
  20. 15 8月, 2013 1 次提交
  21. 01 7月, 2013 1 次提交
  22. 21 6月, 2013 1 次提交
  23. 20 6月, 2013 1 次提交
  24. 15 6月, 2013 2 次提交
  25. 11 6月, 2013 1 次提交
  26. 06 6月, 2013 1 次提交
  27. 04 6月, 2013 1 次提交
  28. 16 4月, 2013 1 次提交
  29. 11 3月, 2013 1 次提交
  30. 16 2月, 2013 1 次提交
  31. 12 2月, 2013 1 次提交
  32. 11 2月, 2013 2 次提交
  33. 09 2月, 2013 1 次提交
  34. 22 1月, 2013 1 次提交
  35. 19 1月, 2013 1 次提交
    • J
      tty: Added a CONFIG_TTY option to allow removal of TTY · 4f73bc4d
      Joe Millenbach 提交于
      The option allows you to remove TTY and compile without errors. This
      saves space on systems that won't support TTY interfaces anyway.
      bloat-o-meter output is below.
      
      The bulk of this patch consists of Kconfig changes adding "depends on
      TTY" to various serial devices and similar drivers that require the TTY
      layer.  Ideally, these dependencies would occur on a common intermediate
      symbol such as SERIO, but most drivers "select SERIO" rather than
      "depends on SERIO", and "select" does not respect dependencies.
      
      bloat-o-meter output comparing our previous minimal to new minimal by
      removing TTY.  The list is filtered to not show removed entries with awk
      '$3 != "-"' as the list was very long.
      
      add/remove: 0/226 grow/shrink: 2/14 up/down: 6/-35356 (-35350)
      function                                     old     new   delta
      chr_dev_init                                 166     170      +4
      allow_signal                                  80      82      +2
      static.__warned                              143     142      -1
      disallow_signal                               63      62      -1
      __set_special_pids                            95      94      -1
      unregister_console                           126     121      -5
      start_kernel                                 546     541      -5
      register_console                             593     588      -5
      copy_from_user                                45      40      -5
      sys_setsid                                   128     120      -8
      sys_vhangup                                   32      19     -13
      do_exit                                     1543    1526     -17
      bitmap_zero                                   60      40     -20
      arch_local_irq_save                          137     117     -20
      release_task                                 674     652     -22
      static.spin_unlock_irqrestore                308     260     -48
      Signed-off-by: NJoe Millenbach <jmillenbach@gmail.com>
      Reviewed-by: NJamey Sharp <jamey@minilop.net>
      Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4f73bc4d
  36. 20 11月, 2012 1 次提交