forked from Mirrors/opensbi
		
	lib: utils: serial: Add Cadence UART driver
Add Cadence UART driver Signed-off-by: Jun Liang Tan <junliang.tan@linux.starfivetech.com> Signed-off-by: Wei Liang Lim <weiliang.lim@linux.starfivetech.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							adf44b51ba
						
					
				
				
					commit
					cbaa9b0333
				
			@@ -65,8 +65,8 @@ int fdt_parse_shakti_uart_node(void *fdt, int nodeoffset,
 | 
			
		||||
int fdt_parse_sifive_uart_node(void *fdt, int nodeoffset,
 | 
			
		||||
			       struct platform_uart_data *uart);
 | 
			
		||||
 | 
			
		||||
int fdt_parse_uart8250_node(void *fdt, int nodeoffset,
 | 
			
		||||
			    struct platform_uart_data *uart);
 | 
			
		||||
int fdt_parse_uart_node(void *fdt, int nodeoffset,
 | 
			
		||||
			struct platform_uart_data *uart);
 | 
			
		||||
 | 
			
		||||
int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart,
 | 
			
		||||
		       const char *compatible);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								include/sbi_utils/serial/cadence-uart.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								include/sbi_utils/serial/cadence-uart.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-License-Identifier: BSD-2-Clause
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 2022 StarFive Technology Co., Ltd.
 | 
			
		||||
 *
 | 
			
		||||
 * Author: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef __SERIAL_CADENCE_UART_H__
 | 
			
		||||
#define __SERIAL_CADENCE_UART_H__
 | 
			
		||||
 | 
			
		||||
#include <sbi/sbi_types.h>
 | 
			
		||||
 | 
			
		||||
int cadence_uart_init(unsigned long base, u32 in_freq, u32 baudrate);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user