Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77e9e8d6 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: hab: add some more physical channels"

parents afc4d2ca 478651c8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ static struct hab_device hab_devices[] = {
	HAB_DEVICE_CNSTR(DEVICE_DATA1_NAME, MM_DATA_NETWORK_1, 20),
	HAB_DEVICE_CNSTR(DEVICE_DATA2_NAME, MM_DATA_NETWORK_2, 21),
	HAB_DEVICE_CNSTR(DEVICE_HSI2S1_NAME, MM_HSI2S_1, 22),
	HAB_DEVICE_CNSTR(DEVICE_XVM1_NAME, MM_XVM_1, 23),
	HAB_DEVICE_CNSTR(DEVICE_XVM2_NAME, MM_XVM_2, 24),
	HAB_DEVICE_CNSTR(DEVICE_XVM3_NAME, MM_XVM_3, 25),
};

struct hab_driver hab_driver = {
@@ -962,6 +965,15 @@ static int hab_generate_pchan(struct local_vmid *settings, int i, int j)
					HABCFG_GET_BE(settings, i, j));
		}
		break;
	case MM_XVM_START/100:
		for (k = MM_XVM_START + 1; k < MM_XVM_END; k++) {
			ret += hab_initialize_pchan_entry(
					find_hab_device(k),
					settings->self,
					HABCFG_GET_VMID(settings, i),
					HABCFG_GET_BE(settings, i, j));
		}
		break;
	default:
		pr_err("failed to find mmid %d, i %d, j %d\n",
			HABCFG_GET_MMID(settings, i, j), i, j);
+3 −0
Original line number Diff line number Diff line
@@ -55,6 +55,9 @@ enum hab_payload_type {
#define DEVICE_DATA1_NAME "hab_data_network1"
#define DEVICE_DATA2_NAME "hab_data_network2"
#define DEVICE_HSI2S1_NAME "hab_hsi2s1"
#define DEVICE_XVM1_NAME "hab_xvm1"
#define DEVICE_XVM2_NAME "hab_xvm2"
#define DEVICE_XVM3_NAME "hab_xvm3"

/* make sure concascaded name is less than this value */
#define MAX_VMID_NAME_SIZE 30
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 */
#include "hab.h"
#include "hab_qvm.h"
@@ -34,6 +34,8 @@ static struct shmem_irq_config pchan_factory_settings[] = {
	{0x1b015000, 28},
	{0x1b016000, 29},
	{0x1b017000, 30},
	{0x1b018000, 31},
	{0x1b019000, 32},
};

struct qvm_plugin_info qvm_priv_info = {
+8 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
 */
#ifndef HABMMID_H
#define HABMMID_H
@@ -66,6 +66,12 @@
#define	MM_HSI2S_1 1201
#define	MM_HSI2S_END 1202

#define	MM_ID_MAX	1203
#define	MM_XVM_START 1300
#define	MM_XVM_1 1301
#define	MM_XVM_2 1302
#define	MM_XVM_3 1303
#define	MM_XVM_END 1304

#define	MM_ID_MAX	1305

#endif /* HABMMID_H */