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 [email protected]

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
@nandojve nandojve force-pushed the sam_clock_cleanup branch from 2e65925 to 09c2457 Compare April 21, 2020 15:09
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 nandojve force-pushed the sam_clock_cleanup branch from b57770c to beb8919 Compare April 21, 2020 15:58
@nandojve nandojve force-pushed the sam_clock_cleanup branch from beb8919 to 2c00629 Compare April 21, 2020 23:11
@nandojve
Copy link
Member Author

rebase

@nandojve nandojve force-pushed the sam_clock_cleanup branch from 2c00629 to 21c84d1 Compare April 22, 2020 02:02
@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 <[email protected]>
@nandojve nandojve force-pushed the sam_clock_cleanup branch from 21c84d1 to f7e6f09 Compare April 23, 2020 02:07
@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.

4 participants