Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. In ./board/sunxi/board.c, changed CONFIG_MACPWR to:
  2.  
  3. #ifdef CONFIG_MACPWR
  4. printf("Enter macpwr: \n");
  5. macpwr_pin = sunxi_name_to_gpio(CONFIG_MACPWR);
  6. ret = gpio_request(macpwr_pin, "macpwr");
  7. if (ret) {
  8. printf("Error setting macpwr pin: '%s', err %d\n",
  9. CONFIG_MACPWR, ret);
  10. } else {
  11. gpio_direction_output(macpwr_pin, 1);
  12. }
  13. #endif
  14.  
  15. Results:
  16.  
  17. Enter macpwr:
  18. Error setting macpwr pin: 'PD6', err -2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement