diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-11-05 14:30:35 +0800 |
---|---|---|
committer | Li Jun <jun.li@freescale.com> | 2015-01-27 09:10:30 +0800 |
commit | 6c8355135bf39d6397744fc0b6cfe42eec4b0597 (patch) | |
tree | ba2b3e601cfe146018f2cc29727b809f0f2f84fb /include | |
parent | 75129133fb0478cca24da1d4e3cb4cbab367cbd0 (diff) |
MLK-9785-2 usb: chipidea: add AHB configuration interface
The AHBBRST at SBUSCFG and RX/TX burst size at BURSTSIZE are implementation
dependent, each platform may have different values, and some values may not be
optimized.
The glue layer can override ahb burst configuration value by setting flag
CI_HDRC_OVERRIDE_AHB_BURST and ahbburst_config.
The glue layer can override RX/TX burst size by setting flag
CI_HDRC_OVERRIDE_BURST_LENGTH and burst_length.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit a6bf7a97a83a58b9fe6de91975e4203c235036be)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/chipidea.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index 5c5cdc42e189..f5440426c73a 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -33,6 +33,8 @@ struct ci_hdrc_platform_data { #define CI_HDRC_DISABLE_HOST_STREAMING BIT(10) #define CI_HDRC_DISABLE_STREAMING (CI_HDRC_DISABLE_DEVICE_STREAMING | \ CI_HDRC_DISABLE_HOST_STREAMING) +#define CI_HDRC_OVERRIDE_AHB_BURST BIT(11) +#define CI_HDRC_OVERRIDE_BURST_LENGTH BIT(12) enum usb_dr_mode dr_mode; #define CI_HDRC_CONTROLLER_RESET_EVENT 0 #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 @@ -44,6 +46,8 @@ struct ci_hdrc_platform_data { int (*notify_event)(struct ci_hdrc *ci, unsigned event); struct regulator *reg_vbus; bool tpl_support; + u32 ahbburst_config; + u32 burst_length; }; /* Default offset of capability registers */ |