From 03e6cbec8fb23c02cb832194c27b055d8989c8e3 Mon Sep 17 00:00:00 2001 From: Lorenzo Miori Date: Wed, 26 Apr 2017 21:16:12 +0200 Subject: 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 --- firmware/target/hosted/samsungypr/radio-ypr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/target/hosted/samsungypr/radio-ypr.h') diff --git a/firmware/target/hosted/samsungypr/radio-ypr.h b/firmware/target/hosted/samsungypr/radio-ypr.h index 13bcb6dc72..15aeb526ef 100644 --- a/firmware/target/hosted/samsungypr/radio-ypr.h +++ b/firmware/target/hosted/samsungypr/radio-ypr.h @@ -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__*/ \ No newline at end of file +#endif /*__RADIO-YPR0_H__*/ -- cgit v1.2.3