Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\stmp_device.c Create Date:2022-07-28 07:20:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:stmp_reset_block

Proto:int stmp_reset_block(void __iomem *reset_addr)

Type:int

Parameter:

TypeParameterName
void __iomem *reset_addr
41  timeout = 0x400
44  ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST)
45  If Value for the false possibility is greater at compile time(ret) Then Go to error
49  writel(STMP_MODULE_CLKGATE, reset_addr + STMP_OFFSET_REG_CLR)
52  writel(STMP_MODULE_SFTRST, reset_addr + STMP_OFFSET_REG_SET)
53  0x10c7 is 2**32 / 1000000 (rounded up) (1)
56  When Not (readl(reset_addr) & STMP_MODULE_CLKGATE) && --timeout cycle
58  If Value for the false possibility is greater at compile time(!timeout) Then Go to error
62  ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST)
63  If Value for the false possibility is greater at compile time(ret) Then Go to error
67  ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_CLKGATE)
68  If Value for the false possibility is greater at compile time(ret) Then Go to error
71  Return 0
73  error :
74  pr_err("%s(%p): module reset timeout\n", __func__, reset_addr)
75  Return -ETIMEDOUT