.platform_callback = &usbhs_rcar2_ops,
.param = {
.has_usb_dmac = 1,
- .pipe_configs = usbhsc_new_pipe,
- .pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
+ .has_new_pipe_configs = 1,
}
};
.param = {
.has_usb_dmac = 1,
.multi_clks = 1,
- .pipe_configs = usbhsc_new_pipe,
- .pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
+ .has_new_pipe_configs = 1,
}
};
.param = {
.has_usb_dmac = 1,
.multi_clks = 1,
- .pipe_configs = usbhsc_new_pipe,
- .pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
+ .has_new_pipe_configs = 1,
}
};
static const struct usbhs_of_data rza1_data = {
.platform_callback = &usbhs_rza1_ops,
.param = {
- .pipe_configs = usbhsc_new_pipe,
- .pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
+ .has_new_pipe_configs = 1,
}
};
.param = {
.has_cnen = 1,
.cfifo_byte_addr = 1,
- .pipe_configs = usbhsc_new_pipe,
- .pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
+ .has_new_pipe_configs = 1,
}
};
priv->pfunc = info->platform_callback;
/* set default param if platform doesn't have */
- if (!priv->dparam.pipe_configs) {
+ if (usbhs_get_dparam(priv, has_new_pipe_configs)) {
+ priv->dparam.pipe_configs = usbhsc_new_pipe;
+ priv->dparam.pipe_size = ARRAY_SIZE(usbhsc_new_pipe);
+ } else if (!priv->dparam.pipe_configs) {
priv->dparam.pipe_configs = usbhsc_default_pipe;
priv->dparam.pipe_size = ARRAY_SIZE(usbhsc_default_pipe);
}