Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethernet: Remove duplicate code #100

Closed
wants to merge 1 commit into from
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
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.