aw_cir: add support for allwinner,sun6i-a31-ir (found, e.g., on h3)
MFC after: 1 week
This commit is contained in:
parent
2ad1660ae4
commit
012fba460a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364146
@ -134,8 +134,11 @@ __FBSDID("$FreeBSD$");
|
|||||||
#define INV_CODE_MASK 0xff00ff00
|
#define INV_CODE_MASK 0xff00ff00
|
||||||
#define VALID_CODE_MASK 0x00ff0000
|
#define VALID_CODE_MASK 0x00ff0000
|
||||||
|
|
||||||
#define A10_IR 1
|
enum {
|
||||||
#define A13_IR 2
|
A10_IR = 1,
|
||||||
|
A13_IR,
|
||||||
|
A31_IR,
|
||||||
|
};
|
||||||
|
|
||||||
#define AW_IR_RAW_BUF_SIZE 128
|
#define AW_IR_RAW_BUF_SIZE 128
|
||||||
|
|
||||||
@ -158,6 +161,7 @@ static struct resource_spec aw_ir_spec[] = {
|
|||||||
static struct ofw_compat_data compat_data[] = {
|
static struct ofw_compat_data compat_data[] = {
|
||||||
{ "allwinner,sun4i-a10-ir", A10_IR },
|
{ "allwinner,sun4i-a10-ir", A10_IR },
|
||||||
{ "allwinner,sun5i-a13-ir", A13_IR },
|
{ "allwinner,sun5i-a13-ir", A13_IR },
|
||||||
|
{ "allwinner,sun6i-a31-ir", A31_IR },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -414,6 +418,7 @@ aw_ir_attach(device_t dev)
|
|||||||
sc->fifo_size = 16;
|
sc->fifo_size = 16;
|
||||||
break;
|
break;
|
||||||
case A13_IR:
|
case A13_IR:
|
||||||
|
case A31_IR:
|
||||||
sc->fifo_size = 64;
|
sc->fifo_size = 64;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user