17 Apr, 2015

11 commits

  • Add a driver which can access emulations of devices and make them available
    in sandbox.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a uclass for PCI controllers and a generic one for PCI devices. Adjust
    the 'pci' command and the existing PCI support to work with this new uclass.
    Keep most of the compatibility code in a separate file so that it can be
    removed one day.

    TODO: Add more header file comments to the new parts of pci.h

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Driver model will share many functions with the existing PCI implementation.
    Move these into their own file to avoid duplication and confusion.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Some uclasses want to set up a device before it is probed. Add a method
    for this.

    An example is with PCI, where a PCI uclass wants to set up its private
    data for later use. This allows the device's uclass() method to make calls
    whcih use that data (for example, read PCI memory regions from device
    tree, set up bus numbers).

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present the device is not active when the probe() method is called. But
    some probe() methods want to set up the device and this can involve
    accessing it through normal methods. For example a PCI bus may wish to
    set up its PCI parameters using calls to pci_hose_write_config_dword() and
    similar.

    At present this does not work because every such call within the probe()
    method sees that the device is not active and attempts to probe it.

    Already we mark the device as probed before calling the uclass post_probe()
    method. This is a subtle change but I believe the new approach is better.
    Since the scope of the change is only the probe() method and all its callees
    it should still be within the control of the board author.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a convenience function to access the private data that a uclass stores
    for each of its devices. Convert over most existing uses for consistency
    and to provide an example for others.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These functions currently use a generic name, but they are for x86 only.
    This may introduce confusion and prevents U-Boot from using these names
    more widely.

    In fact it should be possible to remove these at some point and use
    generic functions, but for now, rename them.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • Add Lynxpoint to the driver so that the Asus Chromebox can be supported.

    Signed-off-by: Simon Glass
    Reviewed-by: Jagannadha Sutradharudu Teki

    Simon Glass
     
  • At present a VGA console assumes a keyboard unless a CONFIG option is set.
    This difference can be dealt with by a device tree option, allowing boards
    that are otherwise the same to use the same configuration.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Commit d3cfcb3 (ARM: DRA7: Enable clocks for USB OTGSS and USB PHY)
    changed the member names of prcm_regs from cm_l3init_usb_otg_ss_clkctrl
    to cm_l3init_usb_otg_ss1_clkctrl and from cm_coreaon_usb_phy_core_clkctrl
    to cm_coreaon_usb_phy1_core_clkctrl in order to differentiate between
    the two dwc3 controllers present in dra7xx/am43xx and enabled these
    clocks in enable_basic_clocks() in hw_data.c. However these clocks
    continued to be enabled in board files/driver files for dwc3 host
    mode functionality causing compilation break with few configs.

    Fixed it here by making all the clocks enabled in enable_basic_clocks()
    and removing it from board files/driver files here.

    Signed-off-by: Kishon Vijay Abraham I

    Kishon Vijay Abraham I
     
  • Tom Rini
     

15 Apr, 2015

10 commits


14 Apr, 2015

19 commits