mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	A SPI NOR flash should not be target-specific, so move it to generic in case another platform needs to use it. Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			499 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			499 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- a/drivers/mtd/spi-nor/gigadevice.c
 | 
						|
+++ b/drivers/mtd/spi-nor/gigadevice.c
 | 
						|
@@ -53,6 +53,9 @@ static const struct flash_info gigadevic
 | 
						|
 			   SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK |
 | 
						|
 			   SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
 | 
						|
 		.fixups = &gd25q256_fixups },
 | 
						|
+	{ "gd25q512", INFO(0xc84020, 0, 64 * 1024, 1024,
 | 
						|
+			   SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
 | 
						|
+			   SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4B_OPCODES) },
 | 
						|
 };
 | 
						|
 
 | 
						|
 const struct spi_nor_manufacturer spi_nor_gigadevice = {
 |