PrawnOS icon indicating copy to clipboard operation
PrawnOS copied to clipboard

c100p support

Open ghost opened this issue 6 years ago • 0 comments

I try to port the c100p scripts from kmkeen to work with prawnOS. To do so, i modded the kernel config, see my latest commits.

CONFIG_IIO_CROS_EC_SENSORS=y // not set in original config CONFIG_IIO_CROS_EC_SENSORS_LID_ANGLE=y

Afterwards the c100p accel is accessible correctly:

./devices/platform/ff110000.spi/spi_master/spi0/spi0.0/cros-ec-dev.1.auto/cros-ec-accel-legacy.3.auto/iio:device1/in_accel_x_calibbias ./devices/platform/ff110000.spi/spi_master/spi0/spi0.0/cros-ec-dev.1.auto/cros-ec-accel-legacy.3.auto/iio:device1/in_accel_z_raw ./devices/platform/ff110000.spi/spi_master/spi0/spi0.0/cros-ec-dev.1.auto/cros-ec-accel-legacy.3.auto/iio:device1/in_accel_y_calibbias ./devices/platform/ff110000.spi/spi_master/spi0/spi0.0/cros-ec-dev.1.auto/cros-ec-accel-legacy.3.auto/iio:device1/in_accel_x_raw

I would also like to compile ec to support changing the charging current so it can be charged from solar panel or usb-boost adapter.

As compiling is fast, maybe support for that in the install script would be welcome.

ghost avatar Mar 06 '20 18:03 ghost