forked from ARM-software/arm-trusted-firmware
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: mt7622: add DDR initialization support
Add DDR initialization support for mt7622 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
- Loading branch information
1 parent
d5432bd
commit 1b01a0f
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
#include <drivers/io/io_block.h> | ||
#include <drivers/io/io_fip.h> | ||
#include <hsuart.h> | ||
#include <emi.h> | ||
#include <lib/mmio.h> | ||
#include <pinctrl.h> | ||
#include <plat/common/common_def.h> | ||
|
@@ -282,6 +283,7 @@ void bl2_platform_setup(void) | |
#endif | ||
mtk_pwrap_init(); | ||
mtk_pmic_init(); | ||
mtk_mem_init(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hackpascal
Author
Collaborator
|
||
mtk_wdt_init(); | ||
|
||
mtk_io_setup(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
/* | ||
* Copyright (C) 2021 MediaTek Inc. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
#ifndef _MT_EMI_H_ | ||
#define _MT_EMI_H_ | ||
|
||
void mtk_mem_init(void); | ||
|
||
#endif /* _MT_EMI_H_ */ | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@hackpascal When operating the CPU at 300 MHz @ 0.9 V at the time of reboot the system still hangs here:
This issue has been present also in earlier versions of TF-A published here and it would be great to find a fix for it (such as setting CPU voltage to 1.0 V early in bl2 before calling
mtk_mem_init()
.