Skip to content

Commit

Permalink
Update Zephyr MSDK Hal based on MSDK PR: analogdevicesinc/msdk#1210
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 8, 2024
1 parent cd383b0 commit 42dcf5f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/SDHC/sdhc_ai87.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ unsigned int MXC_SDHC_Get_Clock_Config(void)
/* ************************************************************************** */
int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
mxc_gpio_regs_t *gpio = gpio_cfg_sdhc.port;

// Startup the IPO clock if it's not on already
Expand All @@ -62,6 +63,7 @@ int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
gpio->ds0 |= gpio_cfg_sdhc.mask;

MXC_GPIO_Config(&gpio_cfg_sdhc);
#endif
return MXC_SDHC_RevA_Init((mxc_sdhc_reva_regs_t *)MXC_SDHC, cfg);
}

Expand Down
2 changes: 2 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/SDHC/sdhc_me10.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@
/* ************************************************************************** */
int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_SDHC);

MXC_GPIO_Config(&gpio_cfg_sdhc_0);
MXC_GPIO_Config(&gpio_cfg_sdhc_1);
gpio_cfg_sdhc_1.port->vssel |= gpio_cfg_sdhc_1.mask;
gpio_cfg_sdhc_0.port->ds_sel0 |= gpio_cfg_sdhc_0.mask;
gpio_cfg_sdhc_1.port->ds_sel0 |= gpio_cfg_sdhc_1.mask;
#endif

return MXC_SDHC_RevA_Init((mxc_sdhc_reva_regs_t *)MXC_SDHC, cfg);
}
Expand Down
3 changes: 3 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/SDHC/sdhc_me13.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ unsigned int MXC_SDHC_Get_Clock_Config(void)
/* ************************************************************************** */
int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
mxc_gpio_regs_t *gpio = gpio_cfg_sdhc.port;

// Startup the HIRC96M clock if it's not on already
Expand All @@ -61,6 +62,8 @@ int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
gpio->ds |= gpio_cfg_sdhc.mask;

MXC_GPIO_Config(&gpio_cfg_sdhc);
#endif

return MXC_SDHC_RevA_Init((mxc_sdhc_reva_regs_t *)MXC_SDHC, cfg);
}

Expand Down
3 changes: 3 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/SDHC/sdhc_me14.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ unsigned int MXC_SDHC_Get_Clock_Config(void)
/* ************************************************************************** */
int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
mxc_gpio_regs_t *gpio = gpio_cfg_sdhc.port;

// Startup the HIRC96M clock if it's not on already
Expand All @@ -62,6 +63,8 @@ int MXC_SDHC_Init(const mxc_sdhc_cfg_t *cfg)
gpio->ds0 |= gpio_cfg_sdhc.mask;

MXC_GPIO_Config(&gpio_cfg_sdhc);
#endif

return MXC_SDHC_RevA_Init((mxc_sdhc_reva_regs_t *)MXC_SDHC, cfg);
}

Expand Down
2 changes: 1 addition & 1 deletion MAX/msdk_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79c0d9ae4d7ae85edd9f72fc3fc80f79931ad6d0
b21fba4f6bd955e20234034d1f262e2b0444e9f3

0 comments on commit 42dcf5f

Please sign in to comment.