arch/xtensa/platforms/xt2000/include/platform/serial.h

Source file repositories/reference/linux-study-clean/arch/xtensa/platforms/xt2000/include/platform/serial.h

File Facts

System
Linux kernel
Corpus path
arch/xtensa/platforms/xt2000/include/platform/serial.h
Extension
.h
Size
762 bytes
Lines
29
Domain
Architecture Layer
Bucket
arch/xtensa
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _XTENSA_XT2000_SERIAL_H
#define _XTENSA_XT2000_SERIAL_H

#include <asm/core.h>
#include <asm/io.h>

/*  National-Semi PC16552D DUART:  */

#define DUART16552_1_INTNUM	XCHAL_EXTINT4_NUM
#define DUART16552_2_INTNUM	XCHAL_EXTINT5_NUM

#define DUART16552_1_ADDR	IOADDR(0x0d050020)	/* channel 1 */
#define DUART16552_2_ADDR	IOADDR(0x0d050000)	/* channel 2 */

#define DUART16552_XTAL_FREQ	18432000	/* crystal frequency in Hz */
#define BASE_BAUD ( DUART16552_XTAL_FREQ / 16 )

#endif /* _XTENSA_XT2000_SERIAL_H */

Annotation

Implementation Notes