Changeset 34374


Ignore:
Timestamp:
2012-11-25T17:23:05+01:00 (5 years ago)
Author:
juhosg
Message:

AA: ar71xx: set pad6 cfg for AR8327 on the AP136 board

Backport of r34316.

Also override the pll_1000 value. Without these settings
ethernet suffers from packet loss.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/target/linux/ar71xx/patches-3.3/609-MIPS-ath79-ap136-fixes.patch

    r32607 r34374  
    5757 static struct gpio_led ap136_leds_gpio[] __initdata = { 
    5858        { 
    59 @@ -98,63 +104,82 @@ static struct gpio_keys_button ap136_gpi 
     59@@ -98,63 +104,91 @@ static struct gpio_keys_button ap136_gpi 
    6060        }, 
    6161 }; 
     
    7979-               .modalias       = "mx25l6405d", 
    8080-               .controller_data = &ap136_spi0_data, 
     81-       } 
     82+static struct ar8327_pad_cfg ap136_ar8327_pad6_cfg = { 
     83+       .mode = AR8327_PAD_MAC_SGMII, 
     84+       .txclk_delay_en = false, 
     85+       .rxclk_delay_en = true, 
     86+       .txclk_delay_sel = AR8327_CLK_DELAY_SEL0, 
     87+       .rxclk_delay_sel = AR8327_CLK_DELAY_SEL0, 
     88 }; 
     89  
     90-static struct ath79_spi_platform_data ap136_spi_data = { 
     91-       .bus_num        = 0, 
     92-       .num_chipselect = 1, 
    8193+static struct ar8327_platform_data ap136_ar8327_data = { 
    8294+       .pad0_cfg = &ap136_ar8327_pad0_cfg, 
     95+       .pad6_cfg = &ap136_ar8327_pad6_cfg, 
    8396+       .cpuport_cfg = { 
    8497+               .force_link = 1, 
     
    87100+               .txpause = 1, 
    88101+               .rxpause = 1, 
    89         } 
     102+       } 
    90103 }; 
    91104  
    92 -static struct ath79_spi_platform_data ap136_spi_data = { 
    93 -       .bus_num        = 0, 
    94 -       .num_chipselect = 1, 
     105-#ifdef CONFIG_PCI 
     106-static struct ath9k_platform_data ap136_ath9k_data; 
    95107+static struct mdio_board_info ap136_mdio0_info[] = { 
    96108+       { 
     
    99111+               .platform_data = &ap136_ar8327_data, 
    100112+       }, 
    101  }; 
     113+}; 
    102114  
    103 -#ifdef CONFIG_PCI 
    104 -static struct ath9k_platform_data ap136_ath9k_data; 
    105 - 
    106115-static int ap136_pci_plat_dev_init(struct pci_dev *dev) 
    107116+static void __init ap136_gmac_setup(void) 
     
    168177+       ath79_eth0_data.phy_mask = BIT(0); 
    169178+       ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev; 
    170 +       ath79_eth0_pll_data.pll_1000 = 0x06000000; 
     179+       ath79_eth0_pll_data.pll_1000 = 0xa6000000; 
    171180+ 
    172181+       ath79_register_eth(0); 
Note: See TracChangeset for help on using the changeset viewer.