Hi3519AV100 USB DEVICE驱动问题

配置文件hi3519av100_smp_emmc_defconfig

  • 当编译内核时选择的配置文件带有smp字样时,则#ifndefCONFIG_HISI_MC(如图1-4)下的

节点为有效节点,且默认配置为:port0默认配置为host模式,port1默认配置为device模
式,如需进行切换,可在dtsi中打开相应设备节点(即修改#if下的1和0对节点进行打开和
关闭)。

  • 当编译内核时选择的配置文件带有amp字样时,则#else(如图1-5)下的节点为有效节点,且

默认配置为:port0默认配置为device模式,port1默认配置为host模式,如需进行切换,可
在dtsi中打开相应设备节点(即修改#if下的1和0对节点进行打开和关闭)。

 

hi3519av100.dtsi 配置如下

#ifndef CONFIG_HISI_MC
#if 1
		xhci_0@0x04110000 {
			compatible = "generic-xhci";
			reg = <0x04110000 0x10000>;
			interrupts = <0 111 4>;
			usb2-lpm-disable;
		};
#endif

#if 1
		hidwc3_1@0x04120000 {
			compatible = "snps,dwc3";
			reg = <0x04120000 0x10000>;
			interrupts = <0 112 4>;
			interrupt-names = "peripheral";
			maximum-speed = "high-speed";
			dr_mode = "peripheral";
		};
#endif

#if 0
		xhci_1@0x04120000 {
			compatible = "generic-xhci";
			reg = <0x04120000 0x10000>;
			interrupts = <0 112 4>;
			usb2-lpm-disable;
		};
#endif

#if 0
		hidwc3_0@0x04110000 {
			compatible = "snps,dwc3";
			reg = <0x04110000 0x10000>;
			interrupts = <0 111 4>;
			interrupt-names = "peripheral";
			maximum-speed = "super-speed";
			dr_mode = "peripheral";
			snps,dis_initiate_u1;
			snps,dis_initiate_u2;
		};
#endif
#else

#if 0
		xhci_0@0x04110000 {
			compatible = "generic-xhci";
			reg = <0x04110000 0x10000>;
			interrupts = <0 111 4>;
			usb2-lpm-disable;
		};
#endif

#if 0
		hidwc3_1@0x04120000 {
			compatible = "snps,dwc3";
			reg = <0x04120000 0x10000>;
			interrupts = <0 112 4>;
			interrupt-names = "peripheral";
			maximum-speed = "high-speed";
			dr_mode = "peripheral";
		};
#endif

#if 1

		xhci_1@0x04120000 {
			compatible = "generic-xhci";
			reg = <0x04120000 0x10000>;
			interrupts = <0 112 4>;
			usb2-lpm-disable;
		};
#endif

#if 1
		hidwc3_0@0x04110000 {
			compatible = "snps,dwc3";
			reg = <0x04110000 0x10000>;
			interrupts = <0 111 4>;
			interrupt-names = "peripheral";
			maximum-speed = "super-speed";
			dr_mode = "peripheral";
			snps,dis_initiate_u1;
			snps,dis_initiate_u2;
		};
#endif

#endif

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值