Skip to content

Commit

Permalink
cuatro: disable SOM reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Aug 23, 2024
1 parent e53c802 commit 30d0434
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions board/boards/cuatro.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ void cuatro_set_fan_enabled(bool enabled) {
set_gpio_output(GPIOD, 3, !enabled);
}

void cuatro_set_bootkick(BootState state) {
set_gpio_output(GPIOA, 0, state != BOOT_BOOTKICK);
// only use if we have to
//set_gpio_output(GPIOC, 12, state != BOOT_RESET);
}

void cuatro_init(void) {
red_chiplet_init();

Expand All @@ -85,8 +91,7 @@ void cuatro_init(void) {
set_gpio_pullup(GPIOC, 2, PULL_DOWN);

// SOM bootkick + reset lines
tres_set_bootkick(BOOT_BOOTKICK);
set_gpio_mode(GPIOC, 12, MODE_OUTPUT);
cuatro_set_bootkick(BOOT_BOOTKICK);

// SOM debugging UART
gpio_uart7_init();
Expand Down Expand Up @@ -130,6 +135,6 @@ board board_cuatro = {
.set_fan_enabled = cuatro_set_fan_enabled,
.set_ir_power = tres_set_ir_power,
.set_siren = unused_set_siren,
.set_bootkick = tres_set_bootkick,
.set_bootkick = cuatro_set_bootkick,
.read_som_gpio = tres_read_som_gpio
};

0 comments on commit 30d0434

Please sign in to comment.