From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- include/soc/sprd/efuse.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 include/soc/sprd/efuse.h (limited to 'include/soc/sprd/efuse.h') diff --git a/include/soc/sprd/efuse.h b/include/soc/sprd/efuse.h new file mode 100644 index 00000000..3a32e8f9 --- /dev/null +++ b/include/soc/sprd/efuse.h @@ -0,0 +1,43 @@ +/* * Copyright (C) 2012 Spreadtrum Communications Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __EFUSE_H__ +#define __EFUSE_H__ + +//interface params.definition, pls don't modify it +#define __EFUSE_DDIE(_X_) ((_X_) | 0x0) +#define ADIE_EFUSE_MSK (0x1 << 16) +#define __EFUSE_ADIE(_X_) ((_X_) | ADIE_EFUSE_MSK) + +//blk id define +#define EFUSE_DDIE_BLK_0 __EFUSE_DDIE(0) +#define EFUSE_DDIE_BLK_1 __EFUSE_DDIE(1) +#define EFUSE_DDIE_BLK_2 __EFUSE_DDIE(2) +#define EFUSE_DDIE_BLK_3 __EFUSE_DDIE(3) +#define EFUSE_DDIE_BLK_4 __EFUSE_DDIE(4) +#define EFUSE_DDIE_BLK_5 __EFUSE_DDIE(5) +#define EFUSE_DDIE_BLK_6 __EFUSE_DDIE(6) +#define EFUSE_DDIE_BLK_7 __EFUSE_DDIE(7) + +#define EFUSE_ADIE_BLK_0 __EFUSE_ADIE(0) + +/** + * sci_efuse_get(u32 blk) - read data from the specified adie/deie efuse block; + * @blk: blk is the number that indicate block type(Adie/Ddie) and index number. + * This function will read data from the block, + * pls use the blk id MACRO to indicate blk. + */ +int sci_efuse_get(u32 blk); + + +#endif -- cgit v1.3.1