mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Samsung YP-R0/YP-R1: use Linux i2c-dev for radio chip access
Linux offers the high-level i2c-dev driver to directly access the i2c bus(ses) on the system. This system device is used to get rid of the (rather silly) radio chip kernel module for ypr0 target and correctly enables radio access also for the ypr1 target. fm-radio chip is located on i2c-0 bus on the ypr0 target while it is located on i2c-1 bus on the ypr1 target. Power-up (RST) pin is also handled for both targets, which is wired to another GPIO of the i.MX 37 platform. Additionally, this patch simplifies the RDS low-level handling by exploiting the Si4709 debug interface which comes with a mutex protection as free bonus. Change-Id: I839282bec4a27ad0ad8403c5a8dd86963b77e1bf
This commit is contained in:
parent
b1c72afd4d
commit
03e6cbec8f
5 changed files with 145 additions and 108 deletions
|
|
@ -23,7 +23,6 @@
|
|||
#ifndef __RADIO_YPR0_H__
|
||||
#define __RADIO_YPR0_H__
|
||||
|
||||
#include "si4709.h"
|
||||
#include "stdint.h"
|
||||
#include "rds.h"
|
||||
#include "si4700.h"
|
||||
|
|
@ -33,4 +32,4 @@ void radiodev_close(void);
|
|||
void si4709_write_reg(int addr, uint16_t value);
|
||||
uint16_t si4709_read_reg(int addr);
|
||||
|
||||
#endif /*__RADIO-YPR0_H__*/
|
||||
#endif /*__RADIO-YPR0_H__*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue