mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	Copy backport, hack, pending patch and config from 6.1 to 6.6. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			918 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			918 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
From: Joe Mullally <jwmullally@gmail.com>
 | 
						|
Subject: mtd/spi-nor/xmc: add support for XMC XM25QH64C
 | 
						|
 | 
						|
The XMC XM25QH64C is a 8MB SPI NOR chip. The patch is verified on TL-WPA8631P v3.
 | 
						|
Datasheet available at https://www.xmcwh.com/uploads/442/XM25QH64C.pdf
 | 
						|
 | 
						|
Signed-off-by: Joe Mullally <jwmullally@gmail.com>
 | 
						|
---
 | 
						|
 drivers/mtd/spi-nor/xmc.c                             | 2 ++
 | 
						|
 1 file changed, 2 insertions(+)
 | 
						|
 | 
						|
--- a/drivers/mtd/spi-nor/xmc.c
 | 
						|
+++ b/drivers/mtd/spi-nor/xmc.c
 | 
						|
@@ -13,6 +13,9 @@ static const struct flash_info xmc_nor_p
 | 
						|
 	{ "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128)
 | 
						|
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 | 
						|
 			      SPI_NOR_QUAD_READ) },
 | 
						|
+	{ "XM25QH64C", INFO(0x204017, 0, 64 * 1024, 128)
 | 
						|
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 | 
						|
+			      SPI_NOR_QUAD_READ) },
 | 
						|
 	{ "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256)
 | 
						|
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 | 
						|
 			      SPI_NOR_QUAD_READ) },
 |