ypr0: Add kernel module to required support fm radio.

To support fm radio a kernel module was written. This module is added to
the patched firmware that loads Rockbox. It's pre-compiled but its source
archive provided.

The kernel module provides raw-access to the built-in si4709 radio chip.
Our existing si 47xx drivers can be re-used this way.

The module itself was written Lorenzo Miori, I only integrated it
into the tree.

Change-Id: I6205d28a505d57791eaeb627e6856b9a1eaeaeaa
This commit is contained in:
Thomas Martitz 2012-05-28 19:31:46 +02:00
parent eb027788cf
commit 9c33f93c1c
4 changed files with 10 additions and 1 deletions

View file

@ -10,3 +10,6 @@ After that, R0.ROM is patched and can load Rockbox.
rockbox.sh is a script to put into rockbox.zip. It's a small loader script rockbox.sh is a script to put into rockbox.zip. It's a small loader script
that sets stuff up. that sets stuff up.
files/lib/modules/si4709.ko is a replacement kernel module for fm radio support,
its source code is packaged in ./si4709.7z.

Binary file not shown.

View file

@ -1,4 +1,3 @@
#!/bin/sh
###################################################################### ######################################################################
# __________ __ ___. # __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___ # Open \______ \ ____ ____ | | _\_ |__ _______ ___
@ -44,6 +43,13 @@ echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
mount --bind /mnt/media0/.rockbox /.rockbox mount --bind /mnt/media0/.rockbox /.rockbox
mount --bind /mnt/media0/Playlists /Playlists mount --bind /mnt/media0/Playlists /Playlists
# replace Samsung's si470x.ko with our si4709.ko to support fm radio
if [ -e /lib/modules/si4709.ko ]
then
rmmod /lib/modules/si470x.ko
insmod /lib/modules/si4709.ko
fi
MAINFILE="/mnt/media0/.rockbox/rockbox" MAINFILE="/mnt/media0/.rockbox/rockbox"
MAINFILE_ARGV='' MAINFILE_ARGV=''
MAINFILE_REDIRECT='>/dev/null 2>&1' MAINFILE_REDIRECT='>/dev/null 2>&1'

BIN
utils/ypr0tools/si4709.7z Normal file

Binary file not shown.