mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
run: use driver_nic-* pkg where possible (fix #3180)
This commit is contained in:
committed by
Christian Helmuth
parent
b6d14d9960
commit
dcc28b65cb
@@ -44,32 +44,6 @@ proc usb_host_drv_binary { } {
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Return name of the NIC driver binary
|
||||
#
|
||||
proc nic_drv_binary { } {
|
||||
if {[have_spec linux]} { return linux_nic_drv }
|
||||
if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} { return usb_drv }
|
||||
if {[have_spec zynq]} { return zynq_nic_drv }
|
||||
if {!([have_spec riscv] || [have_spec odroid_xu])} { return nic_drv }
|
||||
return no_nic_drv_available
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Return configuration for NIC driver
|
||||
#
|
||||
proc nic_drv_config { } {
|
||||
if {[have_spec imx53]} {
|
||||
return "<config><card type=\"fsl,imx25-fec\" mii=\"rmii\" irq=\"87\" mmio=\"0x63fec000\"/></config>" }
|
||||
if {[have_spec imx6q_sabrelite]} {
|
||||
return "<config><card type=\"fsl,imx6q-fec\" mii=\"rgmii\" irq=\"150\" mmio=\"0x2188000\"/></config>" }
|
||||
if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} {
|
||||
return {<config uhci="yes" ohci="yes" ehci="yes"><nic mac="02:00:00:00:01:01"/></config>} }
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Return name of the audio driver binary
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user