|
27 | 27 | #define MDSP_DOMAIN_ID (1)
|
28 | 28 | #define SDSP_DOMAIN_ID (2)
|
29 | 29 | #define CDSP_DOMAIN_ID (3)
|
30 |
| -#define FASTRPC_DEV_MAX 4 /* adsp, mdsp, slpi, cdsp*/ |
| 30 | +#define CDSP1_DOMAIN_ID (4) |
| 31 | +#define FASTRPC_DEV_MAX 5 /* adsp, mdsp, slpi, cdsp, cdsp1 */ |
31 | 32 | #define FASTRPC_MAX_SESSIONS 14
|
32 | 33 | #define FASTRPC_MAX_VMIDS 16
|
33 | 34 | #define FASTRPC_ALIGN 128
|
|
106 | 107 | #define miscdev_to_fdevice(d) container_of(d, struct fastrpc_device, miscdev)
|
107 | 108 |
|
108 | 109 | static const char *domains[FASTRPC_DEV_MAX] = { "adsp", "mdsp",
|
109 |
| - "sdsp", "cdsp"}; |
| 110 | + "sdsp", "cdsp", "cdsp1" }; |
110 | 111 | struct fastrpc_phy_page {
|
111 | 112 | u64 addr; /* physical address */
|
112 | 113 | u64 size; /* size of contiguous region */
|
@@ -2270,7 +2271,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
|
2270 | 2271 | return err;
|
2271 | 2272 | }
|
2272 | 2273 |
|
2273 |
| - for (i = 0; i <= CDSP_DOMAIN_ID; i++) { |
| 2274 | + for (i = 0; i < FASTRPC_DEV_MAX; i++) { |
2274 | 2275 | if (!strcmp(domains[i], domain)) {
|
2275 | 2276 | domain_id = i;
|
2276 | 2277 | break;
|
@@ -2328,13 +2329,14 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
|
2328 | 2329 | case ADSP_DOMAIN_ID:
|
2329 | 2330 | case MDSP_DOMAIN_ID:
|
2330 | 2331 | case SDSP_DOMAIN_ID:
|
2331 |
| - /* Unsigned PD offloading is only supported on CDSP*/ |
| 2332 | + /* Unsigned PD offloading is only supported on CDSP and CDSP1 */ |
2332 | 2333 | data->unsigned_support = false;
|
2333 | 2334 | err = fastrpc_device_register(rdev, data, secure_dsp, domains[domain_id]);
|
2334 | 2335 | if (err)
|
2335 | 2336 | goto fdev_error;
|
2336 | 2337 | break;
|
2337 | 2338 | case CDSP_DOMAIN_ID:
|
| 2339 | + case CDSP1_DOMAIN_ID: |
2338 | 2340 | data->unsigned_support = true;
|
2339 | 2341 | /* Create both device nodes so that we can allow both Signed and Unsigned PD */
|
2340 | 2342 | err = fastrpc_device_register(rdev, data, true, domains[domain_id]);
|
|
0 commit comments