diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2020-08-12 09:52:12 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2020-08-12 09:52:12 +0000 |
commit | 012fba460ac07b36b3e756a2be41529b08c2c214 (patch) | |
tree | 0cf620e8ab29073eb71c36decd59895760a52be1 | |
parent | 2ad1660ae4cd23b976ec74296f8608792833016c (diff) |
aw_cir: add support for allwinner,sun6i-a31-ir (found, e.g., on h3)
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=364146
-rw-r--r-- | sys/arm/allwinner/aw_cir.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arm/allwinner/aw_cir.c b/sys/arm/allwinner/aw_cir.c index 1531e2fe9d47..6bd41b74315f 100644 --- a/sys/arm/allwinner/aw_cir.c +++ b/sys/arm/allwinner/aw_cir.c @@ -134,8 +134,11 @@ __FBSDID("$FreeBSD$"); #define INV_CODE_MASK 0xff00ff00 #define VALID_CODE_MASK 0x00ff0000 -#define A10_IR 1 -#define A13_IR 2 +enum { + A10_IR = 1, + A13_IR, + A31_IR, +}; #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[] = { { "allwinner,sun4i-a10-ir", A10_IR }, { "allwinner,sun5i-a13-ir", A13_IR }, + { "allwinner,sun6i-a31-ir", A31_IR }, { NULL, 0 } }; @@ -414,6 +418,7 @@ aw_ir_attach(device_t dev) sc->fifo_size = 16; break; case A13_IR: + case A31_IR: sc->fifo_size = 64; break; } |