-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdk_am335x_1_0_6_coco_board.patch
418 lines (384 loc) · 21.3 KB
/
pdk_am335x_1_0_6_coco_board.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
--- ./pdk_am335x_1_0_6/packages/pdksetupenv.bat 2017-03-29 23:41:08.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/pdksetupenv.bat 2018-11-15 08:46:35.428452600 +0100
@@ -253,7 +253,7 @@
@REM Platforms supported by the PDK
if not defined LIMIT_SOCS set LIMIT_SOCS=am335x
-if not defined LIMIT_BOARDS set LIMIT_BOARDS=evmAM335x icev2AM335x bbbAM335x skAM335x
+if not defined LIMIT_BOARDS set LIMIT_BOARDS=evmAM335x icev2AM335x cocoAM335x bbbAM335x skAM335x
set CGTOOLS=%C6X_GEN_INSTALL_PATH%
--- ./pdk_am335x_1_0_6/packages/pdksetupenv.sh 2017-03-29 23:41:08.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/pdksetupenv.sh 2018-11-15 08:47:16.107984500 +0100
@@ -220,7 +220,7 @@
export PARTNO=am57xx
# Platforms supported by the PDK
export LIMIT_SOCS="am335x"
-export LIMIT_BOARDS="evmAM335x icev2AM335x bbbAM335x skAM335x"
+export LIMIT_BOARDS="evmAM335x icev2AM335x cocoAM335x bbbAM335x skAM335x"
export CGTOOLS=$C6X_GEN_INSTALL_PATH
--- ./pdk_am335x_1_0_6/packages/Rules.make 2017-03-29 23:41:08.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/Rules.make 2018-11-15 16:01:14.613825100 +0100
@@ -157,7 +157,7 @@
export LIBDIR
export LIMIT_SOCS = am335x
-export LIMIT_BOARDS = evmAM335x icev2AM335x bbbAM335x skAM335x
+export LIMIT_BOARDS = evmAM335x icev2AM335x cocoAM335x bbbAM335x skAM335x
export CGTOOLS=$(C6X_GEN_INSTALL_PATH)
--- ./pdk_am335x_1_0_6/packages/ti/board/board_cfg.h 2017-03-29 23:46:12.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/board_cfg.h 2018-11-15 08:48:04.743004100 +0100
@@ -40,6 +40,9 @@
#elif defined (icev2AM335x)
#include <ti/board/src/icev2AM335x/include/board_cfg.h>
+#elif defined (cocoAM335x)
+#include <ti/board/src/cocoAM335x/include/board_cfg.h>
+
#elif defined (skAM335x)
#include <ti/board/src/skAM335x/include/board_cfg.h>
--- ./pdk_am335x_1_0_6/packages/ti/board/board_component.mk 2017-03-29 23:46:12.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/board_component.mk 2018-11-15 08:49:21.618664100 +0100
@@ -66,7 +66,7 @@
#
ifeq ($(board_component_make_include), )
-board_lib_BOARDLIST = evmAM335x icev2AM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x evmAM572x idkAM571x idkAM572x evmK2H evmK2K evmK2E evmK2L evmK2G iceK2G \
+board_lib_BOARDLIST = evmAM335x icev2AM335x cocoAM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x evmAM572x idkAM571x idkAM572x evmK2H evmK2K evmK2E evmK2L evmK2G iceK2G \
evmC6678 evmC6657 tda2xx-evm evmDRA75x tda2ex-evm tda3xx-evm evmDRA78x evmOMAPL137 lcdkOMAPL138
board_lib_tda2xx_CORELIST = a15_0 ipu1_0 c66x
board_lib_tda2ex_CORELIST = a15_0 ipu1_0 c66x
--- ./pdk_am335x_1_0_6/packages/ti/board/build/makefile.mk 2017-03-29 23:46:13.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/build/makefile.mk 2018-11-15 08:51:45.063972400 +0100
@@ -38,15 +38,15 @@
SRCDIR = . src
INCDIR = . src
-ifeq ($(BOARD),$(filter $(BOARD),evmAM335x icev2AM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x evmAM572x idkAM571x idkAM572x evmK2H evmK2K evmK2E evmK2L evmK2G iceK2G evmC6678 evmC6657 evmOMAPL137 lcdkOMAPL138))
+ifeq ($(BOARD),$(filter $(BOARD),evmAM335x icev2AM335x cocoAM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x evmAM572x idkAM571x idkAM572x evmK2H evmK2K evmK2E evmK2L evmK2G iceK2G evmC6678 evmC6657 evmOMAPL137 lcdkOMAPL138))
# Common source files across all platforms and cores
SRCS_COMMON += board.c
endif
-ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x))
+ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x cocoAM335x skAM335x bbbAM335x evmAM437x idkAM437x skAM437x))
include $(PDK_BOARD_COMP_PATH)/src/$(BOARD)/src_files_$(BOARD).mk
include $(PDK_BOARD_COMP_PATH)/src/src_files_starterware.mk
-ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x evmAM437x))
+ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x cocoAM335x evmAM437x))
include $(PDK_BOARD_COMP_PATH)/src/flash/src_files_flash.mk
endif
CFLAGS_LOCAL_$(BOARD) += -D$(BOARD)
--- ./pdk_am335x_1_0_6/packages/ti/board/config.bld 2017-03-29 23:46:13.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/config.bld 2018-11-15 08:54:09.870898300 +0100
@@ -180,6 +180,22 @@
"$(PDK_INSTALL_PATH)/ti/board/src/flash/nor/nor.c",
"$(PDK_INSTALL_PATH)/ti/board/src/flash/nor/gpmc/nor_gpmc.c"]
}
+var cocoAM335x = {
+ name: "cocoAM335x",
+ ccOpts: "-DcocoAM335x -DSOC_AM335X -DAM335X_FAMILY_BUILD -Dam335x -DBUILDCFG_MOD_UART -DBUILDCFG_MOD_GPIO -DBUILDCFG_MOD_I2C -DBUILDCFG_MOD_MCSPI -DBUILDCFG_MOD_QSPI -DBUILDCFG_MOD_PRU_ETH -DBUILDCFG_MOD_MMCSD -DBUILDCFG_MOD_CPSW -DBUILDCFG_MOD_PWMSS -DBUILDCFG_MOD_DSS -DBUILDCFG_MOD_USB -DBUILDCFG_MOD_GPMC -DBUILDCFG_MOD_DCAN -DBUILDCFG_MOD_MCASP -DBUILDCFG_MOD_VPFE -DBUILDCFG_MOD_MDIO -DBUILDCFG_MOD_DMTIMER -DBUILDCFG_MOD_EDMA3CC -DBUILDCFG_MOD_EDMA3TC -DBUILDCFG_MOD_RTC -DBUILDCFG_MOD_WDT -DBUILDCFG_MOD_ADC -DBUILDCFG_MOD_LCDC -DBUILDCFG_MOD_PRU_ICSS",
+ targets: [A8LE],
+ incOpts: [ "-I$(PDK_INSTALL_PATH)/ti/starterware/include -I$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x -I$(PDK_INSTALL_PATH)/ti/starterware/board -I$(PDK_INSTALL_PATH)/ti/starterware/board/am335x -I$(PDK_INSTALL_PATH)/ti/starterware/include/am335x -I$(PDK_INSTALL_PATH)/ti/starterware/device -I$(PDK_INSTALL_PATH)/ti/starterware/include/utils -I$(PDK_INSTALL_PATH)/ti/starterware/include/hw -I$(PDK_INSTALL_PATH)/ti/starterware/soc"],
+ stwFiles: ["$(PDK_INSTALL_PATH)/ti/starterware/board/am335x/am335x_coco_pinmux_data.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/am335x_control.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/am335x_chipdb.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/am335x_prcm.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/hw_am335x_chipdb.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/hw_am335x_chipdb_baseaddr.c",
+ "$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x/hw_am335x_chipdb_interrupt.c"],
+ flashFiles: ["$(PDK_INSTALL_PATH)/ti/board/src/flash/board_flash.c",
+ "$(PDK_INSTALL_PATH)/ti/board/src/flash/nor/nor.c",
+ "$(PDK_INSTALL_PATH)/ti/board/src/flash/nor/gpmc/nor_gpmc.c"]
+}
var skAM335x = {
name: "skAM335x",
ccOpts: "-DskAM335x -DSOC_AM335X -DAM335X_FAMILY_BUILD -Dam335x -DBUILDCFG_MOD_UART -DBUILDCFG_MOD_GPIO -DBUILDCFG_MOD_I2C -DBUILDCFG_MOD_MCSPI -DBUILDCFG_MOD_QSPI -DBUILDCFG_MOD_PRU_ETH -DBUILDCFG_MOD_MMCSD -DBUILDCFG_MOD_CPSW -DBUILDCFG_MOD_PWMSS -DBUILDCFG_MOD_DSS -DBUILDCFG_MOD_USB -DBUILDCFG_MOD_GPMC -DBUILDCFG_MOD_DCAN -DBUILDCFG_MOD_MCASP -DBUILDCFG_MOD_VPFE -DBUILDCFG_MOD_MDIO -DBUILDCFG_MOD_DMTIMER -DBUILDCFG_MOD_EDMA3CC -DBUILDCFG_MOD_EDMA3TC -DBUILDCFG_MOD_RTC -DBUILDCFG_MOD_WDT -DBUILDCFG_MOD_ADC -DBUILDCFG_MOD_LCDC",
@@ -341,5 +357,5 @@
/* List all the build targets here. */
Build.targets = [ C66LE, C66BE, A15LE, M4LE, A9LE, A8LE, ARM9LE, C674LE ];
-var boards = [ evmAM335x, icev2AM335x, skAM335x, bbbAM335x, evmAM437x, idkAM437x, skAM437x, evmAM572x, idkAM571x, idkAM572x, evmK2H, evmK2K, evmK2E, evmK2L, evmK2G, evmC6678, evmC6657, evmOMAPL137 ];
+var boards = [ evmAM335x, icev2AM335x, cocoAM335x, skAM335x, bbbAM335x, evmAM437x, idkAM437x, skAM437x, evmAM572x, idkAM571x, idkAM572x, evmK2H, evmK2K, evmK2E, evmK2L, evmK2G, evmC6678, evmC6657, evmOMAPL137 ];
--- ./pdk_am335x_1_0_6/packages/ti/board/package.bld 2017-03-29 23:46:14.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/package.bld 2018-11-15 08:56:04.853553600 +0100
@@ -58,6 +58,7 @@
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/idkAM571x/src_files_idkAM571x.mk";
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/evmK2G/src_files_evmK2G.mk";
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/icev2AM335x/src_files_icev2AM335x.mk";
+Pkg.otherFiles[Pkg.otherFiles.length++] = "src/cocoAM335x/src_files_cocoAM335x.mk";
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/idkAM437x/src_files_idkAM437x.mk";
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/evmAM571x/src_files_evmAM571x.mk";
Pkg.otherFiles[Pkg.otherFiles.length++] = "src/evmOMAPL137/src_files_evmOMAPL137.mk";
--- ./pdk_am335x_1_0_6/packages/ti/board/src/flash/nor/gpmc/nor_gpmc.h 2017-03-29 23:46:15.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/src/flash/nor/gpmc/nor_gpmc.h 2018-11-15 08:58:27.696126900 +0100
@@ -47,7 +47,7 @@
#include <ti/board/src/flash/nor/nor.h>
#include <ti/drv/gpmc/GPMC.h>
-#if defined (icev2AM335x)
+#if defined (icev2AM335x) || defined (cocoAM335x)
#include <ti/board/src/flash/nor/device/m29w160eb.h>
#include <ti/drv/gpmc/src/V1/GPMC_v1.h>
#endif
--- ./pdk_am335x_1_0_6/packages/ti/board/src/flash/nor/nor.c 2017-03-29 23:46:15.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/src/flash/nor/nor.c 2018-11-15 08:59:00.237352400 +0100
@@ -62,7 +62,7 @@
NULL
}
};
-#elif defined (icev2AM335x)
+#elif defined (icev2AM335x) || defined (cocoAM335x)
NOR_Config Nor_config[BOARD_FLASH_NOR_INTF_MAX] =
{
{
--- ./pdk_am335x_1_0_6/packages/ti/board/src/flash/src_files_flash.mk 2017-03-29 23:46:15.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/src/flash/src_files_flash.mk 2018-11-15 09:00:32.124691600 +0100
@@ -36,7 +36,7 @@
SRCDIR += src/flash src/flash/include
INCDIR += src/flash src/flash/include
-ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x))
+ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x cocoAM335x))
SRCDIR += src/flash/nor src/flash/nor/device src/flash/nor/gpmc
INCDIR += src/flash/nor src/flash/nor/device src/flash/nor/gpmc
--- ./pdk_am335x_1_0_6/packages/ti/board/src/src_files_starterware.mk 2017-03-29 23:46:14.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/board/src/src_files_starterware.mk 2018-11-15 09:02:10.780747100 +0100
@@ -47,7 +47,7 @@
$(PDK_INSTALL_PATH)/ti/starterware/utils \
$(PDK_INSTALL_PATH)/ti/starterware/soc
-ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x skAM335x bbbAM335x))
+ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x cocoAM335x skAM335x bbbAM335x))
SRCDIR += $(PDK_INSTALL_PATH)/ti/starterware/board/am335x \
$(PDK_INSTALL_PATH)/ti/starterware/soc/am335x \
$(PDK_INSTALL_PATH)/ti/starterware/include/am335x
@@ -74,6 +74,10 @@
SRCS_COMMON += am335x_amic11x_pinmux_data.c
endif
+ ifeq ($(BOARD),$(filter $(BOARD), cocoAM335x))
+ SRCS_COMMON += am335x_coco_pinmux_data.c
+ endif
+
ifeq ($(BOARD),$(filter $(BOARD), skAM335x))
SRCS_COMMON += am335x_evmsk_pinmux_data.c
endif
--- ./pdk_am335x_1_0_6/packages/ti/build/makerules/build_config.mk 2017-03-29 23:41:07.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/build/makerules/build_config.mk 2018-11-15 09:03:42.581788600 +0100
@@ -77,6 +77,7 @@
CFLAGS_GLOBAL_evmC6678 = -DSOC_C6678
CFLAGS_GLOBAL_evmAM335x = -DSOC_AM335x -DevmAM335x
CFLAGS_GLOBAL_icev2AM335x = -DSOC_AM335x -Dicev2AM335x
+CFLAGS_GLOBAL_cocoAM335x = -DSOC_AM335x -DcocoAM335x
CFLAGS_GLOBAL_skAM335x = -DSOC_AM335x -DskAM335x
CFLAGS_GLOBAL_bbbAM335x = -DSOC_AM335x -DbbbAM335x
CFLAGS_GLOBAL_evmAM437x = -DSOC_AM437x -DevmAM437x
--- ./pdk_am335x_1_0_6/packages/ti/build/makerules/platform.mk 2017-03-29 23:41:08.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/build/makerules/platform.mk 2018-11-15 09:04:25.151260900 +0100
@@ -124,7 +124,7 @@
endif
# am335x
-ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x skAM335x bbbAM335x))
+ifeq ($(BOARD),$(filter $(BOARD), evmAM335x icev2AM335x cocoAM335x skAM335x bbbAM335x))
SOC = am335x
endif
--- ./pdk_am335x_1_0_6/packages/ti/build/Rules.make 2017-03-29 23:41:07.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/build/Rules.make 2018-11-15 09:05:21.396811900 +0100
@@ -45,7 +45,7 @@
# tda3xx-ar12-alps, tda3xx-ar14-rvp,
# am572x-idk am571x-evm, evmAM572x, idkAM571x, idkAM572x
# evmK2H, evmK2K, evmK2E, evmK2L, evmK2G, evmC6678, evmC6657,
-# evmAM335x, icev2AM335x, skAM335x, bbbAM335x,
+# evmAM335x, icev2AM335x, cocoAM335x, skAM335x, bbbAM335x,
# evmAM437x idkAM437x skAM437x evmOMAPL137 lcdkOMAPL138
#
BOARD ?= tda2xx-evm
--- ./pdk_am335x_1_0_6/packages/ti/drv/gpmc/gpmc_component.mk 2017-03-29 23:45:08.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/gpmc/gpmc_component.mk 2018-11-15 09:06:31.653280100 +0100
@@ -42,7 +42,7 @@
ifeq ($(gpmc_component_make_include), )
# under other list
-drvgpmc_BOARDLIST = icev2AM335x evmAM437x
+drvgpmc_BOARDLIST = icev2AM335x cocoAM335x evmAM437x
drvgpmc_SOCLIST = am437x am335x
drvgpmc_am437x_CORELIST = a9host
drvgpmc_am335x_CORELIST = a8host
--- ./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/master/makefile 2017-03-29 23:45:09.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/master/makefile 2018-11-15 09:10:42.963351200 +0100
@@ -18,6 +18,11 @@
XDC_CFG_FILE_$(CORE) = ../src/sorte_icev2am335x_app.cfg
endif
+ifeq ($(BOARD),$(filter $(BOARD), cocoAM335x))
+# Enable XDC build for application by providing XDC CFG File per core
+XDC_CFG_FILE_$(CORE) = ../src/sorte_cocoam335x_app.cfg
+endif
+
ifeq ($(BOARD),$(filter $(BOARD), idkAM572x))
# Enable XDC build for application by providing XDC CFG File per core
XDC_CFG_FILE_$(CORE) = ../src/sorte_idkAM572x_app.cfg
--- ./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/slave/makefile 2017-03-29 23:45:09.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/slave/makefile 2018-11-15 09:13:01.347540300 +0100
@@ -21,6 +21,11 @@
XDC_CFG_FILE_$(CORE) = ../src/sorte_icev2am335x_app.cfg
endif
+ifeq ($(BOARD),$(filter $(BOARD), cocoAM335x))
+# Enable XDC build for application by providing XDC CFG File per core
+XDC_CFG_FILE_$(CORE) = ../src/sorte_cocoam335x_app.cfg
+endif
+
ifeq ($(BOARD),$(filter $(BOARD), idkAM572x))
# Enable XDC build for application by providing XDC CFG File per core
XDC_CFG_FILE_$(CORE) = ../src/sorte_idkAM572x_app.cfg
--- ./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/src/main.c 2017-03-29 23:45:09.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/pruss/example/apps/sorte/src/main.c 2018-11-15 09:14:08.995622800 +0100
@@ -74,7 +74,7 @@
#include <ti/drv/pruss/example/apps/sorte/src/ti_pruss_intc_mapping.h>
#include <ti/drv/pruss/example/apps/sorte/src/sorte_loc.h>
-#if defined(icev2AM335x)
+#if defined(icev2AM335x) || defined(cocoAM335x)
uint32_t pruIcssInstance = PRUICCSS_INSTANCE_ONE;
#elif defined(idkAM437x)
uint32_t pruIcssInstance = PRUICCSS_INSTANCE_TWO;
--- ./pdk_am335x_1_0_6/packages/ti/drv/pruss/pruss_component.mk 2017-03-29 23:45:09.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/pruss/pruss_component.mk 2018-11-15 09:15:45.598891800 +0100
@@ -67,7 +67,7 @@
ifeq ($(pruss_component_make_include), )
# under other list
-drvpruss_BOARDLIST = icev2AM335x idkAM437x
+drvpruss_BOARDLIST = icev2AM335x cocoAM335x idkAM437x
drvpruss_SOCLIST = am572x am571x am437x am335x k2g
drvpruss_am572x_CORELIST = c66x a15_0 ipu1_0 clpru_0 clpru_1
drvpruss_k2g_CORELIST = c66x a15_0 clpru_0 clpru_1
@@ -279,11 +279,11 @@
export pruss_app_sorte_slave_XDC_CONFIGURO
pruss_app_sorte_slave_PKG_LIST = pruss_app_sorte_slave
pruss_app_sorte_slave_INCLUDE = $(pruss_app_sorte_slave_PATH)
-pruss_app_sorte_slave_BOARDLIST = icev2AM335x idkAM437x
+pruss_app_sorte_slave_BOARDLIST = icev2AM335x cocoAM335x idkAM437x
export pruss_app_sorte_slave_BOARDLIST
pruss_app_sorte_slave_SOCLIST = $(SOC)
export pruss_app_sorte_slave_SOCLIST
-ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x))
+ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x cocoAM335x))
pruss_app_sorte_slave_$(SOC)_CORELIST = a8host
endif
ifeq ($(BOARD),$(filter $(BOARD), idkAM437x))
@@ -306,12 +306,12 @@
export pruss_app_sorte_master_XDC_CONFIGURO
pruss_app_sorte_master_PKG_LIST = pruss_app_sorte_master
pruss_app_sorte_master_INCLUDE = $(pruss_app_sorte_master_PATH)
-pruss_app_sorte_master_BOARDLIST = icev2AM335x idkAM437x
+pruss_app_sorte_master_BOARDLIST = icev2AM335x cocoAM335x idkAM437x
export pruss_app_sorte_master_BOARDLIST
pruss_app_sorte_master_SOCLIST = $(SOC)
export pruss_app_sorte_master_SOCLIST
-ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x))
+ifeq ($(BOARD),$(filter $(BOARD), icev2AM335x cocoAM335x))
pruss_app_sorte_master_$(SOC)_CORELIST = a8host
endif
--- ./pdk_am335x_1_0_6/packages/ti/drv/uart/soc/am335x/UART_soc.c 2017-03-29 23:45:09.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/drv/uart/soc/am335x/UART_soc.c 2018-11-15 09:18:43.568224300 +0100
@@ -82,7 +82,7 @@
},
{
SOC_UART_1_REGS,
- 105,
+ 73,
0,
48000000U,
CSL_EDMA3_CHA_UART1_RX,
--- ./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/am335x_pinmux.h 2017-03-29 23:30:59.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/am335x_pinmux.h 2018-11-15 09:20:10.097379400 +0100
@@ -320,6 +320,10 @@
extern pinmuxBoardCfg_t gIceV2PinmuxData[];
/** \brief Pinmux configuration data for the board. Auto-generated from
+ Pinmux tool. */
+extern pinmuxBoardCfg_t gCocoPinmuxData[];
+
+/** \brief Pinmux configuration data for the board. Auto-generated from
Pinmux tool for IceV2, but with AMIC11x naming. Intended for
manual deviation from IceV2, if applicable. */
extern pinmuxBoardCfg_t gAMIC11xPinmuxData[];
--- ./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/board_am335x.c 2017-03-29 23:30:59.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/board_am335x.c 2018-11-15 09:22:43.392989900 +0100
@@ -63,6 +63,7 @@
#include "am335x_beagleboneblack.h"
#include "am335x_icev1.h"
#include "am335x_icev2.h"
+#include "am335x_coco.h"
#include "am335x_amic110.h"
#include "am335x_custom.h"
@@ -181,6 +182,7 @@
&gBoardAm335xBeagleboneblackData, /* BOARD_BEAGLEBONEBLACK */
&gBoardAm335xIceV1Data, /*BOARD_ICE ver 1*/
&gBoardAm335xIceV2Data, /*BOARD_ICE ver 2*/
+ &gBoardAm335xCocoData, /* COCO BOARD */
&gBoardAm335xAMIC110Data, /* AMIC110 */
&gBoardAm335xCustomData, /* BOARD_CUSTOM */
};
@@ -322,6 +324,13 @@
boardId = BOARD_ICEV2;
}
}
+ /* Check if the board is COCO */
+ else if (strncmp(BOARD_AM335X_COCO_BOARD_NAME,
+ (char *)gBoardDataEeprom.boardName,
+ BOARD_EEPROM_BOARD_NAME_SIZE) == 0U)
+ {
+ boardId = BOARD_COCO;
+ }
/* Check if the board is AMIC110, if so use icev2 settings */
else if (strncmp(BOARD_AM335X_AMIC110_BOARD_NAME,
(char *)gBoardDataEeprom.boardName,
--- ./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/filelist.mk 2017-03-29 23:30:59.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/starterware/board/am335x/filelist.mk 2018-11-15 09:25:22.809083900 +0100
@@ -44,6 +44,7 @@
am335x_beagleboneblack.c \
am335x_icev1.c \
am335x_icev2.c \
+ am335x_coco.c \
am335x_amic110.c \
am335x_custom.c
SRCS_COMMON += am335x_gpevm_pinmux_data.c \
@@ -52,6 +53,7 @@
am335x_beagleboneblack_pinmux_data.c \
am335x_icev1_pinmux_data.c \
am335x_icev2_pinmux_data.c \
+ am335x_coco_pinmux_data.c \
am335x_amic11x_pinmux_data.c
SRCS_COMMON += am335x_lcd4_dcard.c
SRCS_ASM_COMMON +=
--- ./pdk_am335x_1_0_6/packages/ti/starterware/board/board.c 2017-03-29 23:30:59.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/starterware/board/board.c 2018-11-15 09:26:30.550009300 +0100
@@ -124,6 +124,7 @@
{BOARD_BEAGLEBONEBLACK, "BEAGLEBONEBLACK" },
{BOARD_ICEV1, "ICE ver 1" },
{BOARD_ICEV2, "ICE Ver 2" },
+ {BOARD_COCO, "COCO" },
{BOARD_AMIC110, "AMIC110" },
{BOARD_CUSTOM, "Custom" }
};
--- ./pdk_am335x_1_0_6/packages/ti/starterware/include/board.h 2017-03-29 23:30:59.000000000 +0200
+++ /mnt/c/ti/./pdk_am335x_1_0_6/packages/ti/starterware/include/board.h 2018-11-15 09:29:07.144694200 +0100
@@ -115,9 +115,11 @@
/**< Industrial communications Engine Version 2 */
BOARD_AMIC110 = 0x9U,
/**< AMIC110 ICE board */
- BOARD_CUSTOM = 0x10U,
+ BOARD_CUSTOM = 0xAU,
/**< Any other custom board. */
- BOARD_MAX = BOARD_CUSTOM
+ BOARD_COCO = 0xBU,
+ /**< COCO board. */
+ BOARD_MAX = BOARD_COCO
/**< Max board ID. */
} boardId_t;
@@ -275,6 +277,21 @@
/**< Max board revision. */
} boardRevIceV2_t;
+/**
+ * \brief Coco board revisions ID.
+ */
+typedef enum boardRevCoco
+{
+ BOARD_REV_COCO_MIN,
+ /**< Should be the first value of this enumeration. */
+ BOARD_REV_COCO_UNKNOWN = BOARD_REV_COCO_MIN,
+ /**< Unknown/unsupported board revision. */
+ BOARD_REV_COCO_A1,
+ /**< Board revision A1. */
+ BOARD_REV_COCO_MAX = BOARD_REV_COCO_A1
+ /**< Max board revision. */
+} boardRevCoco_t;
+
/** This is added to avoid lcd_device.h dependency **/
typedef struct lcdDeviceBoardData lcdDeviceBoardData_t;