Wifi Desteği - Problemli Senaryo Örneği
/home/demirten/embedded/orange/xradio/rx.c: In function ‘xradio_rx_cb’:
/home/demirten/embedded/orange/xradio/rx.c:205:16: error: ‘RX_FLAG_HT’ undeclared (first use in this function)
hdr->flag |= RX_FLAG_HT;
^~~~~~~~~~
/home/demirten/embedded/orange/xradio/rx.c:205:16: note: each undeclared identifier is reported only once
for each function it appears in--- ./arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts.orig 2017-09-08 20:15:25.338333936 +0300
+++ ./arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts 2017-09-08 20:25:25.267811462 +0300
@@ -56,7 +56,7 @@
aliases {
serial0 = &uart0;
- ethernet1 = &xr819;
+ ethernet1 = &xr819wifi;
};
chosen {
@@ -78,6 +78,16 @@
};
};
+ vdd_wifi: vdd_wifi {
+ compatible = "regulator-fixed";
+ regulator-name = "wifi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
+ startup-delay-us = <70000>;
+ enable-active-high;
+ };
+
reg_vcc_wifi: reg_vcc_wifi {
compatible = "regulator-fixed";
regulator-min-microvolt = <3300000>;
@@ -115,19 +125,22 @@
&mmc1 {
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_a>;
+ vqmmc-supply = <&vdd_wifi>;
vmmc-supply = <®_vcc_wifi>;
mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>;
non-removable;
status = "okay";
- /*
- * Explicitly define the sdio device, so that we can add an ethernet
- * alias for it (which e.g. makes u-boot set a mac-address).
- */
- xr819: sdio_wifi@1 {
- reg = <1>;
- };
+ xr819wifi: xr819wifi@1 {
+ reg = <1>;
+ compatible = "xradio";
+ pinctrl-names = "default";
+ interrupt-parent = <&pio>;
+ interrupts = <6 10 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "host-wake";
+ local-mac-address = [dc 44 6d c0 ff ee];
+ };
};Last updated