Re: [PATCH v4] drm: add kms driver for loongson display controller

2023-02-23 Thread suijingfeng
On 2023/2/23 22:07, Thomas Zimmermann wrote: It's the same story all over: you rather want to remove all these lookup helpers and do a single test before you create the modesetting pipeline:  if (chip == LS7A2000 && index == 0)     lscd_create_output_ls7a2000_0();  else if (chip == LS7A200

[PATCH v4] drm: add kms driver for loongson display controller

2023-02-20 Thread suijingfeng
From: suijingfeng Loongson display controller IP has been integrated in both Loongson North Bridge chipset(ls7a1000 and ls7a2000) and Loongson SoCs(ls2k1000 and ls2k2000 etc), it even been included in Loongson BMC products. The display controller is a PCI device, it has two display pipe. For the