Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    27f782b6
    dm: usb: tegra: Store the controller type explicitly · 27f782b6
    Simon Glass authored
    
    At present the tegra driver uses a separate pointer to know which controller
    type is in use. This works because only one controller type is used at a
    time.
    
    With driver model we want to make the controller state hermetic in the sense
    that it is not necessary to look elsewhere to know the controller type. This
    will permit a controller to implement the EHCI weak functions without
    reference to global data structures.
    
    To achieve this, define an enum for the controller type and store it with
    the information on each EHCI controller.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarMarek Vasut <marex@denx.de>
    27f782b6
    History
    dm: usb: tegra: Store the controller type explicitly
    Simon Glass authored
    
    At present the tegra driver uses a separate pointer to know which controller
    type is in use. This works because only one controller type is used at a
    time.
    
    With driver model we want to make the controller state hermetic in the sense
    that it is not necessary to look elsewhere to know the controller type. This
    will permit a controller to implement the EHCI weak functions without
    reference to global data structures.
    
    To achieve this, define an enum for the controller type and store it with
    the information on each EHCI controller.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarMarek Vasut <marex@denx.de>