Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2020 14:23:58 +0100
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   EspressoBin PCI express driver
Message-ID:  <EC55441C-1987-4581-A539-318FE065435F@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi gang

I=E2=80=99ve been looking at that empty PCI-express slot on my =
EspressonBin=E2=80=99s for some time, and decided that it could be handy =
to either add a a SATA controller for NAS purposes or a Wifi card for =
routers.

I=E2=80=99ve hacked together a simple driver that allows that, grantet =
its crude but it works :)

pcib0: <Marvell Armada 37x0 PCI-express controller> mem =
0xd0070000-0xd008ffff irq 5 on simplebus0
pci0: <PCI bus> on pcib0
ath0: <Atheros 9287> at device 1.0 on pci0
ath0: AR9287 mac 384.2 RF5133 phy 15.15
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0

pcib0: <Marvell Armada 37x0 PCI-express controller> mem =
0xd0070000-0xd008ffff irq 5 on simplebus0
pci0: <PCI bus> on pcib0
atactlr1: <Marvell AHCI controller> irq 46 at device 1.0 on pci0
atactlr1: AHCI v1.00 64bit controller, 4 6.0Gb/s ports, PM supported, =
NCQ supported w/FBS
ata2: <SATA 6.0Gb/s port at channel 0> on atactlr1
ata3: <SATA 6.0Gb/s port at channel 1> on atactlr1
ata4: <SATA 6.0Gb/s port at channel 2> on atactlr1
ata5: <SATA 6.0Gb/s port at channel 3> on atactlr1

It has only been used on my own hacked up version of 12-stable but =
should work on -current as well, YMMV..



Enjoy!

PS: I do have a cpufreq driver for it as well if anyone=E2=80=99s =
interested, but there is not much point in it since power savings are =
next to nothing=E2=80=A6.

--
S=C3=B8ren Schmidt
sos@deepcore.dk / sos@freebsd.org
"So much code to hack, so little time"






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EC55441C-1987-4581-A539-318FE065435F>