uart: Move registers to uart_regs.h

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-05-05 03:23:25 +09:00
parent 27af846aae
commit ce3a673413
2 changed files with 11 additions and 9 deletions

View file

@ -5,6 +5,7 @@
#include "uart.h"
#include "iodev.h"
#include "types.h"
#include "uart_regs.h"
#include "utils.h"
#include "vsprintf.h"
@ -12,15 +13,6 @@
#define UART_BASE 0x235200000L
#define ULCON 0x000
#define UCON 0x004
#define UFCON 0x008
#define UTRSTAT 0x010
#define UTXH 0x020
#define URXH 0x024
#define UBRDIV 0x028
#define UFRACVAL 0x02c
void *pxx = uart_init;
void uart_init(void)

10
src/uart_regs.h Normal file
View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: MIT */
#define ULCON 0x000
#define UCON 0x004
#define UFCON 0x008
#define UTRSTAT 0x010
#define UTXH 0x020
#define URXH 0x024
#define UBRDIV 0x028
#define UFRACVAL 0x02c