drivers: wdog: cmsdk: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert cmsdk driver to use new defines so we can remove the dts_fixup.h code for it. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
4b6cec44ff
commit
61cb8b6c4f
4 changed files with 1 additions and 13 deletions
|
@ -13,9 +13,6 @@
|
|||
#define DT_CMSDK_APB_DTIMER DT_ARM_CMSDK_DTIMER_40002000_BASE_ADDRESS
|
||||
#define DT_CMSDK_APB_DUALTIMER_IRQ DT_ARM_CMSDK_DTIMER_40002000_IRQ_0
|
||||
|
||||
/* CMSDK APB Watchdog */
|
||||
#define DT_CMSDK_APB_WDOG DT_ARM_CMSDK_WATCHDOG_40008000_BASE_ADDRESS
|
||||
|
||||
/* CMSDK AHB General Purpose Input/Output (GPIO) */
|
||||
#define DT_CMSDK_AHB_GPIO0 DT_ARM_CMSDK_GPIO_40010000_BASE_ADDRESS
|
||||
#define DT_IRQ_PORT0_ALL DT_ARM_CMSDK_GPIO_40010000_IRQ_0
|
||||
|
|
|
@ -57,7 +57,7 @@ struct wdog_cmsdk_apb {
|
|||
#define CMSDK_APB_WDOG_LOCK_VALUE (0x2BDDF662)
|
||||
|
||||
#define WDOG_STRUCT \
|
||||
((volatile struct wdog_cmsdk_apb *)(DT_CMSDK_APB_WDOG))
|
||||
((volatile struct wdog_cmsdk_apb *)(DT_ARM_CMSDK_WATCHDOG_0_BASE_ADDRESS))
|
||||
|
||||
/* Keep reference of the device to pass it to the callback */
|
||||
struct device *wdog_r;
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
#define DT_CMSDK_APB_DTIMER DT_ARM_CMSDK_DTIMER_40002000_BASE_ADDRESS
|
||||
#define DT_CMSDK_APB_DUALTIMER_IRQ DT_ARM_CMSDK_DTIMER_40002000_IRQ_0
|
||||
|
||||
/* CMSDK APB Watchdog */
|
||||
#define DT_CMSDK_APB_WDOG DT_ARM_CMSDK_WATCHDOG_40008000_BASE_ADDRESS
|
||||
|
||||
/* CMSDK AHB General Purpose Input/Output (GPIO) */
|
||||
#define DT_CMSDK_AHB_GPIO0 DT_ARM_CMSDK_GPIO_40010000_BASE_ADDRESS
|
||||
#define DT_IRQ_PORT0_ALL DT_ARM_CMSDK_GPIO_40010000_IRQ_0
|
||||
|
|
|
@ -39,9 +39,6 @@
|
|||
#define DT_PL011_PORT1_BAUD_RATE DT_ARM_PL011_40102000_CURRENT_SPEED
|
||||
#define DT_PL011_PORT1_NAME DT_ARM_PL011_40102000_LABEL
|
||||
|
||||
/* CMSDK APB Watchdog */
|
||||
#define DT_CMSDK_APB_WDOG DT_ARM_CMSDK_WATCHDOG_40081000_BASE_ADDRESS
|
||||
|
||||
/* SCC */
|
||||
#define DT_ARM_SCC_BASE_ADDRESS DT_ARM_SCC_4010C000_BASE_ADDRESS
|
||||
|
||||
|
@ -77,9 +74,6 @@
|
|||
#define DT_PL011_PORT1_BAUD_RATE DT_ARM_PL011_50102000_CURRENT_SPEED
|
||||
#define DT_PL011_PORT1_NAME DT_ARM_PL011_50102000_LABEL
|
||||
|
||||
/* CMSDK APB Watchdog */
|
||||
#define DT_CMSDK_APB_WDOG DT_ARM_CMSDK_WATCHDOG_50081000_BASE_ADDRESS
|
||||
|
||||
/* SCC */
|
||||
#define DT_ARM_SCC_BASE_ADDRESS DT_ARM_SCC_5010C000_BASE_ADDRESS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue