remotectl_button = devm_kzalloc(&pdev->dev,num*sizeof(struct...remotectl_button) { pr_err("failed to malloc remote button memory\n"); ... } input = devm_input_allocate_device...cpumask_clear(&cpumask); cpumask_set_cpu(cpu_id, &cpumask); irq_set_affinity(irq, &cpumask); ret...
此外,各个其他的HW block在驱动之前也需要先配置其引脚复用功能,因此,这些device(我们称pin controller是host,那么这些使用pin controller进行引脚配置的device叫做client device)也需要在它自己的device tree node中描述pin control的相关内容 1、S3C2416 pin controller DTS结构 下面的伪代码描述了S3C2416 pin controller ...
Port A(GPA) : 25-output port Port B(GPB) : 9-input/output port Port C(GPC) : 16-input/output port Port D(GPD) : 16-input/output port Port E(GPE) : 16-input/output port Port F(GPF) : 8-input/output port Port G(GPG) : 8-input/output port Port H(GPH) : 15-input/output...