drivers: flash: sam0: Remove defines from dts_fixup.h
Move SAM0 flash to use the raw defines generated from the DTS parsing. Signed-off-by: Derek Hageman <hageman@inthat.cloud>
This commit is contained in:
parent
37a6a7ea68
commit
4204700ae4
4 changed files with 3 additions and 6 deletions
|
@ -376,6 +376,6 @@ static const struct flash_driver_api flash_sam0_api = {
|
|||
|
||||
static struct flash_sam0_data flash_sam0_data_0;
|
||||
|
||||
DEVICE_AND_API_INIT(flash_sam0, DT_FLASH_DEV_NAME,
|
||||
DEVICE_AND_API_INIT(flash_sam0, DT_ATMEL_SAM0_NVMCTRL_0_LABEL,
|
||||
flash_sam0_init, &flash_sam0_data_0, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_sam0_api);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_FLASH_DEV_BASE_ADDRESS DT_ATMEL_SAM0_NVMCTRL_41004000_BASE_ADDRESS_0
|
||||
#define DT_FLASH_DEV_NAME DT_ATMEL_SAM0_NVMCTRL_41004000_LABEL
|
||||
|
||||
#define DT_UART_SAM0_SERCOM0_CURRENT_SPEED DT_ATMEL_SAM0_UART_42000800_CURRENT_SPEED
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_FLASH_DEV_BASE_ADDRESS DT_ATMEL_SAM0_NVMCTRL_41004000_BASE_ADDRESS
|
||||
#define DT_FLASH_DEV_NAME DT_ATMEL_SAM0_NVMCTRL_41004000_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_ATMEL_SAM0_NVMCTRL_0_LABEL
|
||||
|
||||
#define DT_UART_SAM0_SERCOM0_CURRENT_SPEED DT_ATMEL_SAM0_UART_42000800_CURRENT_SPEED
|
||||
#define DT_UART_SAM0_SERCOM0_IRQ DT_ATMEL_SAM0_UART_42000800_IRQ_0
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
/* SoC level DTS fixup file */
|
||||
|
||||
#define DT_FLASH_DEV_BASE_ADDRESS DT_ATMEL_SAM0_NVMCTRL_41004000_BASE_ADDRESS
|
||||
#define DT_FLASH_DEV_NAME DT_ATMEL_SAM0_NVMCTRL_41004000_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_ATMEL_SAM0_NVMCTRL_0_LABEL
|
||||
|
||||
#define DT_UART_SAM0_SERCOM0_CURRENT_SPEED DT_ATMEL_SAM0_UART_42000800_CURRENT_SPEED
|
||||
#define DT_UART_SAM0_SERCOM0_IRQ DT_ATMEL_SAM0_UART_42000800_IRQ_0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue