mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-27 06:28:54 +00:00
v1.1.2:add audio and efuse patch
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -233,6 +233,10 @@ int hal_tsen_efuse_read(u32 addr, u32 *data, u32 size)
|
||||
int ret;
|
||||
int length = TSEN_EFUSE_STANDARD_LENGTH;
|
||||
|
||||
if (hal_efuse_clk_enable()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
rest = size;
|
||||
while (rest > 0) {
|
||||
wid = addr >> 2;
|
||||
@@ -252,6 +256,8 @@ int hal_tsen_efuse_read(u32 addr, u32 *data, u32 size)
|
||||
rest -= cnt;
|
||||
}
|
||||
|
||||
hal_efuse_clk_disable();
|
||||
|
||||
return (int)(size - rest);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user