mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-10-31 05:10:41 +01:00 
			
		
		
		
	Change out/in combinations to pci_read/write_byte in sis630 chipset enable
Corresponding to flashrom svn r138 and coreboot v2 svn r2770. Signed-off-by: Alex Beregszaszi <alex@rtfs.hu> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
		 Alex Beregszaszi
					Alex Beregszaszi
				
			
				
					committed by
					
						 Uwe Hermann
						Uwe Hermann
					
				
			
			
				
	
			
			
			 Uwe Hermann
						Uwe Hermann
					
				
			
						parent
						
							a0cc53d738
						
					
				
				
					commit
					c9fb5d92e2
				
			| @@ -46,13 +46,11 @@ static int enable_flash_sis630(struct pci_dev *dev, char *name) | |||||||
| 	char b; | 	char b; | ||||||
|  |  | ||||||
| 	/* Enable 0xFFF8000~0xFFFF0000 decoding on SiS 540/630 */ | 	/* Enable 0xFFF8000~0xFFFF0000 decoding on SiS 540/630 */ | ||||||
| 	outl(0x80000840, 0x0cf8); | 	b = pci_read_byte(dev, 0x40); | ||||||
| 	b = inb(0x0cfc) | 0x0b; | 	pci_write_byte(dev, 0x40, b | 0xb); | ||||||
| 	outb(b, 0xcfc); |  | ||||||
| 	/* Flash write enable on SiS 540/630 */ | 	/* Flash write enable on SiS 540/630 */ | ||||||
| 	outl(0x80000845, 0x0cf8); | 	b = pci_read_byte(dev, 0x45); | ||||||
| 	b = inb(0x0cfd) | 0x40; | 	pci_write_byte(dev, 0x45, b | 0x40); | ||||||
| 	outb(b, 0xcfd); |  | ||||||
|  |  | ||||||
| 	/* The same thing on SiS 950 SuperIO side */ | 	/* The same thing on SiS 950 SuperIO side */ | ||||||
| 	outb(0x87, 0x2e); | 	outb(0x87, 0x2e); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user