diff options
author | Guodong Xu <guodong.xu@linaro.org> | 2016-02-17 22:15:27 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2016-03-21 12:09:40 -0700 |
commit | 9608180b8a0212cb917382248fd797cea1cb18be (patch) | |
tree | ea0d7dfd03c18443db940f26271553bc57052f4c /drivers/misc | |
parent | 26245c76ea1e13b5249c2365d8892933d9426362 (diff) |
misc: hi6220: reset uart2, uart3, and uart4 upon kernel boots
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/hi6220-sysconfig.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/misc/hi6220-sysconfig.c b/drivers/misc/hi6220-sysconfig.c index 7e9915d7b197..9b9d5d8bff19 100644 --- a/drivers/misc/hi6220-sysconfig.c +++ b/drivers/misc/hi6220-sysconfig.c @@ -37,6 +37,18 @@ static int __init hi6220_sysconf(void) writel(BIT(5), base + reset_offset); writel(BIT(5), base + pclk_offset); + /*Disable UART2 reset and set pclk*/ + writel(BIT(6), base + reset_offset); + writel(BIT(6), base + pclk_offset); + + /*Disable UART3 reset and set pclk*/ + writel(BIT(7), base + reset_offset); + writel(BIT(7), base + pclk_offset); + + /*Disable UART4 reset and set pclk*/ + writel(BIT(8), base + reset_offset); + writel(BIT(8), base + pclk_offset); + iounmap(base); node1 = of_find_compatible_node(NULL, NULL, "hisilicon,hi655x-pmic"); |