From 1c2960358076b926ff9ab6d44381fcada5421fe9 Mon Sep 17 00:00:00 2001 From: Dino Li Date: Wed, 24 May 2017 17:16:47 +0800 Subject: tcpm: it83xx: reload cc parameter setting during initialization The trimmed value of CC parameter setting registers (port0: ff3760h ~ ff3763h, port1: ff3860h ~ ff3863h) will be reset to default after a soft reset (system_reset()). BRANCH=none BUG=none TEST=Console command 'reboot' and checking if the value of cc parameter setting registers are correct (trimmed). Change-Id: Ibf9c72e8aeef36701d72bcb64529735295295cdf Signed-off-by: Dino Li Reviewed-on: https://chromium-review.googlesource.com/513744 Reviewed-by: Vincent Palatin --- driver/tcpm/it83xx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver') diff --git a/driver/tcpm/it83xx.c b/driver/tcpm/it83xx.c index fc93cf47a2..e30c73bac8 100644 --- a/driver/tcpm/it83xx.c +++ b/driver/tcpm/it83xx.c @@ -271,6 +271,8 @@ static void it83xx_set_data_role(enum usbpd_port port, int pd_role) static void it83xx_init(enum usbpd_port port, int role) { + /* bit7: Reload CC parameter setting. */ + IT83XX_USBPD_CCPSR0(port) |= (1 << 7); /* reset */ IT83XX_USBPD_GCR(port) = 0; USBPD_SW_RESET(port); -- cgit v1.2.1