Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
d31f3194
Commit
d31f3194
authored
Jul 26, 2021
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jul 26, 2021
Browse files
Merge "fix(plat/imx): do not keep mmc_device_info in stack" into integration
parents
81e63f25
99d37c8c
Changes
2
Show whitespace changes
Inline
Side-by-side
plat/imx/imx7/picopi/picopi_bl2_el3_setup.c
View file @
d31f3194
/*
* Copyright (c) 2018-201
9
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018-20
2
1, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -43,6 +43,8 @@
IOMUXC_SW_PAD_CTL_PAD_SD3_SLEW_SLOW | \
IOMUXC_SW_PAD_CTL_PAD_SD3_DSE_3_X6)
static
struct
mmc_device_info
mmc_info
;
static
void
picopi_setup_pinmux
(
void
)
{
/* Configure UART5 TX */
...
...
@@ -93,14 +95,13 @@ static void picopi_setup_pinmux(void)
static
void
picopi_usdhc_setup
(
void
)
{
imx_usdhc_params_t
params
;
struct
mmc_device_info
info
;
zeromem
(
&
params
,
sizeof
(
imx_usdhc_params_t
));
params
.
reg_base
=
PLAT_PICOPI_BOOT_MMC_BASE
;
params
.
clk_rate
=
25000000
;
params
.
bus_width
=
MMC_BUS_WIDTH_8
;
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
imx_usdhc_init
(
&
params
,
&
info
);
mmc_
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
imx_usdhc_init
(
&
params
,
&
mmc_
info
);
}
static
void
picopi_setup_usb_clocks
(
void
)
...
...
plat/imx/imx7/warp7/warp7_bl2_el3_setup.c
View file @
d31f3194
/*
* Copyright (c) 2018-201
9
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018-20
2
1, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -69,6 +69,8 @@
IOMUXC_SW_PAD_CTL_PAD_ECSPI1_SCLK_HYS_EN | \
IOMUXC_SW_PAD_CTL_PAD_ECSPI1_SCLK_DSE_1_X4)
static
struct
mmc_device_info
mmc_info
;
static
void
warp7_setup_pinmux
(
void
)
{
/* Configure UART1 TX */
...
...
@@ -99,14 +101,13 @@ static void warp7_setup_pinmux(void)
static
void
warp7_usdhc_setup
(
void
)
{
imx_usdhc_params_t
params
;
struct
mmc_device_info
info
;
zeromem
(
&
params
,
sizeof
(
imx_usdhc_params_t
));
params
.
reg_base
=
PLAT_WARP7_BOOT_MMC_BASE
;
params
.
clk_rate
=
25000000
;
params
.
bus_width
=
MMC_BUS_WIDTH_8
;
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
imx_usdhc_init
(
&
params
,
&
info
);
mmc_
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
imx_usdhc_init
(
&
params
,
&
mmc_
info
);
}
static
void
warp7_setup_usb_clocks
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment