27 static struct resource ath79_wmac_resources[] = {
40 .resource = ath79_wmac_resources,
41 .num_resources =
ARRAY_SIZE(ath79_wmac_resources),
43 .platform_data = &ath79_wmac_data,
47 static void __init ar913x_wmac_setup(
void)
63 static int ar933x_wmac_reset(
void)
71 static int ar933x_r1_get_wmac_revision(
void)
76 static void __init ar933x_wmac_setup(
void)
82 ath79_wmac_device.
name =
"ar933x_wmac";
91 ath79_wmac_data.is_clk_25mhz =
false;
93 ath79_wmac_data.is_clk_25mhz =
true;
96 ath79_wmac_data.get_mac_revision = ar933x_r1_get_wmac_revision;
98 ath79_wmac_data.external_reset = ar933x_wmac_reset;
101 static void ar934x_wmac_setup(
void)
105 ath79_wmac_device.
name =
"ar934x_wmac";
114 ath79_wmac_data.is_clk_25mhz =
false;
116 ath79_wmac_data.is_clk_25mhz =
true;
123 else if (soc_is_ar933x())
125 else if (soc_is_ar934x())
131 memcpy(ath79_wmac_data.eeprom_data, cal_data,
132 sizeof(ath79_wmac_data.eeprom_data));