1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) 2025 Icenowy Zheng <uwu@icenowy.me> 4 */ 5 6 #ifndef _VS_HWDB_H_ 7 #define _VS_HWDB_H_ 8 9 #include <linux/regmap.h> 10 #include <linux/types.h> 11 12 struct vs_formats { 13 const u32 *array; 14 unsigned int num; 15 }; 16 17 struct vs_chip_identity { 18 u32 model; 19 u32 revision; 20 u32 customer_id; 21 22 u32 display_count; 23 const struct vs_formats *formats; 24 }; 25 26 int vs_fill_chip_identity(struct regmap *regs, 27 struct vs_chip_identity *ident); 28 29 #endif /* _VS_HWDB_H_ */ 30