qmod: Set PIN_PRTPWR_OVERRIDE to output/low

This commit is contained in:
Harald Welte
2016-10-11 17:46:09 +02:00
parent 4e3b9a5140
commit 15e026ec34
2 changed files with 7 additions and 0 deletions

View File

@@ -41,6 +41,8 @@
#define PINS_CARDSIM { PIN_SET_USIM1_PRES, PIN_SET_USIM2_PRES }
#define PIN_PRTPWR_OVERRIDE {PIO_PA8, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}
#define SIMTRACE_VENDOR_ID 0x1d50
#define SIMTRACE_PRODUCT_ID 0x60e3 /* FIXME */
#define USB_VENDOR_ID SIMTRACE_VENDOR_ID

View File

@@ -164,6 +164,11 @@ static const unsigned int __eeprom_bin_len = 256;
PIO_Configure(&pin_hub_rst, 1);
i2c_pin_init();
/* set PIN_PRTPWR_OVERRIDE to output-low to avoid the internal
* pull-up on the input to keep SIMTRACE12 alive */
static const Pin pin_hubpwr_override = PIN_PRTPWR_OVERRIDE;
PIO_Configure(&pin_hubpwr_override, 1);
/* wait */
volatile int v;
/* 440ns per cycle here */