mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
spi: dw-mmio: Add ACPI ID LECA0002 for LECARC SoCs
This ID requires a custom initialization function dw_spi_hssi_no_dma_init() that sets dws->dws.ip to DW_HSSI_ID. Signed-off-by: Thomas Lin <thomas_lin@lecomputing.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260521-lecarc-acpi-ids-v1-2-ae0ae90b2817@lecomputing.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0c5b5c40dc
commit
019947c495
|
|
@ -181,6 +181,12 @@ static const struct apd_device_desc hip08_spi_desc = {
|
|||
.setup = acpi_apd_setup,
|
||||
.fixed_clk_rate = 250000000,
|
||||
};
|
||||
|
||||
static const struct apd_device_desc leca_spi_desc = {
|
||||
.setup = acpi_apd_setup,
|
||||
.fixed_clk_rate = 400000000,
|
||||
};
|
||||
|
||||
#endif /* CONFIG_ARM64 */
|
||||
|
||||
#endif
|
||||
|
|
@ -251,6 +257,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
|
|||
{ "HISI02A2", APD_ADDR(hip08_i2c_desc) },
|
||||
{ "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) },
|
||||
{ "HISI0173", APD_ADDR(hip08_spi_desc) },
|
||||
{ "LECA0002", APD_ADDR(leca_spi_desc) },
|
||||
{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
|
||||
#endif
|
||||
{ }
|
||||
|
|
|
|||
|
|
@ -226,8 +226,8 @@ static int dw_spi_hssi_init(struct platform_device *pdev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int dw_spi_intel_init(struct platform_device *pdev,
|
||||
struct dw_spi_mmio *dwsmmio)
|
||||
static int dw_spi_hssi_no_dma_init(struct platform_device *pdev,
|
||||
struct dw_spi_mmio *dwsmmio)
|
||||
{
|
||||
dwsmmio->dws.ip = DW_HSSI_ID;
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ static const struct of_device_id dw_spi_mmio_of_match[] = {
|
|||
{ .compatible = "amazon,alpine-dw-apb-ssi", .data = dw_spi_alpine_init},
|
||||
{ .compatible = "renesas,rzn1-spi", .data = dw_spi_pssi_init},
|
||||
{ .compatible = "snps,dwc-ssi-1.01a", .data = dw_spi_hssi_init},
|
||||
{ .compatible = "intel,keembay-ssi", .data = dw_spi_intel_init},
|
||||
{ .compatible = "intel,keembay-ssi", .data = dw_spi_hssi_no_dma_init},
|
||||
{
|
||||
.compatible = "intel,mountevans-imc-ssi",
|
||||
.data = dw_spi_mountevans_imc_init,
|
||||
|
|
@ -453,6 +453,7 @@ MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match);
|
|||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {
|
||||
{"HISI0173", (kernel_ulong_t)dw_spi_pssi_init},
|
||||
{"LECA0002", (kernel_ulong_t)dw_spi_hssi_no_dma_init},
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, dw_spi_mmio_acpi_match);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user