mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-26 05:51:29 +01:00 
			
		
		
		
	Support QEMU PIRQ routing via device tree on both i440fx and q35 platforms. With this commit, Linux booting on QEMU from U-Boot has working ATA/SATA, USB and ethernet. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			46 lines
		
	
	
		
			599 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			599 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <asm/irq.h>
 | |
| #include <asm/post.h>
 | |
| #include <asm/processor.h>
 | |
| 
 | |
| int arch_cpu_init(void)
 | |
| {
 | |
| 	int ret;
 | |
| 
 | |
| 	post_code(POST_CPU_INIT);
 | |
| #ifdef CONFIG_SYS_X86_TSC_TIMER
 | |
| 	timer_set_base(rdtsc());
 | |
| #endif
 | |
| 
 | |
| 	ret = x86_cpu_init_f();
 | |
| 	if (ret)
 | |
| 		return ret;
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| int print_cpuinfo(void)
 | |
| {
 | |
| 	post_code(POST_CPU_INFO);
 | |
| 	return default_print_cpuinfo();
 | |
| }
 | |
| 
 | |
| void reset_cpu(ulong addr)
 | |
| {
 | |
| 	/* cold reset */
 | |
| 	x86_full_reset();
 | |
| }
 | |
| 
 | |
| int arch_misc_init(void)
 | |
| {
 | |
| 	pirq_init();
 | |
| 
 | |
| 	return 0;
 | |
| }
 |