Sync with latest version from myc
Clean up code
More cleanup
Add a new file for btcg hardware control
Refactor and split chip selector
Config SPI outside spi-context
Remove unused code
Extract sw reset method
One place to reset and set pll
Remove unused code
Commit unused code
Remove unused code
Comment out redundant code
Refactor job writting
Remove unused code
Remove unused code.
Add a macro
Clean code
Refactor nonce reading
Clean code