12c4ddb21SCarlo Caione /* 22c4ddb21SCarlo Caione * Copyright (C) 2016 Endless Mobile, Inc. 32c4ddb21SCarlo Caione * Author: Carlo Caione <carlo@endlessm.com> 42c4ddb21SCarlo Caione * 52c4ddb21SCarlo Caione * This program is free software; you can redistribute it and/or 62c4ddb21SCarlo Caione * modify it under the terms of the GNU General Public License 72c4ddb21SCarlo Caione * version 2 as published by the Free Software Foundation. 82c4ddb21SCarlo Caione * 92c4ddb21SCarlo Caione * You should have received a copy of the GNU General Public License 102c4ddb21SCarlo Caione * along with this program. If not, see <http://www.gnu.org/licenses/>. 112c4ddb21SCarlo Caione */ 122c4ddb21SCarlo Caione 132c4ddb21SCarlo Caione #ifndef _MESON_SM_FW_H_ 142c4ddb21SCarlo Caione #define _MESON_SM_FW_H_ 152c4ddb21SCarlo Caione 162c4ddb21SCarlo Caione enum { 172c4ddb21SCarlo Caione SM_EFUSE_READ, 182c4ddb21SCarlo Caione SM_EFUSE_WRITE, 192c4ddb21SCarlo Caione SM_EFUSE_USER_MAX, 20*0789724fSNeil Armstrong SM_GET_CHIP_ID, 212c4ddb21SCarlo Caione }; 222c4ddb21SCarlo Caione 232c4ddb21SCarlo Caione struct meson_sm_firmware; 242c4ddb21SCarlo Caione 252c4ddb21SCarlo Caione int meson_sm_call(unsigned int cmd_index, u32 *ret, u32 arg0, u32 arg1, 262c4ddb21SCarlo Caione u32 arg2, u32 arg3, u32 arg4); 272c4ddb21SCarlo Caione int meson_sm_call_write(void *buffer, unsigned int b_size, unsigned int cmd_index, 282c4ddb21SCarlo Caione u32 arg0, u32 arg1, u32 arg2, u32 arg3, u32 arg4); 2983e007a0SCarlo Caione int meson_sm_call_read(void *buffer, unsigned int bsize, unsigned int cmd_index, 3083e007a0SCarlo Caione u32 arg0, u32 arg1, u32 arg2, u32 arg3, u32 arg4); 312c4ddb21SCarlo Caione 322c4ddb21SCarlo Caione #endif /* _MESON_SM_FW_H_ */ 33