Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Support power management optimisations in newer nf* firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed May 5, 2014
1 parent 37dff99 commit 8f729db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions driver-bitfury.c
Expand Up @@ -459,6 +459,7 @@ static bool nfu_detect_one(struct cgpu_info *bitfury, struct bitfury_info *info)
/* Set LED and PWR pins to output and high */
mcp->direction.pin[NFU_PIN_LED] = mcp->direction.pin[NFU_PIN_PWR_EN] = MCP2210_GPIO_OUTPUT;
mcp->value.pin[NFU_PIN_LED] = mcp->value.pin[NFU_PIN_PWR_EN] = MCP2210_GPIO_PIN_HIGH;
mcp->value.pin[NFU_PIN_PWR_EN0] = MCP2210_GPIO_PIN_LOW;

mcp->direction.pin[4] = MCP2210_GPIO_OUTPUT;
mcp->designation.pin[4] = MCP2210_PIN_CS;
Expand Down
1 change: 1 addition & 0 deletions driver-bitfury.h
Expand Up @@ -32,6 +32,7 @@ extern int opt_osm_led_mode;
#define NFU_PIN_LED 0
#define NFU_PIN_SCK_OVR 5
#define NFU_PIN_PWR_EN 6
#define NFU_PIN_PWR_EN0 7

#define SPIBUF_SIZE 16384
#define BITFURY_REFRESH_DELAY 100
Expand Down

0 comments on commit 8f729db

Please sign in to comment.