scsi: hisi_sas: directly attached disk LED feature for v2 hw
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 17 Jan 2018 16:46:53 +0000 (00:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 23 Jan 2018 01:03:59 +0000 (20:03 -0500)
commit6379c56070b9ee32ae2b3efa51e121242042e72d
tree333622491f3425dd5643ec103cb7175aca9c9796
parent56ad7fcd4f058f74db8f4b08dd4e61a52bd8feba
scsi: hisi_sas: directly attached disk LED feature for v2 hw

This patch implements LED feature of directly attached disk for v2 hw.
As libsas has provided an interface lldd_write_gpio() for this feature,
we just need realise the interface following SPGIO API.

We use an CPLD to finish the hardware part of this feature, and the base
address of CPLD should be configured through ACPI or DT tables.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c