Skip to content
Snippets Groups Projects
Commit eeaddfdf authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

spl:mc3: Set TTLOUT1 in SPL

The TTLOUT1 must be set early during boot.
parent a817e56b
No related branches found
No related tags found
1 merge request!86spl:mc3: Set TTLOUT1 in SPL
Pipeline #45129 failed with stage
in 8 seconds
......@@ -10,7 +10,6 @@
#include <spl.h>
#include <asm/io.h>
#include <errno.h>
#include <asm/io.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/arch/imx8mp_pins.h>
#include <asm/arch/sys_proto.h>
......@@ -29,6 +28,8 @@ DECLARE_GLOBAL_DATA_PTR;
#include "../common/kuk_boards.h"
#define TTLOUT1_GPIO IMX_GPIO_NR(1, 5)
extern struct dram_timing_info dram_timing;
extern struct dram_timing_info dram_timing_mc3;
......@@ -415,6 +416,11 @@ void board_init_f(ulong dummy)
/* Adjust pmic voltage to 1.0V for 800M */
if (( module == KUK_MODULE_UNKNOWN ) || ( module == GUF_MODULE_MC3 )) {
setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info_p1);
#if CONFIG_SPL_GPIO_SUPPORT
gpio_request(TTLOUT1_GPIO, "TTLOUT1");
gpio_direction_output(TTLOUT1_GPIO, 0);
#endif
} else { // Trizeps8plus
setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info_p3);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment