Skip to content

Commit

Permalink
dts: arm: atmel_same70: Remove use of CONFIG_SOC_* from Atmel dts files
Browse files Browse the repository at this point in the history
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_PART_NUMBER_SAME70*

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Sep 15, 2018
1 parent a75dfe3 commit 8461217
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 48 deletions.
2 changes: 1 addition & 1 deletion boards/arm/sam_e70_xplained/sam_e70_xplained.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/dts-v1/;

#include <atmel/same70.dtsi>
#include <atmel/same70q21.dtsi>

/ {
model = "Atmel SAM E70 Xplained board";
Expand Down
3 changes: 0 additions & 3 deletions dts/arm/atmel/same70.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

#include <arm/armv7-m.dtsi>
#include <atmel/same70_mem.h>
#include <dt-bindings/i2c/i2c.h>

/ {
Expand All @@ -24,13 +23,11 @@
flash0: flash@400000 {
compatible = "soc-nv-flash";
label = "FLASH_0";
reg = <0x00400000 DT_FLASH_SIZE>;
};

sram0: memory@20400000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20400000 DT_SRAM_SIZE>;
};

soc {
Expand Down
44 changes: 0 additions & 44 deletions dts/arm/atmel/same70_mem.h

This file was deleted.

18 changes: 18 additions & 0 deletions dts/arm/atmel/same70q21.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <atmel/same70.dtsi>

/ {
flash0: flash@400000 {
reg = <0x00400000 DT_SIZE_K(2048)>;
};

sram0: memory@20400000 {
reg = <0x20400000 DT_SIZE_K(384)>;
};
};

0 comments on commit 8461217

Please sign in to comment.