mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-14 11:17:07 +00:00
uart: Move registers to uart_regs.h
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
27af846aae
commit
ce3a673413
2 changed files with 11 additions and 9 deletions
10
src/uart.c
10
src/uart.c
|
@ -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
10
src/uart_regs.h
Normal 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
|
Loading…
Reference in a new issue