forked from Mirrors/opensbi
		
	lib: utils/serial: Add support for Gaisler APBUART
This patch adds support for the UART used by the NOEL-V processor. Cobham Gaisler's NOEL-V RISC-V processor IP is available under GPL and commercial license and is described in more detail at https://www.gaisler.com/noelv. Signed-off-by: Daniel Cederman <cederman@gaisler.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							632e27bb91
						
					
				
				
					commit
					117fb6dcb1
				
			@@ -39,6 +39,9 @@ int fdt_parse_hart_id(void *fdt, int cpu_offset, u32 *hartid);
 | 
			
		||||
 | 
			
		||||
int fdt_parse_max_hart_id(void *fdt, u32 *max_hartid);
 | 
			
		||||
 | 
			
		||||
int fdt_parse_gaisler_uart_node(void *fdt, int nodeoffset,
 | 
			
		||||
				struct platform_uart_data *uart);
 | 
			
		||||
 | 
			
		||||
int fdt_parse_shakti_uart_node(void *fdt, int nodeoffset,
 | 
			
		||||
			       struct platform_uart_data *uart);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								include/sbi_utils/serial/gaisler-uart.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								include/sbi_utils/serial/gaisler-uart.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-License-Identifier: BSD-2-Clause
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 2021 Cobham Gaisler AB.
 | 
			
		||||
 *
 | 
			
		||||
 * Authors:
 | 
			
		||||
 *   Daniel Cederman <cederman@gaisler.com>
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef __SERIAL_GAISLER_APBUART_H__
 | 
			
		||||
#define __SERIAL_GAISLER_APBUART_H__
 | 
			
		||||
 | 
			
		||||
#include <sbi/sbi_types.h>
 | 
			
		||||
 | 
			
		||||
int gaisler_uart_init(unsigned long base, u32 in_freq, u32 baudrate);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user