Rename UC870x to UC87xx

This is a driver for the UART controller on the S5L87xx series of SoCs, which is named after the SoC family.
Since S5L8720 is confirmed to have the same interface and the newer models probably also have it, the driver is renamed to reflect this.

Change-Id: I974c002924372e860db0e49235d108dab87f8831
This commit is contained in:
Vencislav Atanasov 2024-11-21 00:05:58 +02:00
parent 39f8101d60
commit fb134c9533
14 changed files with 38 additions and 38 deletions

View file

@ -620,7 +620,7 @@
/* 25. UART */
#if CONFIG_CPU==S5L8701
/* s5l8701 UC870X HW: 3 UARTC, 1 port per UARTC */
/* s5l8701 UC87XX HW: 3 UARTC, 1 port per UARTC */
#define S5L8701_N_UARTC 3
#define S5L8701_N_PORTS 3
@ -635,7 +635,7 @@
#define UARTC2_PORT_OFFSET 0x0
#else
/* s5l8700 UC870X HW: 1 UARTC, 2 ports */
/* s5l8700 UC87XX HW: 1 UARTC, 2 ports */
#define S5L8700_N_UARTC 1
#define S5L8700_N_PORTS 2

View file

@ -741,7 +741,7 @@
/////UART/////
/* s5l8702 UC870X HW: 1 UARTC, 4 ports */
/* s5l8702 UC87XX HW: 1 UARTC, 4 ports */
#define UARTC_BASE_ADDR 0x3CC00000
#define UARTC_N_PORTS 4
#define UARTC_PORT_OFFSET 0x4000

View file

@ -18,8 +18,8 @@
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __UC870X_H__
#define __UC870X_H__
#ifndef __UC87XX_H__
#define __UC87XX_H__
#include <stdint.h>
#include <stdbool.h>
@ -30,10 +30,10 @@
/*
* UC870x: UART controller for s5l870x
* UC87xx: UART controller for s5l87xx
*
* This UART is similar to the UART described in s5l8700 datasheet,
* (see also s3c2416 and s3c6400 datasheets). On s5l8701+ the UC870x
* (see also s3c2416 and s3c6400 datasheets). On s5l8701+ the UC87xx
* includes autobauding, and fine tuning for Tx/Rx speed on s5l8702+.
*/
#if (CONFIG_CPU == S5L8701)
@ -310,7 +310,7 @@ struct uartc_port
bool abr_aborted;
#endif
#ifdef UC870X_DEBUG
#ifdef UC87XX_DEBUG
uint32_t n_tx_bytes;
uint32_t n_rx_bytes;
uint32_t n_ovr_err;
@ -321,12 +321,12 @@ struct uartc_port
uint32_t n_abnormal0;
uint32_t n_abnormal1;
#endif /* UART_CAP_AUTOBAUD */
#endif /* UC870X_DEBUG */
#endif /* UC87XX_DEBUG */
};
/*
* uc870x low level API
* uc87xx low level API
*/
/* Initialization */
@ -365,7 +365,7 @@ void uartc_port_abr_stop(struct uartc_port *port);
void uartc_callback(const struct uartc *uartc, int port_id);
/* Debug */
#ifdef UC870X_DEBUG
#ifdef UC87XX_DEBUG
void uartc_port_get_line_info(struct uartc_port *port,
int *tx_status, int *rx_status,
int *tx_speed, int *rx_speed, char *line_cfg);
@ -380,6 +380,6 @@ enum {
int uartc_port_get_abr_info(struct uartc_port *port, uint32_t *abr_cnt);
#endif /* UART_CAP_AUTOBAUD */
#endif /* UC870X_DEBUG */
#endif /* UC87XX_DEBUG */
#endif /* __UC870X_H__ */
#endif /* __UC87XX_H__ */