Skip to content

Commit e3e2c55

Browse files
sycamoremoonRevySR
authored andcommitted
UPSTREAM: spi: spi-sg2044-nor: Add SPI-NOR controller for SG2042
Add support for SOPHGO SG2042 SPI-NOR flash controller. Signed-off-by: Zixian Zeng <[email protected]> Reviewed-by: Chen Wang <[email protected]> & Tested-by: Chen Wang Link: https://patch.msgid.link/[email protected] Reviewed-by: Chen Wang <[email protected]> & Tested-by: Chen Wang Signed-off-by: Mark Brown <[email protected]> (cherry picked from commit f6b1594) Signed-off-by: Han Gao <[email protected]>
1 parent e092288 commit e3e2c55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/spi/spi-sg2044-nor.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,14 @@ static const struct sg204x_spifmc_chip_info sg2044_chip_info = {
485485
.rd_fifo_int_trigger_level = SPIFMC_TRAN_CSR_FIFO_TRG_LVL_8_BYTE,
486486
};
487487

488+
static const struct sg204x_spifmc_chip_info sg2042_chip_info = {
489+
.has_opt_reg = false,
490+
.rd_fifo_int_trigger_level = SPIFMC_TRAN_CSR_FIFO_TRG_LVL_1_BYTE,
491+
};
492+
488493
static const struct of_device_id sg2044_spifmc_match[] = {
489494
{ .compatible = "sophgo,sg2044-spifmc-nor", .data = &sg2044_chip_info },
495+
{ .compatible = "sophgo,sg2042-spifmc-nor", .data = &sg2042_chip_info },
490496
{ /* sentinel */ }
491497
};
492498
MODULE_DEVICE_TABLE(of, sg2044_spifmc_match);

0 commit comments

Comments
 (0)