summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>2018-03-20 20:42:17 +0900
committerHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>2018-03-20 20:48:18 +0900
commit1d9792fbd27f901df1f9f63cad673cfdff33a6c2 (patch)
treec7bbb63d7f17581838032f45f78ca03e867d90d7 /binding
parent5262f5ee41e91d564e4b3447da0a1cd625d351eb (diff)
binding: update kingfisher i2c bus number
The Si4689 radio chip I2C bus number has shifted from i2c-11 to i2c-12. This updates I2C bus number in SI scripts accordingly. Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/radio_impl_kingfisher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/binding/radio_impl_kingfisher.c b/binding/radio_impl_kingfisher.c
index 069ca10..642b354 100644
--- a/binding/radio_impl_kingfisher.c
+++ b/binding/radio_impl_kingfisher.c
@@ -140,10 +140,10 @@ static int kf_init(void)
return -1;
}
- fprintf(stderr, "Using FM Bandplan: %s\n", known_fm_band_plans[bandplan].name);
+ fprintf(stderr, "Using FM Bandplan [KF]: %s\n", known_fm_band_plans[bandplan].name);
current_frequency = kf_get_min_frequency(BAND_FM);
sprintf(cmd,
- "%s /dev/i2c-11 0x65 -b fm -p %s -t %d -u %d -c %d",
+ "%s /dev/i2c-12 0x65 -b fm -p %s -t %d -u %d -c %d",
SI_CTL,
known_fm_band_plans[bandplan].name,
scan_valid_snr_threshold,
@@ -209,7 +209,7 @@ static void kf_set_frequency(uint32_t frequency)
return;
kf_scan_stop();
- sprintf(cmd, "%s /dev/i2c-11 0x65 -c %d", SI_CTL, frequency / 1000);
+ sprintf(cmd, "%s /dev/i2c-12 0x65 -c %d", SI_CTL, frequency / 1000);
rc = system(cmd);
if(rc == 0)
current_frequency = frequency;
@@ -316,7 +316,7 @@ static void kf_scan_start(radio_scan_direction_t direction,
return;
scanning = true;
- sprintf(cmd, "%s /dev/i2c-11 0x65 -l %s", SI_CTL, direction == SCAN_FORWARD ? "up" : "down");
+ sprintf(cmd, "%s /dev/i2c-12 0x65 -l %s", SI_CTL, direction == SCAN_FORWARD ? "up" : "down");
fp = popen(cmd, "r");
if(fp == NULL) {
fprintf(stderr, "Could not run: %s!\n", cmd);