Files
android_kernel_samsung_sm86…/drivers/cam_icp/utils/cam_icp_utils.h
Karthik Anantha Ram 3f2ab61c3b msm: camera: icp: Use paddr when loading FW elf segments
Use paddr when loading FW elf segments to support TCM.

CRs-Fixed: 2722486
Change-Id: I5ab9805d44ede38c8163df73f09eea49c44eab82
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-08 15:09:59 -08:00

32 lines
638 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
*/
#ifndef _CAM_ICP_UTILS_H_
#define _CAM_ICP_UTILS_H_
#include <linux/firmware.h>
#include <linux/elf.h>
#include <linux/iopoll.h>
#include "cam_debug_util.h"
/**
* @brief : Validate FW elf image
*/
int32_t cam_icp_validate_fw(const uint8_t *elf, uint32_t machine_id);
/**
* @brief : Get FW elf size
*/
int32_t cam_icp_get_fw_size(const uint8_t *elf, uint32_t *fw_size);
/**
* @brief : Program FW memory
*/
int32_t cam_icp_program_fw(const uint8_t *elf,
uintptr_t fw_kva_addr);
#endif /* _CAM_ICP_UTILS_H_ */