drivers: hwinfo: atmel_sam: Replace DT_FLASH define
Replace DT_FLASH_DEV_BASE_ADDRESS with new DT_REG_ADDR/DT_INST macro as we phase out DT_FLASH define usage. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c7f8b30f53
commit
a5daf74467
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ ssize_t z_impl_hwinfo_get_device_id(u8_t *buffer, size_t length)
|
|||
*/
|
||||
__ramfunc static void hwinfo_sam_read_device_id(void)
|
||||
{
|
||||
Efc *efc = (Efc *)DT_FLASH_DEV_BASE_ADDRESS;
|
||||
Efc *efc = (Efc *)DT_REG_ADDR(DT_INST(0, atmel_sam_flash_controller));
|
||||
u8_t *flash = (u8_t *)CONFIG_FLASH_BASE_ADDRESS;
|
||||
int i;
|
||||
|
||||
|
@ -64,7 +64,7 @@ __ramfunc static void hwinfo_sam_read_device_id(void)
|
|||
|
||||
static int hwinfo_sam_init(struct device *arg)
|
||||
{
|
||||
Efc *efc = (Efc *)DT_FLASH_DEV_BASE_ADDRESS;
|
||||
Efc *efc = (Efc *)DT_REG_ADDR(DT_INST(0, atmel_sam_flash_controller));
|
||||
u32_t fmr;
|
||||
int key;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue