Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ethernet: Remove duplicate code
  • Loading branch information
runnerway committed Apr 13, 2015
commit 6e0b5ce865dcd636c0b2b53bad9b00bb2e2ffa44
13 changes: 0 additions & 13 deletions drivers/amlogic/ethernet/am_net8218.c
Original file line number Diff line number Diff line change
Expand Up @@ -2691,19 +2691,6 @@ static int ethernet_probe(struct platform_device *pdev)
aml_read_reg32(P_PREG_ETH_REG0) & ~(1 << 10));
}

ret = of_property_read_bool(pdev->dev.of_node, "disable_phyrefclk");
if (ret) {
int clk_25mout;
/* disable pinmux for phy clock 25MHz */
aml_clr_reg32_mask(P_PERIPHS_PIN_MUX_6, 1 << 8);
clk_25mout = amlogic_gpio_name_map_num("DIF_TTL_3_N");
amlogic_disable_pullup(clk_25mout, OWNER_NAME);
amlogic_gpio_direction_input(clk_25mout, OWNER_NAME);

/* disable clock generation for phy */
aml_write_reg32(P_PREG_ETH_REG0,
aml_read_reg32(P_PREG_ETH_REG0) & ~(1 << 10));
}
#endif
printk(DRV_NAME "init(dbg[%p]=%d)\n", (&g_debug), g_debug);
switch_mod_gate_by_name("ethernet",1);
Expand Down
Empty file modified drivers/amlogic/ethernet/aml.dtd
100755 → 100644
Empty file.