Skip to content
Snippets Groups Projects
  1. Oct 24, 2014
  2. Jun 20, 2014
  3. May 27, 2014
    • Heiko Schocher's avatar
      dm: rename device struct to udevice · 54c5d08a
      Heiko Schocher authored
      
      using UBI and DM together leads in compiler error, as
      both define a "struct device", so rename "struct device"
      in include/dm/device.h to "struct udevice", as we use
      linux code (MTD/UBI/UBIFS some USB code,...) and cannot
      change the linux "struct device"
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Marek Vasut <marex@denx.de>
      54c5d08a
  4. Mar 04, 2014
    • Simon Glass's avatar
      dm: Add GPIO support and tests · 96495d90
      Simon Glass authored
      
      Add driver model support for GPIOs. Since existing GPIO drivers do not use
      driver model, this feature must be enabled by CONFIG_DM_GPIO. After all
      GPO drivers are converted over we can perhaps remove this config.
      
      Tests are provided for the sandbox implementation, and are a sufficient
      sanity check for basic operation.
      
      The GPIO uclass understands the concept of named banks of GPIOs, with each
      GPIO device providing a single bank. Within each bank the GPIOs are numbered
      using an offset from 0 to n-1. For example a bank named 'b' with 20
      offsets will provide GPIOs named b0 to b19.
      
      Anonymous GPIO banks are also supported, and are just numbered without any
      prefix.
      
      Each time a GPIO driver is added to the uclass, the GPIOs are renumbered
      accordinging, so there is always a global GPIO numbering order.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarPavel Herrmann <morpheus.ibis@gmail.com>
      Signed-off-by: default avatarViktor Křivák <viktor.krivak@gmail.com>
      Signed-off-by: default avatarTomas Hlavacek <tmshlvck@gmail.com>
      96495d90
Loading