soc/mediatek: Use 'include <stdlib.h>' when appropriate
Also including <types.h>, is supposed to provide stdint and stddef. Change-Id: Id6d881055826044d04843ba165641131b9111342 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33690 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
		
				
					committed by
					
						
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							308185546b
						
					
				
				
					commit
					231537bb8f
				
			@@ -17,10 +17,10 @@
 | 
				
			|||||||
#include <assert.h>
 | 
					#include <assert.h>
 | 
				
			||||||
#include <console/console.h>
 | 
					#include <console/console.h>
 | 
				
			||||||
#include <endian.h>
 | 
					#include <endian.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					 | 
				
			||||||
#include <soc/pll.h>
 | 
					#include <soc/pll.h>
 | 
				
			||||||
#include <soc/spi.h>
 | 
					#include <soc/spi.h>
 | 
				
			||||||
#include <timer.h>
 | 
					#include <timer.h>
 | 
				
			||||||
 | 
					#include <types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define MTK_SPI_DEBUG 0
 | 
					#define MTK_SPI_DEBUG 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,12 +21,12 @@
 | 
				
			|||||||
#include <spi_flash.h>
 | 
					#include <spi_flash.h>
 | 
				
			||||||
#include <spi-generic.h>
 | 
					#include <spi-generic.h>
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <symbols.h>
 | 
					#include <symbols.h>
 | 
				
			||||||
#include <timer.h>
 | 
					#include <timer.h>
 | 
				
			||||||
#include <soc/symbols.h>
 | 
					#include <soc/symbols.h>
 | 
				
			||||||
#include <soc/flash_controller.h>
 | 
					#include <soc/flash_controller.h>
 | 
				
			||||||
 | 
					#include <types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define get_nth_byte(d, n)	((d >> (8 * n)) & 0xff)
 | 
					#define get_nth_byte(d, n)	((d >> (8 * n)) & 0xff)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user