1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

- initialize SKU ids

- add debug code to check if firmware crashed
This commit is contained in:
Ralph Metzler 2016-10-10 00:18:37 +02:00
parent 4435efeab5
commit 6bf258b54c

View File

@ -698,6 +698,10 @@ static int read_signal_strength(struct dvb_frontend *fe, u16 *strength)
int stat; int stat;
u32 regData = 0; u32 regData = 0;
#if 0
if (!firmware_is_alive(state))
pr_info("FW dead!\n");
#endif
mutex_lock(&state->base->status_lock); mutex_lock(&state->base->status_lock);
HYDRA_DEMOD_STATUS_LOCK(state, state->demod); HYDRA_DEMOD_STATUS_LOCK(state, state->demod);
stat = read_register(state, (HYDRA_DMD_STATUS_INPUT_POWER_ADDR + stat = read_register(state, (HYDRA_DMD_STATUS_INPUT_POWER_ADDR +
@ -1639,7 +1643,7 @@ static int load_fw(struct mxl *state, struct mxl5xx_cfg *cfg)
static int validate_sku(struct mxl *state) static int validate_sku(struct mxl *state)
{ {
u32 padMuxBond, prcmChipId, prcmSoCId; u32 padMuxBond = 0, prcmChipId = 0, prcmSoCId = 0;
int status; int status;
u32 type = state->base->type; u32 type = state->base->type;