mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-11-04 07:00:39 +01:00 
			
		
		
		
	flashchips: Add Support for XMC XM25QU80B
Add initial support for the SPI flash chip XM25QU80B Datasheet link: https://www.xmcwh.com/uploads/520/XM25QU80B_Ver1.4.pdf Tested with ch341a programmer: probe, read, write, erase Change-Id: I8350f4ba94b4819e6496b9c5fddc8617bc0528b5 Signed-off-by: Kan Sun <ssunkkan@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/83180 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Anastasia Klimchuk
					
				
			
			
				
	
			
			
			
						parent
						
							9e175cfdda
						
					
				
				
					commit
					a89d2f906b
				
			
							
								
								
									
										38
									
								
								flashchips.c
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								flashchips.c
									
									
									
									
									
								
							@@ -21897,6 +21897,44 @@ const struct flashchip flashchips[] = {
 | 
			
		||||
		.voltage	= {2700, 3600},
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{
 | 
			
		||||
		.vendor		= "XMC",
 | 
			
		||||
		.name		= "XM25QU80B",
 | 
			
		||||
		.bustype	= BUS_SPI,
 | 
			
		||||
		.manufacture_id	= ST_ID,
 | 
			
		||||
		.model_id	= XMC_XM25QU80B,
 | 
			
		||||
		.total_size	= 1024,
 | 
			
		||||
		.page_size	= 256,
 | 
			
		||||
		.feature_bits	= FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
 | 
			
		||||
		.tested		= TEST_OK_PREW,
 | 
			
		||||
		.probe		= PROBE_SPI_RDID,
 | 
			
		||||
		.probe_timing	= TIMING_ZERO,
 | 
			
		||||
		.block_erasers	=
 | 
			
		||||
		{
 | 
			
		||||
			{
 | 
			
		||||
				.eraseblocks = { {4 * 1024, 256 } },
 | 
			
		||||
				.block_erase = SPI_BLOCK_ERASE_20,
 | 
			
		||||
			}, {
 | 
			
		||||
				.eraseblocks = { {32 * 1024, 32} },
 | 
			
		||||
				.block_erase = SPI_BLOCK_ERASE_52,
 | 
			
		||||
			}, {
 | 
			
		||||
				.eraseblocks = { {64 * 1024, 16} },
 | 
			
		||||
				.block_erase = SPI_BLOCK_ERASE_D8,
 | 
			
		||||
			}, {
 | 
			
		||||
				.eraseblocks = { {1 * 1024 * 1024, 1} },
 | 
			
		||||
				.block_erase = SPI_BLOCK_ERASE_60,
 | 
			
		||||
			}, {
 | 
			
		||||
				.eraseblocks = { {1 * 1024 * 1024, 1} },
 | 
			
		||||
				.block_erase = SPI_BLOCK_ERASE_C7,
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		.printlock	= SPI_PRETTYPRINT_STATUS_REGISTER_PLAIN,
 | 
			
		||||
		.unlock		= SPI_DISABLE_BLOCKPROTECT,
 | 
			
		||||
		.write		= SPI_CHIP_WRITE256,
 | 
			
		||||
		.read		= SPI_CHIP_READ,
 | 
			
		||||
		.voltage	= {1650, 1950},
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{
 | 
			
		||||
		.vendor		= "XMC",
 | 
			
		||||
		.name		= "XM25QH64C",
 | 
			
		||||
 
 | 
			
		||||
@@ -847,6 +847,7 @@
 | 
			
		||||
#define ST_M45PE16		0x4015
 | 
			
		||||
#define XMC_XM25QH64C		0x4017
 | 
			
		||||
#define XMC_XM25QU64C		0x4117
 | 
			
		||||
#define XMC_XM25QU80B		0x5014
 | 
			
		||||
#define XMC_XM25QH128A		0x7018
 | 
			
		||||
#define XMC_XM25QH128C		0x4018
 | 
			
		||||
#define XMC_XM25QU128C		0x4118
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user