Skip to content

Commit

Permalink
linux: Allow for more i2c buses
Browse files Browse the repository at this point in the history
Similar to commit df79893, this allows klipper to use up to
/dev/i2c-14. Similar to before, this limit is arbitrary.

This is required for some other SoCs, which have even
more i2c buses available, e.g. the rk3399:

$ ls -1 /dev/i2c-*
/dev/i2c-0
/dev/i2c-3
/dev/i2c-7

Signed-off-by: Carl Richard Theodor Schneider <[email protected]>
  • Loading branch information
CRTified authored and KevinOConnor committed Mar 21, 2024
1 parent 40728e9 commit d904334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "internal.h" // report_errno
#include "sched.h" // sched_shutdown

DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 7);
DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 15);

struct i2c_s {
uint32_t bus;
Expand Down

0 comments on commit d904334

Please sign in to comment.