diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2019-03-22 12:13:52 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-28 15:24:13 +1100 |
commit | 027d87475eff7d57b1bf996e4d633e880f571a22 (patch) | |
tree | 4e076a1877b9c1fd198b51bd6bf9e169c01db7b6 | |
parent | df2a1e579aaa4c6ac8831e4a24b16b11a7e2588d (diff) | |
download | skiboot-027d87475eff7d57b1bf996e4d633e880f571a22.zip skiboot-027d87475eff7d57b1bf996e4d633e880f571a22.tar.gz skiboot-027d87475eff7d57b1bf996e4d633e880f571a22.tar.bz2 |
external/mambo: Mambo hack to add trace-imc nodes in the device-tree
Update skiboot.tcl device tree to include trace-imc node to help
test the code path in mambo.
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | external/mambo/skiboot.tcl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 7a939bf..c6176bd 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -508,6 +508,27 @@ if { $default_config == "P9" } { mysim of addprop $thread string "scale" "512" mysim of addprop $thread int "events" $ct_et mysim of addprop $thread int "type" 1 + + #Add a common trace event node + set tr_et [mysim of addchild $imc_c "trace-events" ""] + mysim of addprop $tr_et int "#address-cells" 1 + mysim of addprop $tr_et int "#size-cells" 1 + + #Add an event + set tr [mysim of addchild $tr_et event [format 10200000]] + mysim of addprop $tr string "event-name" "cycles" + mysim of addprop $tr string "desc" "Reference cycles" + mysim of addprop $tr int "reg" 0x10200000 + + #Add a trace device node + set trace [mysim of addchild $imc_c "trace" ""] + mysim of addprop $trace string "compatible" "ibm,imc-counters" + mysim of addprop $trace string "events-prefix" "trace_" + mysim of addprop $trace int "reg" 0 + mysim of addprop $trace int "size" 262144 + mysim of addprop $trace int "events" $tr_et + mysim of addprop $trace int "type" 2 + } mconfig enable_stb SKIBOOT_ENABLE_MAMBO_STB 0 |