mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	ARM: bcm2835: use phys_to_bus() for mbox
When we communicate with the VideoCore to perform property mailbox transactions, that is a DMA operation as far as the property buffer is concerned. Use phys_to_bus() on that buffer. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
This commit is contained in:
		
				
					committed by
					
						 Marek Vasut
						Marek Vasut
					
				
			
			
				
	
			
			
			
						parent
						
							4748cce573
						
					
				
				
					commit
					122426d46e
				
			| @@ -7,6 +7,7 @@ | |||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/mbox.h> | #include <asm/arch/mbox.h> | ||||||
|  | #include <phys2bus.h> | ||||||
|  |  | ||||||
| #define TIMEOUT 1000 /* ms */ | #define TIMEOUT 1000 /* ms */ | ||||||
|  |  | ||||||
| @@ -110,10 +111,10 @@ int bcm2835_mbox_call_prop(u32 chan, struct bcm2835_mbox_hdr *buffer) | |||||||
| 	dump_buf(buffer); | 	dump_buf(buffer); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| 	ret = bcm2835_mbox_call_raw(chan, (u32)buffer, &rbuffer); | 	ret = bcm2835_mbox_call_raw(chan, phys_to_bus((u32)buffer), &rbuffer); | ||||||
| 	if (ret) | 	if (ret) | ||||||
| 		return ret; | 		return ret; | ||||||
| 	if (rbuffer != (u32)buffer) { | 	if (rbuffer != phys_to_bus((u32)buffer)) { | ||||||
| 		printf("mbox: Response buffer mismatch\n"); | 		printf("mbox: Response buffer mismatch\n"); | ||||||
| 		return -1; | 		return -1; | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user