]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(imx8mq): add 100us delay after USB OTG SRC bit 0 clear
authorJacky Bai <ping.bai@nxp.com>
Sun, 19 Jan 2020 07:05:12 +0000 (15:05 +0800)
committerJacky Bai <ping.bai@nxp.com>
Wed, 25 May 2022 02:37:41 +0000 (10:37 +0800)
commit66345b8b13dc32bcd9f6af3c04f60532e7d82858
tree8016ca888e9669ea8170f6de2c8c8869907f2ebf
parent10534b3edae386cbb213fddc164a26cc144178a6
feat(imx8mq): add 100us delay after USB OTG SRC bit 0 clear

After the SRC bit clear, we must wait for a while to make sure
the operation is finished. And don't enable all the PU domains
by default.

for USB OTG, the limitations are:
1. before system clock configuration. ipg clock runs at 12.5MHz.
delay time should longer than 82us.

2. after system clock configuration. ipg clock runs at 66.5MHz.
delay time should longer than 15.3us.

so add udelay 100 to safely clear the SRC bit 0.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Change-Id: I52e8e7739fdaaf86442bcd148e768b6af38bcdb7
plat/imx/imx8m/imx8mq/gpc.c