Skip to content

Commit 9906164

Browse files
committed
Add sp140a
1 parent dffb431 commit 9906164

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/hal/ingenic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ static unsigned char omni_addrs[] = {0x6c, 0};
1515
static unsigned char onsemi_addrs[] = {0x20, 0};
1616
static unsigned char gc_addrs[] = {0x6e, 0x52, 0x42, 0};
1717
static unsigned char soi_addrs[] = {0x60, 0x80, 0};
18+
static unsigned char superpix_addrs[] = {0x78, 0};
1819

1920
static sensor_addr_t ingenic_possible_i2c_addrs[] = {
2021
{SENSOR_SONY, sony_addrs},
@@ -23,6 +24,7 @@ static sensor_addr_t ingenic_possible_i2c_addrs[] = {
2324
{SENSOR_OMNIVISION, omni_addrs},
2425
{SENSOR_GALAXYCORE, gc_addrs},
2526
{SENSOR_SOI, soi_addrs},
27+
{SENSOR_SUPERPIX, superpix_addrs},
2628
{0, NULL}};
2729

2830
typedef unsigned char uint8;

src/sensors.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,9 @@ static int detect_superpix_sensor(sensor_ctx_t *ctx, int fd,
844844
return false;
845845

846846
switch (res) {
847+
case 0x140a:
848+
sprintf(ctx->sensor_id, "SP%04x", res);
849+
return true;
847850
// Omnivision-SuperPix OV2735
848851
case 0x2735:
849852
sprintf(ctx->sensor_id, "OV%04x", res);

0 commit comments

Comments
 (0)