Skip to content

Commit

Permalink
soc: arm64: nxp_imx: fix soc.h usage
Browse files Browse the repository at this point in the history
<soc.h> has been traditionally been used as a proxy to HAL headers,
register definitions, etc. Nowadays, <soc.h> is anarchy. It serves a
different purpose depending on the SoC. In some cases it includes HALs,
in some others it works as a header sink/proxy (for no good reason), as
a register definition when there's no HAL... To make things worse, it is
being included in code that is, in theory, non-SoC specific.

This patch is part of a series intended to improve the situation by
removing <soc.h> usage when not needed, and by eventually removing it.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed Jun 5, 2022
1 parent e2830c7 commit 27ec244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions soc/arm64/nxp_imx/imx8m/mmu_regions.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/device.h>
#include <soc.h>
#include <zephyr/arch/arm64/arm_mmu.h>
#include <zephyr/devicetree.h>
#include <zephyr/sys/util.h>

static const struct arm_mmu_region mmu_regions[] = {

Expand Down
15 changes: 0 additions & 15 deletions soc/arm64/nxp_imx/imx8m/soc.h

This file was deleted.

0 comments on commit 27ec244

Please sign in to comment.