320845dda2
Basics: the ADM5120 is a 175 MHz MIPS32 4Kc processor featuring a 6-port ethernet 10/100 switch with Auto MDI/X, a PCI controller, USB 1.1 controller, UART, watchdog timer, eight GPIO pins, and a multiport memory controller with both NOR and NAND flash support. This code supports most of the devices on the ADM5120, including the 6-port switch (each port attaches as an ethernet, admsw0 through admsw5), the PCI controller, USB controller, GPIO, watchdog, and UART. Remaining work: the port includes no NOR/NAND flash drivers. No bootloader is included. I have only tested the PCI bus driver with the use of one PCI slot on the RouterBOARD 153. It is not possible to exploit the capabilities of the ethernet switch using bridge(4). I have only netbooted the ADM5120 on the RB153. Booting other boards, and booting from flash memory, remains to be done. Hardware availability: many low-cost routers, including the RouterBOARD 100 series at RouterBOARD.com, use the Infineon ADM5120 processor. Credits: Ruslan Ermilov and Vsevolod Lobko ported to the ADM5120, and they wrote device drivers for the UART, USB controller, and 10/100 switch. Matt Isaacs brought the port up-to-date with NetBSD-current, made it compile, and ran it first on the RB153. I added drivers for the PCI controller, GPIO, and watchdog timer. I produced the bus attachment for the CompactFlash slot with advice from Mikrotik technical support and from Matt Thomas.
15 lines
627 B
Makefile
15 lines
627 B
Makefile
# $NetBSD: Makefile.inc,v 1.6 2007/03/20 08:52:04 dyoung Exp $
|
|
|
|
AMIPS= ${SYSDIR}/arch/mips/mips/*.S
|
|
SMIPS= ${SYSDIR}/arch/mips/mips/*.[ch] ${SYSDIR}/arch/mips/include/*.h
|
|
SMIPS+= ${SYSDIR}/arch/mips/adm5120/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/adm5120/dev/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/adm5120/include/*.h
|
|
SMIPS+= ${SYSDIR}/arch/mips/alchemy/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/alchemy/dev/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/alchemy/include/*.h
|
|
SMIPS+= ${SYSDIR}/arch/mips/atheros/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/atheros/dev/*.[ch]
|
|
SMIPS+= ${SYSDIR}/arch/mips/atheros/include/*.h
|
|
SMIPS+= ${SYSDIR}/arch/mips/bonito/*.[ch]
|