sof/rimage/man_kbl.c

61 lines
1.8 KiB
C

/*
* Copyright (c) 2018, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope 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.
*/
#include "css.h"
#include "cse.h"
#include "plat_auth.h"
#include "manifest.h"
#include <config.h>
#include <version.h>
/*
* TODO: check if all platform for 1.5 are the same base and length.
* if yes, define it as HARDWARE_BUFFER_BASE_V1_5, HARDWARE_BUFFER_LEN_v1_5
* if not, define a platform specific base and length.
*/
#define KBL_HARDWARE_BUFFER_BASE 0xBE500000
#define KBL_HARDWARE_BUFFER_LEN 0x4A000
/* manifest template */
struct fw_image_manifest_v1_5 kbl_manifest = {
.css_header = {
.module_type = MAN_CSS_LT_MODULE_TYPE,
.header_len = MAN_CSS_HDR_SIZE,
.header_version = MAN_CSS_HDR_VERSION,
.module_vendor = MAN_CSS_MOD_VENDOR,
.size = 0x800,
.key_size = MAN_CSS_KEY_SIZE,
.modulus_size = MAN_CSS_MOD_SIZE,
.exponent_size = MAN_CSS_EXP_SIZE,
},
.desc = {
.header = {
.header_id = SOF_MAN_FW_HDR_ID,
.header_len = sizeof(struct sof_man_fw_header),
.name = SOF_MAN_FW_HDR_NAME,
/* size in pages from $CPD */
.preload_page_count = 0,
.fw_image_flags = SOF_MAN_FW_HDR_FLAGS,
.feature_mask = SOF_MAN_FW_HDR_FEATURES,
.major_version = SOF_MAJOR,
.minor_version = SOF_MINOR,
.hotfix_version = 0,
.build_version = SOF_BUILD,
.load_offset = 0,
.hw_buf_base_addr = KBL_HARDWARE_BUFFER_BASE,
.hw_buf_length = KBL_HARDWARE_BUFFER_LEN
},
},
};