Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
1ac91b1
Documentation
arch
alpha
arc
arm
arm64
avr32
blackfin
c6x
cris
frv
hexagon
ia64
m32r
m68k
metag
microblaze
mips
alchemy
ar7
ath25
Kconfig
Makefile
Platform
ar2315.c
ar2315.h
ar2315_regs.h
ar5312.c
ar5312.h
ar5312_regs.h
board.c
devices.c
devices.h
early_printk.c
prom.c
ath79
bcm3384
bcm47xx
bcm63xx
boot
cavium-octeon
cobalt
configs
dec
emma
fw
include
jazz
jz4740
kernel
kvm
lantiq
lasat
lib
loongson
loongson1
math-emu
mm
mti-malta
mti-sead3
net
netlogic
oprofile
paravirt
pci
pmcs-msp71xx
pnx833x
power
ralink
rb532
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni
txx9
vr41xx
Kbuild
Kbuild.platforms
Kconfig
Kconfig.debug
Makefile
mn10300
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
arch
/
mips
/
ath25
/
devices.c
Copy path
Blame
Blame
Latest commit
History
History
41 lines (32 loc) · 710 Bytes
Breadcrumbs
linux
/
arch
/
mips
/
ath25
/
devices.c
Top
File metadata and controls
Code
Blame
41 lines (32 loc) · 710 Bytes
Raw
#include <linux/kernel.h> #include <linux/init.h> #include <linux/serial_8250.h> #include <asm/bootinfo.h> #include "devices.h" #include "ar5312.h" #include "ar2315.h" const char *get_system_type(void) { return "Atheros (unknown)"; } void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) { struct uart_port s; memset(&s, 0, sizeof(s)); s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP; s.iotype = UPIO_MEM32; s.irq = irq; s.regshift = 2; s.mapbase = mapbase; s.uartclk = uartclk; early_serial_setup(&s); } static int __init ath25_arch_init(void) { if (is_ar5312()) ar5312_arch_init(); else ar2315_arch_init(); return 0; } arch_initcall(ath25_arch_init);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
You can’t perform that action at this time.