Skip to content

Commit

Permalink
iio: pressure: bmp280: Add support for BMP390
Browse files Browse the repository at this point in the history
Adds BMP390 device id to the supported ids on bmp380 sensor family

Signed-off-by: Angel Iglesias <[email protected]>
  • Loading branch information
angiglesias committed Aug 18, 2023
1 parent 9ca98fd commit b09cbf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/pressure/bmp280-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ static int bmp380_chip_config(struct bmp280_data *data)

static const int bmp380_oversampling_avail[] = { 1, 2, 4, 8, 16, 32 };
static const int bmp380_iir_filter_coeffs_avail[] = { 1, 2, 4, 8, 16, 32, 64, 128};
static const int bmp380_chip_ids[] = { BMP380_CHIP_ID };
static const int bmp380_chip_ids[] = { BMP380_CHIP_ID, BMP390_CHIP_ID };

const struct bmp280_chip_info bmp380_chip_info = {
.id_reg = BMP380_REG_ID,
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/pressure/bmp280.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
#define BMP180_CHIP_ID 0x55
#define BMP280_CHIP_ID 0x58
#define BME280_CHIP_ID 0x60
#define BMP390_CHIP_ID 0x60
#define BMP280_SOFT_RESET_VAL 0xB6

/* BMP280 register skipped special values */
Expand Down

0 comments on commit b09cbf9

Please sign in to comment.