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: arm: atmel_sam: Clock clean-up #24487

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

nandojve
Copy link
Member

Small clock clean-up. This moves all devicetree entries on SoC to atmel_sam_dt.h.

Signed-off-by: Gerson Fernando Budke nandojve@gmail.com

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I am not sure about moving SOC_ATMEL_SAM_HCLK_FREQ_HZ and SOC_ATMEL_SAM_MCK_FREQ_HZ to atmel_sam_dt.h since these are not entirely derived from the device tree.

For the time being, I believe it is more advantageous to keep them in the each soc.h, as that is more straight forward and we do not need extra ifdefs that way.

These macros should be moved to atmel_sam_dt.h when we do proper device tree-based clock system specification, as I previously commented.

soc/arm/atmel_sam/common/atmel_sam_dt.h Outdated Show resolved Hide resolved
soc/arm/atmel_sam/common/atmel_sam_dt.h Outdated Show resolved Hide resolved
soc/arm/atmel_sam/same70/soc.h Outdated Show resolved Hide resolved
soc/arm/atmel_sam/samv71/soc.h Outdated Show resolved Hide resolved
@nandojve
Copy link
Member Author

rebase

@ioannisg
Copy link
Member

@galak pls, see if your fb is addressed

Small clock clean-up. This moves all devicetree entries on SoC to
atmel_sam_dt.h.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
@nandojve
Copy link
Member Author

nandojve commented Apr 23, 2020

rebase and switch from DT_NODELABEL to DT_PATH following same approach on #24602.

@ioannisg ioannisg merged commit b2578c6 into zephyrproject-rtos:master Apr 23, 2020
@nandojve nandojve deleted the sam_clock_cleanup branch April 28, 2020 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants