mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
V4L/DVB (11891): Siano: smscore - bind the GPIO SMS protocol
Bind SMS protocol commands to the GPIO commands Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
6675167cab
commit
34601caa64
1 changed files with 20 additions and 0 deletions
|
@ -352,6 +352,9 @@ int smscore_register_device(struct smsdevice_params_t *params,
|
||||||
init_completion(&dev->init_device_done);
|
init_completion(&dev->init_device_done);
|
||||||
init_completion(&dev->reload_start_done);
|
init_completion(&dev->reload_start_done);
|
||||||
init_completion(&dev->resume_done);
|
init_completion(&dev->resume_done);
|
||||||
|
init_completion(&dev->gpio_configuration_done);
|
||||||
|
init_completion(&dev->gpio_set_level_done);
|
||||||
|
init_completion(&dev->gpio_get_level_done);
|
||||||
init_completion(&dev->ir_init_done);
|
init_completion(&dev->ir_init_done);
|
||||||
|
|
||||||
/* Buffer management */
|
/* Buffer management */
|
||||||
|
@ -1051,6 +1054,23 @@ void smscore_onresponse(struct smscore_device_t *coredev,
|
||||||
case MSG_SMS_SLEEP_RESUME_COMP_IND:
|
case MSG_SMS_SLEEP_RESUME_COMP_IND:
|
||||||
complete(&coredev->resume_done);
|
complete(&coredev->resume_done);
|
||||||
break;
|
break;
|
||||||
|
case MSG_SMS_GPIO_CONFIG_EX_RES:
|
||||||
|
sms_debug("MSG_SMS_GPIO_CONFIG_EX_RES");
|
||||||
|
complete(&coredev->gpio_configuration_done);
|
||||||
|
break;
|
||||||
|
case MSG_SMS_GPIO_SET_LEVEL_RES:
|
||||||
|
sms_debug("MSG_SMS_GPIO_SET_LEVEL_RES");
|
||||||
|
complete(&coredev->gpio_set_level_done);
|
||||||
|
break;
|
||||||
|
case MSG_SMS_GPIO_GET_LEVEL_RES:
|
||||||
|
{
|
||||||
|
u32 *msgdata = (u32 *) phdr;
|
||||||
|
coredev->gpio_get_res = msgdata[1];
|
||||||
|
sms_debug("MSG_SMS_GPIO_GET_LEVEL_RES gpio level %d",
|
||||||
|
coredev->gpio_get_res);
|
||||||
|
complete(&coredev->gpio_get_level_done);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case MSG_SMS_START_IR_RES:
|
case MSG_SMS_START_IR_RES:
|
||||||
complete(&coredev->ir_init_done);
|
complete(&coredev->ir_init_done);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue