Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /dev/null 2013-02-17 16:08:41.569847969 +0400
- +++ package/mac80211/patches/630-rt2x00-support-rt5350.patch 2013-02-16 17:57:44.474511176 +0400
- @@ -0,0 +1,438 @@
- +--- a/drivers/net/wireless/rt2x00/rt2800.h
- ++++ b/drivers/net/wireless/rt2x00/rt2800.h
- +@@ -69,6 +69,7 @@
- + #define RF3322 0x000c
- + #define RF3053 0x000d
- + #define RF3290 0x3290
- ++#define RF5350 0x5350
- + #define RF5360 0x5360
- + #define RF5370 0x5370
- + #define RF5372 0x5372
- +--- a/drivers/net/wireless/rt2x00/rt2800lib.c
- ++++ b/drivers/net/wireless/rt2x00/rt2800lib.c
- +@@ -2138,6 +2138,15 @@
- + if (rf->channel <= 14) {
- + int idx = rf->channel-1;
- +
- ++ if (rt2x00_rt(rt2x00dev, RT5350)) {
- ++ static const char r59_non_bt[] = {0x0b, 0x0b,
- ++ 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0a,
- ++ 0x0a, 0x09, 0x08, 0x07, 0x07, 0x06};
- ++
- ++ rt2800_rfcsr_write(rt2x00dev, 59,
- ++ r59_non_bt[idx]);
- ++ }
- ++
- + if (test_bit(CAPABILITY_BT_COEXIST, &rt2x00dev->cap_flags)) {
- + if (rt2x00_rt_rev_gte(rt2x00dev, RT5390, REV_RT5390F)) {
- + /* r55/r59 value array of channel 1~14 */
- +@@ -2219,6 +2228,7 @@
- + case RF3322:
- + rt2800_config_channel_rf3322(rt2x00dev, conf, rf, info);
- + break;
- ++ case RF5350:
- + case RF5360:
- + case RF5370:
- + case RF5372:
- +@@ -2232,6 +2242,7 @@
- +
- + if (rt2x00_rf(rt2x00dev, RF3290) ||
- + rt2x00_rf(rt2x00dev, RF3322) ||
- ++ rt2x00_rf(rt2x00dev, RF5350) ||
- + rt2x00_rf(rt2x00dev, RF5360) ||
- + rt2x00_rf(rt2x00dev, RF5370) ||
- + rt2x00_rf(rt2x00dev, RF5372) ||
- +@@ -2362,7 +2373,8 @@
- + /*
- + * Clear update flag
- + */
- +- if (rt2x00_rt(rt2x00dev, RT3352)) {
- ++ if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350)) {
- + rt2800_bbp_read(rt2x00dev, 49, &bbp);
- + rt2x00_set_field8(&bbp, BBP49_UPDATE_FLAG, 0);
- + rt2800_bbp_write(rt2x00dev, 49, bbp);
- +@@ -2801,6 +2813,7 @@
- + rt2800_rfcsr_write(rt2x00dev, 7, rfcsr);
- + break;
- + case RF3290:
- ++ case RF5350:
- + case RF5360:
- + case RF5370:
- + case RF5372:
- +@@ -3125,7 +3138,8 @@
- + } else if (rt2x00_rt(rt2x00dev, RT3572)) {
- + rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000400);
- + rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x00080606);
- +- } else if (rt2x00_rt(rt2x00dev, RT5390) ||
- ++ } else if (rt2x00_rt(rt2x00dev, RT5350) ||
- ++ rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- + rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000404);
- + rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x00080606);
- +@@ -3507,6 +3521,10 @@
- + rt2800_bbp_write(rt2x00dev, 4, 0x50);
- + }
- +
- ++ if (rt2x00_rt(rt2x00dev, RT5350)) {
- ++ rt2800_bbp_write(rt2x00dev, 4, 0x50);
- ++ }
- ++
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- +@@ -3519,11 +3537,13 @@
- + rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- + rt2x00_rt(rt2x00dev, RT3572) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 31, 0x08);
- +
- +- if (rt2x00_rt(rt2x00dev, RT3352))
- ++ if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350))
- + rt2800_bbp_write(rt2x00dev, 47, 0x48);
- +
- + rt2800_bbp_write(rt2x00dev, 65, 0x2c);
- +@@ -3531,6 +3551,7 @@
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 68, 0x0b);
- +@@ -3540,6 +3561,7 @@
- + rt2800_bbp_write(rt2x00dev, 73, 0x12);
- + } else if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- + rt2800_bbp_write(rt2x00dev, 69, 0x12);
- +@@ -3576,7 +3598,8 @@
- + rt2800_bbp_write(rt2x00dev, 79, 0x18);
- + rt2800_bbp_write(rt2x00dev, 80, 0x09);
- + rt2800_bbp_write(rt2x00dev, 81, 0x33);
- +- } else if (rt2x00_rt(rt2x00dev, RT3352)) {
- ++ } else if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350)) {
- + rt2800_bbp_write(rt2x00dev, 78, 0x0e);
- + rt2800_bbp_write(rt2x00dev, 80, 0x08);
- + rt2800_bbp_write(rt2x00dev, 81, 0x37);
- +@@ -3586,6 +3609,7 @@
- +
- + rt2800_bbp_write(rt2x00dev, 82, 0x62);
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 83, 0x7a);
- +@@ -3595,6 +3619,7 @@
- + if (rt2x00_rt_rev(rt2x00dev, RT2860, REV_RT2860D))
- + rt2800_bbp_write(rt2x00dev, 84, 0x19);
- + else if (rt2x00_rt(rt2x00dev, RT3290) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 84, 0x9a);
- +@@ -3603,6 +3628,7 @@
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 86, 0x38);
- +@@ -3617,6 +3643,7 @@
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 92, 0x02);
- +@@ -3635,6 +3662,7 @@
- + rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- + rt2x00_rt(rt2x00dev, RT3572) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392) ||
- + rt2800_is_305x_soc(rt2x00dev))
- +@@ -3644,6 +3672,7 @@
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 104, 0x92);
- +@@ -3654,13 +3683,15 @@
- + rt2800_bbp_write(rt2x00dev, 105, 0x1c);
- + else if (rt2x00_rt(rt2x00dev, RT3352))
- + rt2800_bbp_write(rt2x00dev, 105, 0x34);
- +- else if (rt2x00_rt(rt2x00dev, RT5390) ||
- ++ else if (rt2x00_rt(rt2x00dev, RT5350) ||
- ++ rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 105, 0x3c);
- + else
- + rt2800_bbp_write(rt2x00dev, 105, 0x05);
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390))
- + rt2800_bbp_write(rt2x00dev, 106, 0x03);
- + else if (rt2x00_rt(rt2x00dev, RT3352))
- +@@ -3670,11 +3701,13 @@
- + else
- + rt2800_bbp_write(rt2x00dev, 106, 0x35);
- +
- +- if (rt2x00_rt(rt2x00dev, RT3352))
- ++ if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350))
- + rt2800_bbp_write(rt2x00dev, 120, 0x50);
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- + rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392))
- + rt2800_bbp_write(rt2x00dev, 128, 0x12);
- +@@ -3684,13 +3717,15 @@
- + rt2800_bbp_write(rt2x00dev, 135, 0xf6);
- + }
- +
- +- if (rt2x00_rt(rt2x00dev, RT3352))
- ++ if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350))
- + rt2800_bbp_write(rt2x00dev, 137, 0x0f);
- +
- + if (rt2x00_rt(rt2x00dev, RT3071) ||
- + rt2x00_rt(rt2x00dev, RT3090) ||
- + rt2x00_rt(rt2x00dev, RT3390) ||
- + rt2x00_rt(rt2x00dev, RT3572) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- + rt2800_bbp_read(rt2x00dev, 138, &value);
- +@@ -3727,7 +3762,8 @@
- + rt2800_bbp_write(rt2x00dev, 3, value);
- + }
- +
- +- if (rt2x00_rt(rt2x00dev, RT3352)) {
- ++ if (rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350)) {
- + rt2800_bbp_write(rt2x00dev, 163, 0xbd);
- + /* Set ITxBF timeout to 0x9c40=1000msec */
- + rt2800_bbp_write(rt2x00dev, 179, 0x02);
- +@@ -3749,6 +3785,14 @@
- + rt2800_bbp_write(rt2x00dev, 148, 0xc8);
- + }
- +
- ++ if (rt2x00_rt(rt2x00dev, RT5350)) {
- ++ rt2800_bbp_write(rt2x00dev, 150, 0x40); /* Antenna Software OFDM */
- ++ rt2800_bbp_write(rt2x00dev, 151, 0x30); /* Antenna Software CCK */
- ++ rt2800_bbp_write(rt2x00dev, 152, 0xa3);
- ++ rt2800_bbp_write(rt2x00dev, 154, 0); /* Clear previously selected antenna */
- ++ }
- ++
- ++
- + if (rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- + int ant, div_mode;
- +@@ -4143,6 +4187,78 @@
- + rt2800_rfcsr_write(rt2x00dev, 31, 0x10);
- + }
- +
- ++static void rt2800_init_rfcsr_5350(struct rt2x00_dev *rt2x00dev)
- ++{
- ++ struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
- ++
- ++ rt2800_rfcsr_write(rt2x00dev, 0, 0xf0);
- ++ rt2800_rfcsr_write(rt2x00dev, 1, 0x23);
- ++ rt2800_rfcsr_write(rt2x00dev, 2, 0x50);
- ++ rt2800_rfcsr_write(rt2x00dev, 3, 0x08);
- ++ rt2800_rfcsr_write(rt2x00dev, 4, 0x49);
- ++ rt2800_rfcsr_write(rt2x00dev, 5, 0x10);
- ++ rt2800_rfcsr_write(rt2x00dev, 6, 0xe0);
- ++ rt2800_rfcsr_write(rt2x00dev, 7, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 8, 0xf1);
- ++ rt2800_rfcsr_write(rt2x00dev, 9, 0x02);
- ++ rt2800_rfcsr_write(rt2x00dev, 10, 0x53);
- ++ rt2800_rfcsr_write(rt2x00dev, 11, 0x4a);
- ++ rt2800_rfcsr_write(rt2x00dev, 12, 0x46);
- ++ if(pdata && pdata->clk_is_20mhz)
- ++ rt2800_rfcsr_write(rt2x00dev, 13, 0x1f);/*if clk_is_20mhz - 0x1f else 0x9f*/
- ++ else
- ++ rt2800_rfcsr_write(rt2x00dev, 13, 0x9f);
- ++ rt2800_rfcsr_write(rt2x00dev, 14, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 15, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 16, 0xc0);
- ++ rt2800_rfcsr_write(rt2x00dev, 18, 0x03);
- ++ rt2800_rfcsr_write(rt2x00dev, 19, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 20, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 21, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 22, 0x20);
- ++ rt2800_rfcsr_write(rt2x00dev, 23, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 24, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 25, 0x80);
- ++ rt2800_rfcsr_write(rt2x00dev, 26, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 27, 0x03);
- ++ rt2800_rfcsr_write(rt2x00dev, 28, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 29, 0xd0);
- ++ rt2800_rfcsr_write(rt2x00dev, 30, 0x10);
- ++ rt2800_rfcsr_write(rt2x00dev, 31, 0x80);
- ++ rt2800_rfcsr_write(rt2x00dev, 32, 0x80);
- ++ rt2800_rfcsr_write(rt2x00dev, 33, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 34, 0x07);
- ++ rt2800_rfcsr_write(rt2x00dev, 35, 0x12);
- ++ rt2800_rfcsr_write(rt2x00dev, 36, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 37, 0x08);
- ++ rt2800_rfcsr_write(rt2x00dev, 38, 0x85);
- ++ rt2800_rfcsr_write(rt2x00dev, 39, 0x1b);
- ++ rt2800_rfcsr_write(rt2x00dev, 40, 0x0b);
- ++ rt2800_rfcsr_write(rt2x00dev, 41, 0xbb);
- ++ rt2800_rfcsr_write(rt2x00dev, 42, 0xd5);
- ++ rt2800_rfcsr_write(rt2x00dev, 43, 0x9b);
- ++ rt2800_rfcsr_write(rt2x00dev, 44, 0x0c);
- ++ rt2800_rfcsr_write(rt2x00dev, 45, 0xa6);
- ++ rt2800_rfcsr_write(rt2x00dev, 46, 0x73);
- ++ rt2800_rfcsr_write(rt2x00dev, 47, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 48, 0x10);
- ++ rt2800_rfcsr_write(rt2x00dev, 49, 0x80);
- ++ rt2800_rfcsr_write(rt2x00dev, 50, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 51, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 52, 0x38);
- ++ rt2800_rfcsr_write(rt2x00dev, 53, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 54, 0x38);
- ++ rt2800_rfcsr_write(rt2x00dev, 55, 0x43);
- ++ rt2800_rfcsr_write(rt2x00dev, 56, 0x82);
- ++ rt2800_rfcsr_write(rt2x00dev, 57, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 58, 0x39);
- ++ rt2800_rfcsr_write(rt2x00dev, 59, 0x0b);
- ++ rt2800_rfcsr_write(rt2x00dev, 60, 0x45);
- ++ rt2800_rfcsr_write(rt2x00dev, 61, 0xd1);
- ++ rt2800_rfcsr_write(rt2x00dev, 62, 0x00);
- ++ rt2800_rfcsr_write(rt2x00dev, 63, 0x00);
- ++}
- ++
- + static void rt2800_init_rfcsr_5390(struct rt2x00_dev *rt2x00dev)
- + {
- + rt2800_rfcsr_write(rt2x00dev, 1, 0x0f);
- +@@ -4305,6 +4421,7 @@
- + !rt2x00_rt(rt2x00dev, RT3352) &&
- + !rt2x00_rt(rt2x00dev, RT3390) &&
- + !rt2x00_rt(rt2x00dev, RT3572) &&
- ++ !rt2x00_rt(rt2x00dev, RT5350) &&
- + !rt2x00_rt(rt2x00dev, RT5390) &&
- + !rt2x00_rt(rt2x00dev, RT5392) &&
- + !rt2800_is_305x_soc(rt2x00dev))
- +@@ -4315,6 +4432,8 @@
- + */
- +
- + if (rt2x00_rt(rt2x00dev, RT3290) ||
- ++ rt2x00_rt(rt2x00dev, RT3352) ||
- ++ rt2x00_rt(rt2x00dev, RT5350) ||
- + rt2x00_rt(rt2x00dev, RT5390) ||
- + rt2x00_rt(rt2x00dev, RT5392)) {
- + rt2800_rfcsr_read(rt2x00dev, 2, &rfcsr);
- +@@ -4355,6 +4474,9 @@
- + case RT3572:
- + rt2800_init_rfcsr_3572(rt2x00dev);
- + break;
- ++ case RT5350:
- ++ rt2800_init_rfcsr_5350(rt2x00dev);
- ++ break;
- + case RT5390:
- + rt2800_init_rfcsr_5390(rt2x00dev);
- + break;
- +@@ -4751,6 +4873,12 @@
- + if (rt2x00_get_field16(word, EEPROM_NIC_CONF0_RXPATH) > 2)
- + rt2x00_set_field16(&word, EEPROM_NIC_CONF0_RXPATH, 2);
- + rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC_CONF0, word);
- ++ } else if(rt2x00_rt(rt2x00dev, RT5350)) {
- ++ rt2x00_set_field16(&word, EEPROM_NIC_CONF0_RXPATH, 1);
- ++ rt2x00_set_field16(&word, EEPROM_NIC_CONF0_TXPATH, 1);
- ++ rt2x00_set_field16(&word, EEPROM_NIC_CONF0_RF_TYPE, RF3320);
- ++ rt2x00_eeprom_write(rt2x00dev, EEPROM_NIC_CONF0, word);
- ++ EEPROM(rt2x00dev, "rt5350: Ant: 0x%04x\n", word);
- + }
- +
- + rt2x00_eeprom_read(rt2x00dev, EEPROM_NIC_CONF1, &word);
- +@@ -4875,6 +5003,8 @@
- + rt2x00_get_field32(reg, MAC_CSR0_CHIPSET) == RT5390 ||
- + rt2x00_get_field32(reg, MAC_CSR0_CHIPSET) == RT5392)
- + rt2x00_eeprom_read(rt2x00dev, EEPROM_CHIP_ID, &value);
- ++ else if(rt2x00_get_field32(reg, MAC_CSR0_CHIPSET) == RT5350)
- ++ value = RF5350;
- + else
- + value = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RF_TYPE);
- +
- +@@ -4892,6 +5022,7 @@
- + case RT3352:
- + case RT3390:
- + case RT3572:
- ++ case RT5350:
- + case RT5390:
- + case RT5392:
- + break;
- +@@ -4913,6 +5044,7 @@
- + case RF3290:
- + case RF3320:
- + case RF3322:
- ++ case RF5350:
- + case RF5360:
- + case RF5370:
- + case RF5372:
- +@@ -5276,7 +5408,8 @@
- + rt2x00_rf(rt2x00dev, RF5392)) {
- + spec->num_channels = 14;
- + spec->channels = rf_vals_3x;
- +- } else if (rt2x00_rf(rt2x00dev, RF3322)) {
- ++ } else if (rt2x00_rf(rt2x00dev, RF3322) ||
- ++ rt2x00_rf(rt2x00dev, RF5350)) {
- + spec->num_channels = 14;
- + if (spec->clk_is_20mhz)
- + spec->channels = rf_vals_xtal20mhz_3x;
- +@@ -5365,6 +5498,7 @@
- + case RF3290:
- + case RF5360:
- + case RF5370:
- ++ case RF5350:
- + case RF5372:
- + case RF5390:
- + case RF5392:
- +--- a/drivers/net/wireless/rt2x00/rt2800pci.c
- ++++ b/drivers/net/wireless/rt2x00/rt2800pci.c
- +@@ -171,7 +171,7 @@
- + #else
- + static inline int rt2800pci_read_eeprom_pci(struct rt2x00_dev *rt2x00dev)
- + {
- +- return -EOPNOTSUPP;
- ++ return 0;
- + }
- +
- + static inline int rt2800pci_efuse_detect(struct rt2x00_dev *rt2x00dev)
- +@@ -181,7 +181,7 @@
- +
- + static inline int rt2800pci_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev)
- + {
- +- return -EOPNOTSUPP;
- ++ return 0;
- + }
- + #endif /* CONFIG_PCI */
- +
- +--- a/drivers/net/wireless/rt2x00/rt2x00.h
- ++++ b/drivers/net/wireless/rt2x00/rt2x00.h
- +@@ -194,6 +194,7 @@
- + #define RT3572 0x3572
- + #define RT3593 0x3593
- + #define RT3883 0x3883 /* WSOC */
- ++#define RT5350 0x5350 /* WSOC 2.4GHz */
- + #define RT5390 0x5390 /* 2.4GHz */
- + #define RT5392 0x5392 /* 2.4GHz */
- +
- --- target/linux/ramips/base-files/etc/diag.sh 2013-01-23 17:39:44.590302116 +0400
- +++ target/linux/ramips/base-files/etc/diag.sh 2012-12-18 21:32:38.000000000 +0400
- @@ -36,7 +36,7 @@
- argus-atp52b)
- status_led="argus-atp52b:green:run"
- ;;
- - dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1)
- + dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1 | dir-320-b1 | dir-620-d1)
- status_led="d-link:green:status"
- ;;
- dir-645)
- --- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom 2013-01-23 17:39:44.574302315 +0400
- +++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom 2012-12-18 21:21:54.000000000 +0400
- @@ -63,6 +63,8 @@
- carambola | \
- dir-615-h1 | \
- dir-620-a1 | \
- + dir-320-b1 | \
- + dir-620-d1 | \
- esr-9753 | \
- fonera20n | \
- rt-n13u | \
- --- target/linux/ramips/base-files/etc/uci-defaults/01_leds 2013-01-23 17:39:44.590302115 +0400
- +++ target/linux/ramips/base-files/etc/uci-defaults/01_leds 2013-01-08 22:36:10.000000000 +0400
- @@ -40,11 +40,18 @@
- ucidef_set_led_default "wan" "WAN LED (amber)" "d-link:amber:wan" "1"
- set_wifi_led "rt2800pci-phy0::radio"
- ;;
- + dir-320-b1)
- + set_usb_led "d-link:green:usb"
- + set_wifi_led "rt2800pci-phy0::radio"
- + ;;
- dir-615-d|\
- dir-615-h1)
- ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0"
- set_wifi_led "rt2800pci-phy0::radio"
- ;;
- + dir-620-d1)
- + set_wifi_led "d-link:amber:status"
- + ;;
- esr-9753)
- set_wifi_led "rt2800pci-phy0::radio"
- ;;
- --- target/linux/ramips/base-files/etc/uci-defaults/02_network 2013-01-23 17:39:44.590302115 +0400
- +++ target/linux/ramips/base-files/etc/uci-defaults/02_network 2012-12-20 22:33:28.000000000 +0400
- @@ -173,6 +173,12 @@
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
- +
- + dir-320-b1)
- + lan_mac=$(ramips_get_mac_binary factory 1032)
- + wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
- + ;;
- +
- dir-300-b1 |\
- dir-300-b2 |\
- @@ -181,6 +187,7 @@
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
- + dir-620-d1 |\
- dir-620-a1)
- lan_mac=$(mtd_get_mac_binary factory 4)
- lan_mac=$(macaddr_setbit_la "$lan_mac")
- --- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac 2013-01-23 17:39:44.550302619 +0400
- +++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac 2012-12-20 22:31:32.000000000 +0400
- @@ -15,6 +15,7 @@
- bc2 |\
- broadway |\
- dir-620-a1 |\
- + dir-620-d1 |\
- esr-9753 |\
- freestation5 |\
- nw718 |\
- @@ -25,6 +26,10 @@
- mac=$(maccalc or "$mac" "02:00:00:00:00:00")
- ifconfig eth0 hw ether $mac 2>/dev/null
- ;;
- + dir-320-b1)
- + mac=$(ramips_get_mac_binary factory 1032)
- + ifconfig eth0 hw ether $mac 2>/dev/null
- + ;;
- dir-300-b1 |\
- dir-300-b2 |\
- dir-600-b1)
- --- target/linux/ramips/base-files/lib/ramips.sh 2013-01-23 17:39:44.550302619 +0400
- +++ target/linux/ramips/base-files/lib/ramips.sh 2012-12-18 21:35:10.000000000 +0400
- @@ -92,6 +92,12 @@
- *"DIR-615 H1")
- name="dir-615-h1"
- ;;
- + *"DIR-320 B1")
- + name="dir-320-b1"
- + ;;
- + *"DIR-620 D1")
- + name="dir-620-d1"
- + ;;
- *"DIR-615 D")
- name="dir-615-d"
- ;;
- --- target/linux/ramips/base-files/lib/upgrade/platform.sh 2013-01-23 17:39:44.534302820 +0400
- +++ target/linux/ramips/base-files/lib/upgrade/platform.sh 2012-12-18 21:36:44.000000000 +0400
- @@ -27,6 +27,8 @@
- dir-615-h1 | \
- dir-615-d | \
- dir-620-a1 | \
- + dir-620-d1 | \
- + dir-320-b1 | \
- dap-1350 | \
- esr-9753 | \
- fonera20n | \
- --- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 2013-01-23 17:49:40.958804747 +0400
- +++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 2013-01-23 17:52:17.124841476 +0400
- @@ -71,6 +71,7 @@
- /* RT3352 based machines */
- RAMIPS_MACH_ALL5002, /* Allnet ALL5002 */
- RAMIPS_MACH_DIR_615_H1,
- + RAMIPS_MACH_DIR_620_D1,
- /* RT3662 based machines */
- RAMIPS_MACH_DIR_645, /* D-Link DIR-645 */
- @@ -82,4 +83,5 @@
- /* RT5350 based machines */
- RAMIPS_MACH_AIR3GII, /* AirLive Air3GII */
- + RAMIPS_MACH_DIR_320_B1 /* D-Link DIR-320/NRU */
- };
- --- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c 2013-01-23 17:39:45.362292411 +0400
- +++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c 2012-12-23 11:13:26.000000000 +0400
- @@ -116,12 +116,23 @@
- static void rt305x_fe_reset(void)
- {
- - u32 reset_bits = RT305X_RESET_FE;
- + u32 val;
- - if (soc_is_rt5350())
- - reset_bits |= RT305X_RESET_ESW;
- - rt305x_sysc_wr(reset_bits, SYSC_REG_RESET_CTRL);
- - rt305x_sysc_wr(0, SYSC_REG_RESET_CTRL);
- + val = rt305x_sysc_rr(SYSC_REG_RESET_CTRL);
- +
- + if (soc_is_rt5350()) {
- + val = val | RT305X_RESET_FE | RT305X_RESET_ESW;
- + } else {
- + val = val | RT305X_RESET_FE;
- + }
- + rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
- +
- + if (soc_is_rt5350()) {
- + val = val & ~(RT305X_RESET_FE | RT305X_RESET_ESW);
- + } else {
- + val = val & ~(RT305X_RESET_FE);
- + }
- + rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
- }
- static struct resource rt305x_eth_resources[] = {
- --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig 2013-01-23 17:39:45.382292158 +0400
- +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig 2012-12-18 21:14:38.000000000 +0400
- @@ -76,6 +76,16 @@
- select RALINK_DEV_GPIO_BUTTONS
- select RALINK_DEV_GPIO_LEDS
- +config RT305X_MACH_DIR_320_B1
- + bool "D-Link DIR-320 revB1 board support"
- + select RALINK_DEV_GPIO_BUTTONS
- + select RALINK_DEV_GPIO_LEDS
- +
- +config RT305X_MACH_DIR_620_D1
- + bool "D-Link DIR-620 revD1 board support"
- + select RALINK_DEV_GPIO_BUTTONS
- + select RALINK_DEV_GPIO_LEDS
- +
- config RT305X_MACH_DIR_615_H1
- bool "D-Link DIR-615 H1 board support"
- select RALINK_DEV_GPIO_BUTTONS
- --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-320-b1.c 1970-01-01 03:00:00.000000000 +0300
- +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-320-b1.c 2012-12-23 11:14:08.000000000 +0400
- @@ -0,0 +1,104 @@
- +/*
- + * D-Link DIR-320 B1
- + *
- + * Copyright (C) 2012 Mikko Hissa <mikko.hissa@uta.fi>
- + *
- + * This program is free software; you can redistribute it and/or modify it
- + * under the terms of the GNU General Public License version 2 as published
- + * by the Free Software Foundation.
- + */
- +
- +#include <linux/init.h>
- +#include <linux/platform_device.h>
- +#include <linux/spi/spi.h>
- +#include <linux/spi/flash.h>
- +#include <linux/mtd/mtd.h>
- +#include <linux/mtd/partitions.h>
- +#include <linux/mtd/physmap.h>
- +
- +#include <asm/mach-ralink/machine.h>
- +#include <asm/mach-ralink/dev-gpio-buttons.h>
- +#include <asm/mach-ralink/dev-gpio-leds.h>
- +#include <asm/mach-ralink/rt305x.h>
- +#include <asm/mach-ralink/rt305x_regs.h>
- +
- +#include "devices.h"
- +
- +#define DIR_320_B1_GPIO_LED_STATUS_GREEN 9
- +#define DIR_320_B1_GPIO_LED_WPS_GREEN 13
- +#define DIR_320_B1_GPIO_LED_USB_GREEN 14
- +
- +#define DIR_320_B1_GPIO_BUTTON_RESET 10
- +#define DIR_320_B1_GPIO_BUTTON_WPS 0
- +
- +#define DIR_320_B1_KEYS_POLL_INTERVAL 20
- +#define DIR_320_B1_KEYS_DEBOUNCE_INTERVAL (3 * DIR_320_B1_KEYS_POLL_INTERVAL)
- +
- +static struct gpio_led dir_320_b1_leds_gpio[] __initdata = {
- + {
- + .name = "d-link:green:status",
- + .gpio = DIR_320_B1_GPIO_LED_STATUS_GREEN,
- + .active_low = 1,
- + }, {
- + .name = "d-link:green:usb",
- + .gpio = DIR_320_B1_GPIO_LED_USB_GREEN,
- + .active_low = 1,
- + }, {
- + .name = "d-link:green:wps",
- + .gpio = DIR_320_B1_GPIO_LED_WPS_GREEN,
- + .active_low = 1,
- + }
- +};
- +
- +static struct gpio_keys_button dir_320_b1_gpio_buttons[] __initdata = {
- + {
- + .desc = "reset",
- + .type = EV_KEY,
- + .code = KEY_RESTART,
- + .debounce_interval = DIR_320_B1_KEYS_DEBOUNCE_INTERVAL,
- + .gpio = DIR_320_B1_GPIO_BUTTON_RESET,
- + .active_low = 1,
- + }, {
- + .desc = "wps",
- + .type = EV_KEY,
- + .code = KEY_WPS_BUTTON,
- + .debounce_interval = DIR_320_B1_KEYS_DEBOUNCE_INTERVAL,
- + .gpio = DIR_320_B1_GPIO_BUTTON_WPS,
- + .active_low = 1,
- + }
- +};
- +
- +const struct flash_platform_data dir320b1_flash = {
- + .type = "s25fl064k",
- +};
- +
- +struct spi_board_info dir320b1_spi_slave_info[] __initdata = {
- + {
- + .modalias = "m25p80",
- + .platform_data = &dir320b1_flash,
- + .irq = -1,
- + .max_speed_hz = 10000000,
- + .bus_num = 0,
- + .chip_select = 0,
- + },
- +};
- +
- +static void __init dir320b1_init(void)
- +{
- + rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
- + rt305x_register_spi(dir320b1_spi_slave_info,
- + ARRAY_SIZE(dir320b1_spi_slave_info));
- + rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_LLLLW;
- + rt305x_register_ethernet();
- + ramips_register_gpio_leds(-1, ARRAY_SIZE(dir_320_b1_leds_gpio),
- + dir_320_b1_leds_gpio);
- + ramips_register_gpio_buttons(-1, DIR_320_B1_KEYS_POLL_INTERVAL,
- + ARRAY_SIZE(dir_320_b1_gpio_buttons),
- + dir_320_b1_gpio_buttons);
- + rt305x_register_wifi();
- + rt305x_register_wdt();
- + rt305x_register_usb();
- +}
- +
- +MIPS_MACHINE(RAMIPS_MACH_DIR_320_B1, "DIR-320-B1", "D-Link DIR-320 B1",
- + dir320b1_init);
- --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-620-d1.c 1970-01-01 03:00:00.000000000 +0300
- +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-620-d1.c 2013-01-10 17:43:34.000000000 +0400
- @@ -0,0 +1,90 @@
- +/*
- + * D-Link DIR-620 D1
- + *
- + * Copyright (C) 2012 Mikko Hissa <mikko.hissa@uta.fi>
- + *
- + * This program is free software; you can redistribute it and/or modify it
- + * under the terms of the GNU General Public License version 2 as published
- + * by the Free Software Foundation.
- + */
- +
- +#include <linux/init.h>
- +#include <linux/platform_device.h>
- +#include <linux/spi/spi.h>
- +#include <linux/spi/flash.h>
- +#include <linux/mtd/mtd.h>
- +#include <linux/mtd/partitions.h>
- +#include <linux/mtd/physmap.h>
- +
- +#include <asm/mach-ralink/machine.h>
- +#include <asm/mach-ralink/dev-gpio-buttons.h>
- +#include <asm/mach-ralink/dev-gpio-leds.h>
- +#include <asm/mach-ralink/rt305x.h>
- +#include <asm/mach-ralink/rt305x_regs.h>
- +
- +#include "devices.h"
- +
- +#define DIR_620_D1_GPIO_LED_STATUS_GREEN 9
- +#define DIR_620_D1_GPIO_LED_STATUS_AMBER 17
- +
- +#define DIR_620_D1_GPIO_BUTTON_RESET_WPS 7
- +
- +#define DIR_620_D1_KEYS_POLL_INTERVAL 20
- +#define DIR_620_D1_KEYS_DEBOUNCE_INTERVAL (3 * DIR_620_D1_KEYS_POLL_INTERVAL)
- +
- +static struct gpio_led dir_620_d1_leds_gpio[] __initdata = {
- + {
- + .name = "d-link:green:status",
- + .gpio = DIR_620_D1_GPIO_LED_STATUS_GREEN,
- + }, {
- + .name = "d-link:amber:status",
- + .gpio = DIR_620_D1_GPIO_LED_STATUS_AMBER,
- + .active_low = 1,
- + }
- +};
- +
- +static struct gpio_keys_button dir_620_d1_gpio_buttons[] __initdata = {
- + {
- + .desc = "reset",
- + .type = EV_KEY,
- + .code = KEY_RESTART,
- + .debounce_interval = DIR_620_D1_KEYS_DEBOUNCE_INTERVAL,
- + .gpio = DIR_620_D1_GPIO_BUTTON_RESET_WPS,
- + .active_low = 1,
- + }
- +};
- +
- +const struct flash_platform_data dir620d1_flash = {
- + .type = "mx25l6405d",
- +};
- +
- +struct spi_board_info dir620d1_spi_slave_info[] __initdata = {
- + {
- + .modalias = "m25p80",
- + .platform_data = &dir620d1_flash,
- + .irq = -1,
- + .max_speed_hz = 10000000,
- + .bus_num = 0,
- + .chip_select = 0,
- + },
- +};
- +
- +static void __init dir620d1_init(void)
- +{
- + rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
- + rt305x_register_spi(dir620d1_spi_slave_info,
- + ARRAY_SIZE(dir620d1_spi_slave_info));
- + rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_LLLLW;
- + rt305x_register_ethernet();
- + ramips_register_gpio_leds(-1, ARRAY_SIZE(dir_620_d1_leds_gpio),
- + dir_620_d1_leds_gpio);
- + ramips_register_gpio_buttons(-1, DIR_620_D1_KEYS_POLL_INTERVAL,
- + ARRAY_SIZE(dir_620_d1_gpio_buttons),
- + dir_620_d1_gpio_buttons);
- + rt305x_register_wifi();
- + rt305x_register_wdt();
- + rt305x_register_usb();
- +}
- +
- +MIPS_MACHINE(RAMIPS_MACH_DIR_620_D1, "DIR-620-D1", "D-Link DIR-620 D1",
- + dir620d1_init);
- --- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile 2013-01-23 17:39:45.370292310 +0400
- +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile 2012-12-18 21:15:28.000000000 +0400
- @@ -19,6 +19,8 @@
- obj-$(CONFIG_RT305X_MACH_BROADWAY) += mach-broadway.o
- obj-$(CONFIG_RT305X_MACH_CARAMBOLA) += mach-carambola.o
- obj-$(CONFIG_RT305X_MACH_DIR_300_REVB) += mach-dir-300-revb.o
- +obj-$(CONFIG_RT305X_MACH_DIR_320_B1) += mach-dir-320-b1.o
- +obj-$(CONFIG_RT305X_MACH_DIR_620_D1) += mach-dir-620-d1.o
- obj-$(CONFIG_RT305X_MACH_DIR_615_H1) += mach-dir-615-h1.o
- obj-$(CONFIG_RT305X_MACH_DAP_1350) += mach-dap-1350.o
- obj-$(CONFIG_RT305X_MACH_ESR_9753) += mach-esr-9753.o
- --- target/linux/ramips/image/Makefile 2013-01-23 17:39:47.222269028 +0400
- +++ target/linux/ramips/image/Makefile 2012-12-18 21:19:02.000000000 +0400
- @@ -251,6 +251,30 @@
- $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/phys,$(mtdlayout_dir620a1)),$(kernel_size_dir620a1),$(rootfs_size_dir620a1))
- endef
- +#########################################################################################
- +mtdlayout_dir320b1=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware)
- +kernel_size_dir320b1=917504
- +rootfs_size_dir320b1=7143424
- +define BuildFirmware/DIR320B1
- + $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/spi,$(mtdlayout_dir320b1)),$(kernel_size_dir320b1),$(rootfs_size_dir320b1),DIR320B1)
- +endef
- +
- +define BuildFirmware/DIR320B1/initramfs
- + $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/spi,$(mtdlayout_dir320b1)),$(kernel_size_dir320b1),$(rootfs_size_dir320b1))
- +endef
- +
- +mtdlayout_dir620d1=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware)
- +kernel_size_dir620d1=917504
- +rootfs_size_dir620d1=7143424
- +define BuildFirmware/DIR620D1
- + $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/spi,$(mtdlayout_dir620d1)),$(kernel_size_dir620d1),$(rootfs_size_dir620d1),DIR620D1)
- +endef
- +
- +define BuildFirmware/DIR620D1/initramfs
- + $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/spi,$(mtdlayout_dir620d1)),$(kernel_size_dir620d1),$(rootfs_size_dir620d1))
- +endef
- +#########################################################################################
- +
- define BuildFirmware/Edimax
- if [ -e "$(call sysupname,$(1),$(2))" ]; then \
- mkedimaximg -i $(call sysupname,$(1),$(2)) \
- @@ -501,6 +525,16 @@
- $(call Image/Build/Template/$(fs_squash)/$(1),DAP1350,dap-1350,DAP-1350,RT3052-AP-DAP1350-3)
- endef
- +#########################################################################################
- +define Image/Build/Profile/DIR320B1
- + $(call Image/Build/Template/$(fs_squash)/$(1),DIR320B1,dir-320-b1,DIR-320-B1)
- +endef
- +
- +define Image/Build/Profile/DIR620D1
- + $(call Image/Build/Template/$(fs_squash)/$(1),DIR620D1,dir-620-d1,DIR-620-D1)
- +endef
- +#########################################################################################
- +
- define Image/Build/Profile/ESR9753
- $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,esr-9753,ESR-9753,ttyS1,57600,phys)
- endef
- @@ -629,6 +663,10 @@
- $(call Image/Build/Profile/DIR300B1,$(1))
- $(call Image/Build/Profile/DIR615H1,$(1))
- $(call Image/Build/Profile/DAP1350,$(1))
- +###################################################
- + $(call Image/Build/Profile/DIR320B1,$(1))
- + $(call Image/Build/Profile/DIR620D1,$(1))
- +###################################################
- $(call Image/Build/Profile/ESR9753,$(1))
- $(call Image/Build/Profile/F5D8235V2,$(1))
- $(call Image/Build/Profile/RTN10PLUS,$(1))
- --- target/linux/ramips/rt305x/config-3.7 2013-01-23 17:39:44.522302970 +0400
- +++ target/linux/ramips/rt305x/config-3.7 2012-12-23 12:10:26.000000000 +0400
- @@ -101,7 +101,9 @@
- CONFIG_RT305X_MACH_CARAMBOLA=y
- CONFIG_RT305X_MACH_DAP_1350=y
- CONFIG_RT305X_MACH_DIR_300_REVB=y
- +CONFIG_RT305X_MACH_DIR_320_B1=y
- CONFIG_RT305X_MACH_DIR_615_H1=y
- +CONFIG_RT305X_MACH_DIR_620_D1=y
- CONFIG_RT305X_MACH_ESR_9753=y
- CONFIG_RT305X_MACH_F5D8235_V2=y
- CONFIG_RT305X_MACH_FONERA20N=y
- --- /dev/null 2013-02-17 16:08:41.569847969 +0400
- +++ target/linux/ramips/rt305x/profiles/dir320b1.mk 2013-02-05 12:39:37.493462566 +0400
- @@ -0,0 +1,13 @@
- +define Profile/DIR320B1
- + NAME:=D-Link DIR-320/NRU
- + PACKAGES:=\
- + kmod-usb-core kmod-usb-rt305x-dwc_otg \
- + kmod-ledtrig-usbdev kmod-mppe kmod-rt2800-pci \
- + kmod-usb2 kmod-usb-ohci kmod-ledtrig-netdev
- +endef
- +
- +define Profile/DIR320B1/Description
- + Package set for DIR-320/NRU board
- +endef
- +
- +$(eval $(call Profile,DIR320B1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement