Page MenuHomeFreeBSD

[new driver] allwinner/ac100: rtc and audio codec for a83t
Needs ReviewPublic

Authored by kevans on Nov 17 2017, 6:51 PM.

Details

Summary

The X-Powers AC100 provides an RTC and an audio codec to at least the Banana Pi-M3 (a83t). Driver is ported from NetBSD, currently only supports the RTC bits.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 12967

Event Timeline

Sorry, should be the last correction for now- simplified the ofw compat bits.

sys/arm/allwinner/files.allwinner
15

This should by optional ac100

It feels like this should be 2 drivers. One to talk with the ac100, and a second jsut for the rtc bits.

It feels like this should be 2 drivers. One to talk with the ac100, and a second jsut for the rtc bits.

You never talk to the ac100, only to the rtc bits or the coded bits.
This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

standard -> optional ac100, add ac100 to the arm/GENERIC config near rsb and axp209/axp81x.

This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

How would an eventual codec driver interact with this one?

This is what DT calls MFD (Multi Function Device) and I never knew what is the best way to represent it in our drivers.

How would an eventual codec driver interact with this one?

AFAICT, it's intended that the AC100 bits should be an all-in-one kind of driver, thus the codec driver would "attach" like the RTC does here; not actually having its own resources or anything to that effect, and sharing a context with the RTC.

linimon retitled this revision from Add ac100 driver to [new driver] allwinner/ac100: rtc and audio codec for a83t.Aug 2 2018, 10:27 PM