drivers/i3c: support i3c driver model

Reference to: https://github.com/torvalds/linux/tree/master/drivers/i3c

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2023-03-06 22:24:08 +08:00
committed by Xiang Xiao
parent a01d9e9ce0
commit 5b48dea4f5
17 changed files with 5399 additions and 0 deletions
+26
View File
@@ -596,6 +596,24 @@
# define i2sinfo _none
#endif
#ifdef CONFIG_DEBUG_I3C_ERROR
# define i3cerr _err
#else
# define i3cerr _none
#endif
#ifdef CONFIG_DEBUG_I3C_WARN
# define i3cwarn _warn
#else
# define i3cwarn _none
#endif
#ifdef CONFIG_DEBUG_I3C_INFO
# define i3cinfo _info
#else
# define i3cinfo _none
#endif
#ifdef CONFIG_DEBUG_PWM_ERROR
# define pwmerr _err
#else
@@ -1192,6 +1210,14 @@
# define i2sinfodumpbuffer(m,b,n)
#endif
#ifdef CONFIG_DEBUG_I3C
# define i3cerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
# define i3cinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
#else
# define i3cerrdumpbuffer(m,b,n)
# define i3cinfodumpbuffer(m,b,n)
#endif
#ifdef CONFIG_DEBUG_PWM
# define pwmerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
# define pwminfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)