Skip to content

Commit

Permalink
adapting spi to jetpack6
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Jul 29, 2024
1 parent 48f5584 commit 6192af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2614,7 +2614,7 @@ int spiOpen(unsigned spiChan, unsigned speed, unsigned mode, unsigned cs_delay,
pin_tracker |= (1 << 31);
}

if (spiChan == 2) {
if (spiChan == 1 || spiChan == 2) {
pin37->CNF[0] |= 0x00000003;
*pinmux37 = 0x00000400;
*pincfg37 = CFGO_OUT;
Expand Down

0 comments on commit 6192af9

Please sign in to comment.