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

feat(Other): Add MAX78000 to Zephyr folder #1313

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yasinustunerg
Copy link

Add MAX78000 SoC into the zephyr build system

Signed-off-by: Yasin Ustuner [email protected]

Description

  • Add MAX78000 into the zephyr build system
  • Add I2C related clock speed definitions

Checklist Before Requesting Review

  • PR Title follows correct guidelines.
  • Description of changes and all other relevant information.
  • (Optional) Link any related GitHub issues using a keyword
  • (Optional) Provide info on any relevant functional testing/validation. For API changes or significant features, this is not optional.

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]>
@github-actions github-actions bot added MAX78000 Related to the MAX78000 (AI85) Zephyr MSDK Zephyr related change. labels Dec 23, 2024
@yasinustunerg yasinustunerg changed the title feat(zephyr): Add MAX78000 to Zephyr folder feat(Other): Add MAX78000 to Zephyr folder Dec 23, 2024
@@ -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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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) {}
Copy link
Contributor

@hfakkiz hfakkiz Dec 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAX78000 Related to the MAX78000 (AI85) Zephyr MSDK Zephyr related change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants