#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <linux/workqueue.h>
+#include <linux/amlogic/cpu_version.h>
#ifdef CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
#include <linux/amlogic/pm.h>
#endif
if (prop)
phy_interface = of_read_ulong(prop, 1);
+ if (is_meson_g12b_cpu()) {
+ if (!is_meson_rev_a())
+ phy_interface = 2;
+ }
+
dwc_otg_module_params.host_rx_fifo_size = dwc_otg_module_params.data_fifo_size / 2;
DWC_PRINTF("dwc_otg: %s: type: %d speed: %d, ",
s_clock_name, port_type, port_speed);
#include <linux/delay.h>
#include <linux/usb/phy.h>
#include <linux/amlogic/usb-v2.h>
+#include <linux/amlogic/cpu_version.h>
#include "phy-aml-new-usb-v2.h"
struct amlogic_usb_v2 *g_phy2_v2;
else
phy_version = 0;
+ if (is_meson_g12b_cpu()) {
+ if (!is_meson_rev_a())
+ phy_version = 1;
+ }
+
phy_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
phy_base = devm_ioremap_resource(dev, phy_mem);
if (IS_ERR(phy_base))