linux: Update i2c.c (#5295)

Similarly to commit 8cf1b512 for SPI, the Rpi4 has more i2c busses to offer
This change allows klipper to use up to I2c bus 6
/boot/configtxt 
dtparam=i2c_arm=on
dtoverlay=i2c6

and 

pi@fluiddpi:~ $ ls -1 /dev/i2c*
/dev/i2c-1
/dev/i2c-6

Signed-off-by: Sylvain Dansereau <brutus_dansereau@hotmail.com>
This commit is contained in:
Blinker73 2022-03-14 14:24:27 -04:00 committed by GitHub
parent 082d773e2e
commit df79893dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#include "internal.h" // report_errno #include "internal.h" // report_errno
#include "sched.h" // sched_shutdown #include "sched.h" // sched_shutdown
DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 2); DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 7);
struct i2c_s { struct i2c_s {
uint32_t bus; uint32_t bus;