1#!/usr/bin/env bash
2#
3# config: 234 10
4# @brief: Add CFAM details to dump.
5#
6
7# shellcheck disable=SC1091
8. "$DREPORT_INCLUDE"/functions
9
10source /etc/profile.d/power-target.sh
11
12file_name="cfam.log"
13if [ -e "/usr/bin/edbg" ]; then
14    desc="cfam 283c"
15    command="/usr/bin/edbg getcfam pu 283c -pall"
16    add_cmd_output "$command" "$file_name" "$desc"
17
18    desc="cfam 1007"
19    command="/usr/bin/edbg getcfam pu 1007 -pall"
20    add_cmd_output "$command" "$file_name" "$desc"
21
22    desc="cfam 2809"
23    command="/usr/bin/edbg getcfam pu 2809 -pall"
24    add_cmd_output "$command" "$file_name" "$desc"
25fi
26