void rk_usb_power_up(void)
{
struct dwc_otg_platform_data *pldata_otg;
+#ifdef CONFIG_USB20_HOST
struct dwc_otg_platform_data *pldata_host;
+#endif
#ifdef CONFIG_USB_EHCI_RK
struct rkehci_platform_data *pldata_ehci;
#endif
- if (cpu_is_rk3288()) {
+ if (is_rk3288_usb()) {
#ifdef CONFIG_RK_USB_UART
/* enable USB bypass UART function */
writel_relaxed(0x00c00000 | usb_to_uart_status,
void rk_usb_power_down(void)
{
struct dwc_otg_platform_data *pldata_otg;
+#ifdef CONFIG_USB20_HOST
struct dwc_otg_platform_data *pldata_host;
+#endif
#ifdef CONFIG_USB_EHCI_RK
struct rkehci_platform_data *pldata_ehci;
#endif
- if (cpu_is_rk3288()) {
+ if (is_rk3288_usb()) {
#ifdef CONFIG_RK_USB_UART
/* disable USB bypass UART function */
usb_to_uart_status =