drivers: usb: use generic option name for log level
Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
040b85bfbc
commit
3dd51d52a2
7 changed files with 10 additions and 11 deletions
|
@ -21,13 +21,12 @@ config USB_DW_IRQ_PRI
|
|||
help
|
||||
USB interrupt priority.
|
||||
|
||||
config SYS_LOG_USB_DW_LEVEL
|
||||
config SYS_LOG_USB_DRIVER_LEVEL
|
||||
int
|
||||
prompt "DesignWare USB driver log level"
|
||||
depends on USB_DW
|
||||
prompt "USB driver log level"
|
||||
default 0
|
||||
help
|
||||
Sets log level for DesignWare USB driver
|
||||
Sets log level for USB driver
|
||||
|
||||
Levels are:
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "usb_dw_registers.h"
|
||||
#include "clk.h"
|
||||
|
||||
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_USB_DW_LEVEL
|
||||
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_USB_DRIVER_LEVEL
|
||||
#include <logging/sys_log.h>
|
||||
|
||||
/* convert from endpoint address to hardware endpoint index */
|
||||
|
@ -65,7 +65,7 @@ static inline void _usb_dw_int_unmask(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if (CONFIG_SYS_LOG_USB_DW_LEVEL >= SYS_LOG_LEVEL_DEBUG)
|
||||
#if (CONFIG_SYS_LOG_USB_DRIVER_LEVEL >= SYS_LOG_LEVEL_DEBUG)
|
||||
static void usb_dw_reg_dump(void)
|
||||
{
|
||||
u8_t i;
|
||||
|
|
|
@ -3,7 +3,7 @@ CONFIG_ARC_INIT=n
|
|||
CONFIG_USB=y
|
||||
CONFIG_USB_DW=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_SYS_LOG_USB_DW_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_DRIVER_LEVEL=0
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
CONFIG_SYS_LOG_USB_LEVEL=0
|
||||
CONFIG_SERIAL=y
|
||||
|
|
|
@ -4,7 +4,7 @@ CONFIG_ARC_INIT=n
|
|||
CONFIG_USB=y
|
||||
CONFIG_USB_DW=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_SYS_LOG_USB_DW_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_DRIVER_LEVEL=0
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
CONFIG_SYS_LOG_USB_LEVEL=0
|
||||
CONFIG_SERIAL=y
|
||||
|
|
|
@ -4,7 +4,7 @@ CONFIG_ARC_INIT=n
|
|||
CONFIG_USB=y
|
||||
CONFIG_USB_DW=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_SYS_LOG_USB_DW_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_DRIVER_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_LEVEL=0
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_SOC_FLASH_QMSI=y
|
||||
|
|
|
@ -8,7 +8,7 @@ CONFIG_GPIO=y
|
|||
CONFIG_USB=y
|
||||
CONFIG_USB_DW=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_SYS_LOG_USB_DW_LEVEL=3
|
||||
CONFIG_SYS_LOG_USB_DRIVER_LEVEL=3
|
||||
CONFIG_USB_MASS_STORAGE=y
|
||||
CONFIG_SYS_LOG_USB_LEVEL=3
|
||||
CONFIG_SYS_LOG_USB_MASS_STORAGE_LEVEL=4
|
||||
|
|
|
@ -4,7 +4,7 @@ CONFIG_ARC_INIT=n
|
|||
CONFIG_USB=y
|
||||
CONFIG_USB_DW=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_SYS_LOG_USB_DW_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_DRIVER_LEVEL=0
|
||||
CONFIG_SYS_LOG_USB_LEVEL=0
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue