| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/gpio.h> |
| 4 | #include <baseboard/variants.h> |
| 5 | #include <gpio.h> |
| 6 | #include <soc/romstage.h> |
| 7 | |
| 8 | uint8_t mb_get_channel_disable_mask(void) |
| 9 | { |
| 10 | /* |
| 11 | * GPP_E19 High -> One RAM Chip |
| 12 | * GPP_E19 Low -> Two RAM Chip |
| 13 | */ |
| 14 | if (gpio_get(GPP_E19)) { |
| 15 | /* Disable all other channels except first two on each controller */ |
| 16 | return (BIT(2) | BIT(3)); |
| 17 | } |
| 18 | |
| 19 | return 0; |
| 20 | } |