Commit b53d2b892340eaf1d8622d6cc711d149acbe4466

Authored by Satyanarayana Sandhya
1 parent 743d2d6f09

ARM: OMAP2+: AM33xx: Enable loss of context callback for USB

This patch adds context loss related platform data for USB.
This allows USB driver to check for the loss of context and
depending upon the status it will decide whether to restore or not.

Signed-off-by: Satyanarayana Sandhya <sandhya.satyanarayana@ti.com>
Signed-off-by: ShankarMurthy, Akshay <akshay.s@ti.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

arch/arm/mach-omap2/usb-musb.c
... ... @@ -31,6 +31,7 @@
31 31 #include <mach/am35xx.h>
32 32 #include <plat/usb.h>
33 33 #include <plat/omap_device.h>
  34 +#include <plat/omap-pm.h>
34 35 #include "mux.h"
35 36  
36 37 static struct musb_hdrc_config musb_config = {
... ... @@ -122,6 +123,9 @@
122 123 oh_name = "usb_otg_hs";
123 124 name = "musb-omap2430";
124 125 }
  126 +
  127 + board_data->get_context_loss_count =
  128 + omap_pm_get_dev_context_loss_count;
125 129  
126 130 oh = omap_hwmod_lookup(oh_name);
127 131 if (WARN(!oh, "%s: could not find omap_hwmod for %s\n",