Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In ./board/sunxi/board.c, changed CONFIG_MACPWR to:
- #ifdef CONFIG_MACPWR
- printf("Enter macpwr: \n");
- macpwr_pin = sunxi_name_to_gpio(CONFIG_MACPWR);
- ret = gpio_request(macpwr_pin, "macpwr");
- if (ret) {
- printf("Error setting macpwr pin: '%s', err %d\n",
- CONFIG_MACPWR, ret);
- } else {
- gpio_direction_output(macpwr_pin, 1);
- }
- #endif
- Results:
- Enter macpwr:
- Error setting macpwr pin: 'PD6', err -2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement