Home | History | Annotate | Download | only in dumpstate
      1 /*
      2  * Copyright (C) 2011 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 void dumpstate_board()
     20 {
     21     dump_file("board revision", "/sys/board_properties/revision");
     22     dump_file("soc family", "/sys/board_properties/soc/family");
     23     dump_file("soc revision", "/sys/board_properties/soc/revision");
     24     dump_file("soc type", "/sys/board_properties/soc/type");
     25     dump_file("soc die_id", "/sys/board_properties/soc/die_id");
     26     dump_file("soc production_id", "/sys/board_properties/soc/production_id");
     27     dump_file("pm_debug count", "/d/pm_debug/count");
     28     dump_file("pm_debug time", "/d/pm_debug/time");
     29     dump_file("dsscomp_log", "/d/dsscomp/log");
     30     dump_file("dsscomp_comps", "/d/dsscomp/comps");
     31     dump_file("dsscomp_gralloc", "/d/dsscomp/gralloc");
     32     dump_file("audio media state", "/d/asoc/Tuna/SDP4430\ Media/state");
     33     dump_file("audio modem state", "/d/asoc/Tuna/SDP4430\ MODEM/state");
     34     dump_file("audio codec_reg", "/sys/devices/platform/soc-audio/PDM-DL1/codec_reg");
     35     dump_file("ducati firmware version", "/d/remoteproc/omap-rproc.1/version");
     36     dump_file("ducati trace1", "/d/remoteproc/omap-rproc.1/trace1");
     37     dump_file("ducati trace1_last", "/d/remoteproc/omap-rproc.1/trace1_last");
     38     dump_file("fsa9480 device_type", "/sys/bus/i2c/drivers/fsa9480/4-0025/device_type");
     39     dump_file("fsa9480 control", "/sys/bus/i2c/drivers/fsa9480/4-0025/control");
     40     dump_file("tiler 2x1 map", "/d/tiler/map/2x1");
     41 };
     42