Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bob Ham
uboot-imx
Commits
5958b7cb
Commit
5958b7cb
authored
Nov 14, 2018
by
Angus Ainslie (Purism)
Browse files
board/emcraft/imx8m_som/spl.c : set IMU INT as an input
parent
f882d5a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
board/emcraft/imx8m_som/spl.c
View file @
5958b7cb
...
...
@@ -192,9 +192,11 @@ int board_mmc_init(bd_t *bis)
#ifdef CONFIG_POWER
#define PWR_EN IMX_GPIO_NR(1, 8)
#define HAPTIC_nEN IMX_GPIO_NR(5, 4)
#define IMU_INT IMX_GPIO_NR(3, 19)
static
iomux_v3_cfg_t
const
pwr_en_pads
[]
=
{
IMX8MQ_PAD_GPIO1_IO08__GPIO1_IO8
|
MUX_PAD_CTRL
(
PAD_CTL_DSE6
|
PAD_CTL_FSEL1
),
IMX8MQ_PAD_SPDIF_RX__GPIO5_IO4
|
MUX_PAD_CTRL
(
PAD_CTL_DSE6
|
PAD_CTL_FSEL1
),
IMX8MQ_PAD_SAI5_RXFS__GPIO3_IO19
|
MUX_PAD_CTRL
(
PAD_CTL_FSEL1
),
};
/*
...
...
@@ -282,6 +284,10 @@ int power_init_board(void)
imx_iomux_v3_setup_multiple_pads
(
pwr_en_pads
,
ARRAY_SIZE
(
pwr_en_pads
));
/* set IMU_INT as input */
gpio_request
(
IMU_INT
,
"imu_int"
);
gpio_direction_input
(
IMU_INT
);
gpio_request
(
PWR_EN
,
"pwr_en"
);
gpio_direction_output
(
PWR_EN
,
1
);
...
...
Write
Preview
Supports
Markdown
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