Skip to content

Commit

Permalink
drivers: eth: e1000: only enable e1000 clock on e1000 configured
Browse files Browse the repository at this point in the history
e1000 clock should only be enabled by default if e1000 driver is
configured

Signed-off-by: Xabier Marquiegui <[email protected]>
  • Loading branch information
ainguraXmarquiegui authored and nashif committed Sep 24, 2021
1 parent 734e528 commit 3566cf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/ethernet/Kconfig.e1000
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ menuconfig ETH_E1000
help
Enable Intel(R) PRO/1000 Gigabit Ethernet driver.

if ETH_E1000

config ETH_NIC_MODEL
string
default "e1000"
depends on ETH_E1000
help
Tells what Qemu network model to use. This value is given as
a parameter to -nic qemu command line option.
Expand All @@ -38,3 +39,5 @@ config ETH_E1000_PTP_CLOCK_SRC_HZ
help
Set the frequency in Hz sourced to the PTP timer.
If the value is set properly, the timer will be accurate.

endif # ETH_E1000

0 comments on commit 3566cf1

Please sign in to comment.