Some drivers for Mediatek.

From: Priit Trees <trees_at_neti.ee>
Date: Wed, 19 May 2021 20:03:16 UTC
Hi,

I wrote my first drivers for FreeBSD. I don’t know how good quality they are. I'm not a programmer.  But the drivers work when I test them on my development boards. Maybe someone is interested in them.

MMC for  MT7620,7621,76[2|8]8
https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_mmc <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_mmc>

IIC for MT7620, MT7621, MT76[2|8]8, RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376> 
https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_iic>

GDMA for MT7620, MT7621, MT76[2|8]8, RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376> and maybe some more devices
https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_gdma>

Simple I2S for MT76[2|8]8 and RT5350 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376>. Maybe future i can tested it on  MT7620, MT7621 <https://github.com/freebsd/freebsd-src/commit/16c366c73897aad963e817f934d14756bbe9b376>. I use SoC audio framework https://reviews.freebsd.org/D27830 <https://reviews.freebsd.org/D27830> and patch it for use it with DMA channal. It not good patch but it work for me.
https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898ad7dca8c15d1f <https://github.com/freebsd/freebsd-src/commit/17f9656d45497ca32b0ea070898ad7dca8c15d1f>
https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s <https://github.com/freebsd/freebsd-src/compare/main...priittrees:mediatek_i2s>

and Simple WM8960 Stereo CODEC <https://github.com/freebsd/freebsd-src/commit/0042c6e4eea742498c26f603f94f34fd360308fa>
https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec <https://github.com/freebsd/freebsd-src/compare/main...priittrees:wm8960_codec>

Best Regard
Priit Trees