-
Notifications
You must be signed in to change notification settings - Fork 89
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
feat(Other): Add MAX78000 to Zephyr folder #1313
base: main
Are you sure you want to change the base?
feat(Other): Add MAX78000 to Zephyr folder #1313
Conversation
This commit adds MAX78000 SoC into the zephyr build system Signed-off-by: Yasin Ustuner <[email protected]>
This commit adds i2c related clock definitions for MAX78000 SoC Signed-off-by: Yasin Ustuner <[email protected]>
@@ -144,7 +145,7 @@ static inline int Wrap_MXC_TMR_GetClockIndex(int z_clock) | |||
return MXC_TMR_EXT_CLK; | |||
case 2: // ADI_MAX32_PRPH_CLK_SRC_IBRO | |||
return MXC_TMR_8M_CLK; | |||
#if !defined(CONFIG_SOC_MAX78002) | |||
#if !defined(CONFIG_SOC_MAX78002) && !defined(CONFIG_SOC_MAX778000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo please.
) | ||
endif() | ||
|
||
if (CONFIG_SOC_FLASH_MAX32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add "CONFIG_HWINFO_MAX32" to if statement of HWINFO driver's dependencies (AES, FLC and TRNG). (Related PR)
@@ -57,7 +57,8 @@ static inline void Wrap_MXC_SYS_SetClockDiv(int div) | |||
#elif defined(CONFIG_SOC_MAX32690) || defined(CONFIG_SOC_MAX32655) || \ | |||
defined(CONFIG_SOC_MAX32670) || defined(CONFIG_SOC_MAX32672) || \ | |||
defined(CONFIG_SOC_MAX32662) || defined(CONFIG_SOC_MAX32675) || \ | |||
defined(CONFIG_SOC_MAX32680) || defined(CONFIG_SOC_MAX32657) || defined(CONFIG_SOC_MAX78002) | |||
defined(CONFIG_SOC_MAX32680) || defined(CONFIG_SOC_MAX32657) || \ | |||
defined(CONFIG_SOC_MAX78002) || defined(CONFIG_SOC_MAX78000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please handle clock differences here. "MXC_SYS_CLOCK_ERFO" macro is not defined for MAX78000.
/* | ||
* This function is called during boot up. | ||
*/ | ||
void max32xx_system_init(void) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I see, "MXC_ICC_Enable(MXC_ICC0)" line is required in here. Please check system_max78000.c file.
Add MAX78000 SoC into the zephyr build system
Signed-off-by: Yasin Ustuner [email protected]
Description
Checklist Before Requesting Review