Skip to content

Commit

Permalink
drivers: sam: use header file "platform_config.h" instead of "sama5d2.h"
Browse files Browse the repository at this point in the history
As "sama5d2.h" is included in "platform_config.h" it's better to use
"#include <platform_config.h>" for support more devices later.

Signed-off-by: Tony Han <tony.han@microchip.com>
  • Loading branch information
TonyHan11 committed Jan 16, 2024
1 parent 8e9d8ac commit 155a974
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/arch/arm/plat-sam/sam_sfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <mm/core_memprot.h>
#include <mm/core_mmu.h>
#include <sam_sfr.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <types_ext.h>

register_phys_mem_pgdir(MEM_AREA_IO_SEC, SFR_BASE, CORE_MMU_PGDIR_SIZE);
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/atmel_rstc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <kernel/dt.h>
#include <kernel/dt_driver.h>
#include <matrix.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <tee_api_defines.h>
#include <tee_api_types.h>
#include <types_ext.h>
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/atmel_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <kernel/dt_driver.h>
#include <matrix.h>
#include <mm/core_memprot.h>
#include <sama5d2.h>
#include <platform_config.h>

#define RTC_VAL(reg, val) (((val) >> RTC_## reg ## _SHIFT) & \
RTC_## reg ##_MASK)
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/atmel_shdwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <kernel/thread.h>
#include <libfdt.h>
#include <matrix.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <stdbool.h>
#include <tee_api_defines.h>
#include <tee_api_types.h>
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/atmel_tcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <kernel/time_source.h>
#include <libfdt.h>
#include <matrix.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <tee_api_defines.h>

#define TCB_CHAN(chan) ((chan) * 0x40)
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/atmel_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <kernel/pm.h>
#include <matrix.h>
#include <mm/core_mmu.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <tee_api_types.h>

#define WDT_CR 0x0
Expand Down
2 changes: 1 addition & 1 deletion core/drivers/nvmem/atmel_sfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <kernel/dt_driver.h>
#include <malloc.h>
#include <matrix.h>
#include <sama5d2.h>
#include <platform_config.h>
#include <string.h>
#include <tee_api_defines.h>
#include <tee_api_types.h>
Expand Down

0 comments on commit 155a974

Please sign in to comment.