Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarlor authored Dec 27, 2018
1 parent b060d65 commit d3188dd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ vim Makefile
make cp
```

4. Add board-level support code to the appropriate place.
4. Add board-level support code to the appropriate place
```bash
vim arch/arm/plat-s5p4418/realarm/device.c
```
Expand All @@ -42,12 +42,11 @@ static struct i2c_board_info __initdata ms561101ba_i2c_bdi = {
#endif
```

6. Modify the kernel configuration file for ms5611
5. Modify the kernel configuration file for ms5611, and add the code to the appropriate place
```bash
vim drivers/hwmon/Kconfig
```

7. Add the code in the appropriate place
```c
config SENSORS_MS561101BA
tristate "MS5611-01BA03 Barometric Pressure Sensor"
Expand All @@ -59,25 +58,23 @@ config SENSORS_MS561101BA
If unsure, say N.
```

8. Edit Makefile
6. Edit Makefile for add ms5611 driver module
```bash
vim drivers/hwmon/Makefile
```

9. Add ms5611 driver module
```c
obj-$(CONFIG_SENSORS_MS561101BA) += ms561101ba.o
```

10. Configure the kernel to use this driver
1. Open config menu
7. Configure the kernel to use this driver
1. Open config menu for selest required submodule
```bash
make menuconfig
```

2. Open the required submodule

```c
Device Drivers -> Hardware Monitoring support -> MS5611-01BA03 Barometric Pressure Sensor
```
3. Save config
2. Save config

0 comments on commit d3188dd

Please sign in to comment.