1# Copyright 2024 Robert Slawinski <robert.slawinski1@gmail.com> 2# SPDX-License-Identifier: Apache-2.0 3 4# Davicom PHY DM8806 driver configuration options 5 6menuconfig PHY_DM8806 7 bool "Davicom PHY DM8806 driver" 8 default y 9 depends on DT_HAS_DAVICOM_DM8806_PHY_ENABLED 10 depends on MDIO 11 help 12 Enable driver for Davicom DM8806 PHY. 13 14if PHY_DM8806 15 16choice PHY_DM8806_TRIGGER_MODE 17 prompt "Trigger mode" 18 default PHY_DM8806_TRIGGER_GLOBAL_THREAD 19 help 20 Specify the type of triggering to be used by the driver. 21 22config PHY_DM8806_TRIGGER_NONE 23 bool "No trigger" 24 25config PHY_DM8806_TRIGGER_GLOBAL_THREAD 26 bool "Use global thread" 27 depends on GPIO 28 select PHY_DM8806_TRIGGER 29 30endchoice 31 32config PHY_DM8806_TRIGGER 33 bool 34 35config PHY_DM8806_THREAD_PRIORITY 36 int "Thread priority" 37 depends on PHY_DM8806_TRIGGER_GLOBAL_THREAD 38 default 13 39 help 40 Priority of thread used by the driver to handle interrupts. 41 42config PHY_DM8806_THREAD_STACK_SIZE 43 int "Thread stack size" 44 depends on PHY_DM8806_TRIGGER_GLOBAL_THREAD 45 default 1024 46 help 47 Stack size of thread used by the driver to handle interrupts. 48 49endif # PHY_DM8806_TRIGGER 50