rimage: tgl machine definition

Add support for tgl platform in rimage tool.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-08-23 11:56:07 +02:00
parent 2db4679820
commit 3dbeefac49
3 changed files with 32 additions and 0 deletions

View File

@ -1087,6 +1087,11 @@ err:
#define ICL_DSP_IMR_BASE_ENTRY 0xb0038000
#define ICL_DSP_HP_BASE_ENTRY 0xbe040000
#define ADSP_TGL_DSP_ROM_BASE 0x9F180000
#define ADSP_TGL_DSP_ROM_SIZE 0x00002000
#define TGL_DSP_IMR_BASE_ENTRY 0xb0038000
#define TGL_DSP_HP_BASE_ENTRY 0xbe040000
/* list of supported adsp */
const struct adsp machine_apl = {
.name = "apl",
@ -1196,6 +1201,30 @@ const struct adsp machine_icl = {
.man_v1_8 = &cnl_manifest, // use the same as CNL
};
const struct adsp machine_tgl = {
.name = "tgl",
.mem_zones = {
[SOF_FW_BLK_TYPE_ROM] = {
.base = ADSP_TGL_DSP_ROM_BASE,
.size = ADSP_TGL_DSP_ROM_SIZE,
},
[SOF_FW_BLK_TYPE_IMR] = {
.base = TGL_DSP_IMR_BASE_ENTRY,
.size = 0x100000,
},
[SOF_FW_BLK_TYPE_SRAM] = {
.base = TGL_DSP_HP_BASE_ENTRY,
.size = 0x100000,
},
},
.image_size = 0x100000,
.dram_offset = 0,
.machine_id = MACHINE_TIGERLAKE,
.write_firmware = man_write_fw_v1_8,
.write_firmware_meu = man_write_fw_meu_v1_8,
.man_v1_8 = &cnl_manifest, // use the same as CNL
};
const struct adsp machine_sue = {
.name = "sue",
.mem_zones = {

View File

@ -21,6 +21,7 @@ static const struct adsp *machine[] = {
&machine_apl,
&machine_cnl,
&machine_icl,
&machine_tgl,
&machine_sue,
&machine_kbl,
&machine_skl,

View File

@ -35,6 +35,7 @@ enum machine_id {
MACHINE_SKYLAKE,
MACHINE_CANNONLAKE,
MACHINE_ICELAKE,
MACHINE_TIGERLAKE,
MACHINE_SUECREEK,
MACHINE_IMX8,
MACHINE_MAX
@ -182,6 +183,7 @@ extern const struct adsp machine_bdw;
extern const struct adsp machine_apl;
extern const struct adsp machine_cnl;
extern const struct adsp machine_icl;
extern const struct adsp machine_tgl;
extern const struct adsp machine_sue;
extern const struct adsp machine_skl;
extern const struct adsp machine_kbl;