1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include <dumpstate.h>
18
19 #ifdef HAS_DENVER_UID_CHECK
20 extern int denver_uid_check(void);
21 #endif
22
dumpstate_board()23 void dumpstate_board()
24 {
25 #ifdef HAS_DENVER_UID_CHECK
26 denver_uid_check();
27 #endif
28
29 dump_file("soc revision", "/sys/devices/soc0/revision");
30 dump_file("soc die_id", "/sys/devices/soc0/soc_id");
31 dump_file("bq2419x charger regs", "/d/bq2419x-regs");
32 dump_file("max17050 fuel gauge regs", "/d/max17050-regs");
33 dump_file("shrinkers", "/d/shrinker");
34 dump_file("wlan", "/sys/module/bcmdhd/parameters/info_string");
35 dump_file("display controller", "/d/tegradc.0/stats");
36 dump_file("sensor_hub version", "/sys/devices/virtual/htc_sensorhub/sensor_hub/firmware_version");
37 dump_file("audio nvavp", "/d/nvavp/refs");
38 };
39