Todd Poynor | b3f588f | 2012-05-22 15:59:01 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 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 | { |
Sasha Levitskiy | 0bc7038 | 2012-07-20 15:39:06 -0700 | [diff] [blame] | 21 | dump_file("board revision", "/sys/devices/soc0/board_rev"); |
| 22 | dump_file("soc family", "/sys/devices/soc0/family"); |
| 23 | dump_file("soc revision", "/sys/devices/soc0/revision"); |
| 24 | dump_file("soc type", "/sys/devices/soc0/machine"); |
| 25 | dump_file("soc die_id", "/sys/devices/soc0/soc_id"); |
| 26 | dump_file("mmc0 name", "/sys/devices/platform/dw_mmc.0/mmc_host/mmc0/mmc0:0001/name"); |
| 27 | dump_file("mmc0 cid", "/sys/devices/platform/dw_mmc.0/mmc_host/mmc0/mmc0:0001/cid"); |
| 28 | dump_file("mmc0 csd", "/sys/devices/platform/dw_mmc.0/mmc_host/mmc0/mmc0:0001/csd"); |
| 29 | dump_file("mmc0 ext_csd", "/d/mmc0/mmc0:0001/ext_csd"); |
Sasha Levitskiy | ffd4863 | 2012-07-30 16:14:23 -0700 | [diff] [blame] | 30 | dump_file("wlan", "/sys/module/bcmdhd/parameters/info_string"); |
Sasha Levitskiy | 0bc7038 | 2012-07-20 15:39:06 -0700 | [diff] [blame] | 31 | dump_file("touchscreen name", "/sys/class/input/input0/name"); |
Todd Poynor | b3f588f | 2012-05-22 15:59:01 -0700 | [diff] [blame] | 32 | dump_file("manta power", "/d/manta-power"); |
Todd Poynor | 6ea1169 | 2012-10-10 17:43:13 -0700 | [diff] [blame] | 33 | dump_file("dock status", "/sys/class/switch/dock/dock_status"); |
Todd Poynor | 3fe3405 | 2012-07-10 09:31:59 -0700 | [diff] [blame] | 34 | dump_file("smb347 charger regs", "/d/smb347-regs"); |
Todd Poynor | cbd09aa | 2012-08-18 12:26:21 -0700 | [diff] [blame] | 35 | dump_file("ds2784 fuel gauge regs", "/d/ds2784"); |
Todd Poynor | fbeb4f5 | 2012-08-23 12:57:15 -0700 | [diff] [blame] | 36 | dump_file("bus traffic shaper", "/d/bts_dev_status"); |
Greg Hackmann | 9512dfb | 2012-08-28 09:57:19 -0700 | [diff] [blame] | 37 | dump_file("display controller", "/d/s3c-fb"); |
Rebecca Schultz Zavin | d0a02f6 | 2013-04-24 11:54:14 -0700 | [diff] [blame] | 38 | dump_file("ion chunk heap", "/d/ion/ion_chunk_heap"); |
Rebecca Schultz Zavin | 2504bf3 | 2012-10-04 12:23:56 -0700 | [diff] [blame] | 39 | dump_file("ion system heap", "/d/ion/ion_noncontig_heap"); |
| 40 | dump_file("ion exynos noncontig heap", "/d/ion/exynos_noncontig_heap"); |
| 41 | dump_file("ion exynos contig heap", "/d/ion/exynos_contig_heap"); |
Rebecca Schultz Zavin | bacf4fc | 2012-10-05 14:35:58 -0700 | [diff] [blame] | 42 | dump_file("shrinkers", "/d/shrinker"); |
Colin Cross | d028ef2 | 2012-11-21 14:25:18 -0800 | [diff] [blame] | 43 | dump_file("kbase carveout", "/d/kbase_carveout"); |
Benoit Goby | 97db95b | 2012-10-18 18:24:32 -0700 | [diff] [blame] | 44 | dump_file("HDMI", "/d/exynos5-hdmi"); |
| 45 | dump_file("HDMI mixer", "/d/s5p-mixer"); |
Todd Poynor | b3f588f | 2012-05-22 15:59:01 -0700 | [diff] [blame] | 46 | }; |