配置文件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