blob: bc086894133c6cf208cc0393644939597a27c955 [file] [log] [blame]
Adam Shihcf726602022-10-04 13:09:00 +08001/*
2 * Copyright 2022 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 */
Adam Shih4b68f5f2022-10-18 11:45:37 +080016#include <dump/pixel_dump.h>
Adam Shihcf726602022-10-04 13:09:00 +080017
18// Dump chip ID.
19int main() {
20 dumpFileContent("AP HW TUNE", "/sys/devices/system/chip-id/ap_hw_tune_str");
21 dumpFileContent("EVT VERSION", "/sys/devices/system/chip-id/evt_ver");
22 dumpFileContent("LOT ID", "/sys/devices/system/chip-id/lot_id");
23 dumpFileContent("PRODUCT ID", "/sys/devices/system/chip-id/product_id");
24 dumpFileContent("REVISION", "/sys/devices/system/chip-id/revision");
25 dumpFileContent("RAW STR", "/sys/devices/system/chip-id/raw_str");
26 return 0;
27}