| // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| /* |
| * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| */ |
| |
| #include <common.h> |
| #include <linux/types.h> |
| #include <amlogic/media/vout/hdmitx/hdmitx.h> |
| /* Base Block, Vendor/Product Information, byte[8]~[17] */ |
| struct edid_venddat_t { |
| unsigned char data[10]; |
| }; |
| |
| static struct edid_venddat_t vendor_6g[] = { |
| /* SAMSUNG UA55KS7300JXXZ */ |
| { {0x4c, 0x2d, 0x3b, 0x0d, 0x00, 0x06, 0x00, 0x01, 0x01, 0x1a} }, |
| /* Add new vendor data here */ |
| }; |
| |
| bool hdmitx_find_vendor(struct hdmitx_dev *hdev) |
| { |
| int i; |
| |
| for (i = 0; i < ARRAY_SIZE(vendor_6g); i++) { |
| if (memcmp(&hdev->rawedid[8], vendor_6g[i].data, |
| sizeof(vendor_6g[i].data)) == 0) |
| return true; |
| } |
| return false; |
| } |