Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc: arc: remove <soc.h> usage #46585

Merged
merged 19 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
soc: arc: snps_arc_iot: move SYSCLK_DEFAULT_IOSC_HZ to sysconf
sysconf source file is the only user of such definition, so move it
there.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
  • Loading branch information
gmarull committed Jul 15, 2022
commit b9043d98c627eae9ac41204f3e080f92958874d3
3 changes: 0 additions & 3 deletions soc/arc/snps_arc_iot/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

#include <zephyr/sys/util.h>

/* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(16)

/* ARC EM Core IRQs */
#include "soc_irq.h"

Expand Down
2 changes: 2 additions & 0 deletions soc/arc/snps_arc_iot/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "soc.h"
#include "sysconf.h"

/* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(16)

#define PLL_CLK_IN (SYSCLK_DEFAULT_IOSC_HZ / 1000000) /* PLL clock in */

Expand Down