1. 15 12月, 2015 4 次提交
  2. 14 10月, 2015 1 次提交
  3. 02 10月, 2015 4 次提交
  4. 27 9月, 2015 1 次提交
  5. 07 8月, 2015 1 次提交
  6. 07 7月, 2015 1 次提交
  7. 30 4月, 2015 5 次提交
  8. 13 1月, 2015 1 次提交
  9. 15 11月, 2014 1 次提交
  10. 20 9月, 2014 1 次提交
  11. 09 9月, 2014 2 次提交
  12. 28 5月, 2014 1 次提交
  13. 05 2月, 2014 1 次提交
  14. 14 1月, 2014 1 次提交
  15. 04 12月, 2013 3 次提交
  16. 26 11月, 2013 7 次提交
  17. 26 9月, 2013 2 次提交
  18. 17 9月, 2013 1 次提交
  19. 31 8月, 2013 2 次提交
    • M
      staging: dwc2: validate the value for phy_utmi_width · de4a1931
      Matthijs Kooijman 提交于
      The HWCFG4 register stores the supported utmi width values (8, 16 or
      both). This commit reads that value and validates the configured value
      against that.
      
      If no (valid) value is given, the parameter defaulted to 8 bits
      previously.  However, the documentation for dwc2_core_params_struct
      suggests that the default should have been 16. Also, the pci bindings
      explicitely set the value to 16, so this commit changes the default to
      16 bits (if supported, 8 bits otherwise).
      
      With the default changed, the value set in pci.c is changed to -1 to
      make it autodetected as well.
      Signed-off-by: NMatthijs Kooijman <matthijs@stdin.nl>
      Acked-by: NPaul Zimmerman <paulz@synopsys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      de4a1931
    • M
      staging: dwc2: interpret all hwcfg and related register at init time · 9badec2f
      Matthijs Kooijman 提交于
      Before, the hwcfg registers were read at device init time, but
      interpreted at various parts in the code. This commit unpacks the hwcfg
      register values into a struct with properly labeled variables at init
      time, which makes all the other code using these values more consise and
      easier to read. Some values that were previously stored in the hsotg
      struct are now moved into this new struct as well.
      
      In addition to the hwcfg registers, the contents of some fifo size
      registers are also unpacked. The hwcfg registers are read-only, so they
      can be safely stored. The fifo size registers are read-write registers,
      but their power-on values are significant: they give the maximum depth
      of the fifo they describe.
      
      This commit mostly moves code, but also attempts to simplify some
      expressions from (val >> shift) & (mask >> shift) to
      (val & mask) >> shift.
      
      Finally, all of the parameters read from the hardware are debug printed
      after unpacking them, so a bunch of debug prints can be removed from
      other places.
      Signed-off-by: NMatthijs Kooijman <matthijs@stdin.nl>
      Acked-by: NPaul Zimmerman <paulz@synopsys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9badec2f