soc: hisilicon: add sysfs entry to query information of HCCS
authorHuisong Li <lihuisong@huawei.com>
Tue, 8 Aug 2023 02:36:39 +0000 (10:36 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 8 Aug 2023 12:36:30 +0000 (12:36 +0000)
commit47f7a25533cea268e663be7b84fef933e40692c4
treef274ec604f254eaa43a1708508d1f0fbc59beea1
parent886bdf9c883bcc9bfb0a0bc0ed27680e68c8b6c2
soc: hisilicon: add sysfs entry to query information of HCCS

This patch creates chip, die and port directory based on the actual
hardware implementation of platform. Some sysfs entries under these
directories are created to query the health status and port information
of HCCS.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/soc/hisilicon/kunpeng_hccs.c
drivers/soc/hisilicon/kunpeng_hccs.h