• J
    spi: add ACPI support for SPI controller chip select lines(cs-gpios) · 70866373
    Jay Fang 提交于
    euler inclusion
    category: feature (SPI ACPI for Hi1620)
    bugzilla: 5443
    CVE: NA
    
    TPM chip on D06 is SPI based, so we need to add SPI ACPI support
    for Hi1620.
    
    Two patches already merged for 4.21, but the core support for spi
    has another patchset needs lots of refactor, so just use the patch
    from Fang Jian to enable this feature on 4.19
    
    [PATCH 1/4] spi: dw-mmio: add ACPI support
    [PATCH 2/4] ACPI / APD: Add clock frequency for Hisilicon Hip08 SPI controller
    [PATCH 3/4] spi: add ACPI support for SPI controller chip select lines(cs-gpios)
    [PATCH 4/4] hulk_defconfig: ensble SPI designware driver for Hi1620
    -----------------------------------------
    
    This will also allow to use cs-gpios for chip select in ACPI code
    with no modification in the driver binding, like it be used in DT.
    We could share almost all of the code with the DT path.
    Signed-off-by: NJay Fang <f.fangjian@huawei.com>
    Signed-off-by: NHanjun Guo <guohanjun@huawei.com>
    Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    70866373
spi.c 94.8 KB