spi: spi-sg2044-nor: Add SPI-NOR controller for SG2042
Add support for SOPHGO SG2042 SPI-NOR flash controller. Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Reviewed-by: Chen Wang <unicorn_wang@outlook.com> & Tested-by: Chen Wang Link: https://patch.msgid.link/20250720-sfg-spifmc-v4-3-033188ad801e@gmail.com Reviewed-by: Chen Wang <unicorn_wang@outlook.com> & Tested-by: Chen Wang Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -485,8 +485,14 @@ static const struct sg204x_spifmc_chip_info sg2044_chip_info = {
|
||||
.rd_fifo_int_trigger_level = SPIFMC_TRAN_CSR_FIFO_TRG_LVL_8_BYTE,
|
||||
};
|
||||
|
||||
static const struct sg204x_spifmc_chip_info sg2042_chip_info = {
|
||||
.has_opt_reg = false,
|
||||
.rd_fifo_int_trigger_level = SPIFMC_TRAN_CSR_FIFO_TRG_LVL_1_BYTE,
|
||||
};
|
||||
|
||||
static const struct of_device_id sg2044_spifmc_match[] = {
|
||||
{ .compatible = "sophgo,sg2044-spifmc-nor", .data = &sg2044_chip_info },
|
||||
{ .compatible = "sophgo,sg2042-spifmc-nor", .data = &sg2042_chip_info },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, sg2044_spifmc_match);
|
||||
|
||||
Reference in New Issue
Block a user