aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Saulnier2018-08-24 14:38:59 -0500
committerNick Saulnier2018-08-26 21:28:06 -0500
commit994a10378cd5be1e136dd53a81c1f041de550084 (patch)
treef2eff023f5d27d858f2ba31935578154d9f4d32b /examples/am335x/PRU_RPMsg_Echo_Interrupt0
parent1d8bbd097f0db07553ded1c440d5038d471984fa (diff)
downloadpru-software-support-package-994a10378cd5be1e136dd53a81c1f041de550084.tar.gz
pru-software-support-package-994a10378cd5be1e136dd53a81c1f041de550084.tar.xz
pru-software-support-package-994a10378cd5be1e136dd53a81c1f041de550084.zip
examples, labs: Linux kernel 4.14 Resource Table
TI Linux kernel 4.14 introduces a new style of resource table, where TYPE_CUSTOM is replaced by TYPE_POSTLOAD_VENDOR and TYPE_PRU_INTS is ORed with PRU_INTS_VERx. am335x, am437x, am57x, k2g all use PRU_INTS_VER0. TYPE_INTS_VER1 is used by am65x and adds support for 20 channels and 20 host interrupts. examples/am65x/RTU_RPMsg_Echo_InterruptX contains an example of TYPE_INTS_VER1 usage. An am65x PRU application that does not use the task manager may save a little memory space by using TYPE_INTS_VER0 instead of TYPE_INTS_VER1. examples/am65x/PRU_RPMsg_Echo_InterruptX contains an example of am65x TYPE_INTS_VER0 usage. Note that an am65x PRU firmware that wants to make use of the task manager must use TYPE_INTS_VER1. Updated all non-empty resource tables in the examples folder and the labs folder to match the new style. Any resource tables with names like rsc_table_pru were renamed to match the predominant naming convention (resource_table.h if no PRU/RTU is specified, resource_table_0.h if the table is specifically for PRU/RTU0, etc). Signed-off-by: Nick Saulnier <nsaulnier@ti.com>
Diffstat (limited to 'examples/am335x/PRU_RPMsg_Echo_Interrupt0')
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
index 4ba7620..933afdf 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -117,9 +117,9 @@ struct my_resource_table resourceTable = {
117 }, 117 },
118 118
119 { 119 {
120 TYPE_CUSTOM, TYPE_PRU_INTS, 120 TYPE_POSTLOAD_VENDOR, PRU_INTS_VER0 | TYPE_PRU_INTS,
121 sizeof(struct fw_rsc_custom_ints), 121 sizeof(struct fw_rsc_custom_ints),
122 { /* PRU_INTS version */ 122 {
123 0x0000, 123 0x0000,
124 /* Channel-to-host mapping, 255 for unused */ 124 /* Channel-to-host mapping, 255 for unused */
125 0, HOST_UNUSED, 2, HOST_UNUSED, HOST_UNUSED, 125 0, HOST_UNUSED, 2, HOST_UNUSED, HOST_UNUSED,