- Add compatibility strings for Unmatched.
- Add support for building driver as a module.
- Fix repeated start.
Details
Testing on a SiFive Unmatched.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 42468 Build 39356: arc lint + arc unit
Event Timeline
sys/dev/iicbus/iicoc.c | ||
---|---|---|
152 | Use bool | |
sys/dev/iicbus/iicoc_fdt.c | ||
59 | sifive,i2c0? Until devmatch is able to see secondary compatible strings in the device tree, the SoC-specific compats need to be here if you want the module to be auto-loaded (though maybe this will want to just be compiled into the GENERIC kernel?), but we should still have the generic one too. | |
sys/modules/i2c/controllers/Makefile | ||
8 | Does this need to be limited to RISC-V? The IP isn't tied to a specific core, unlike imcsmb which is Intel's. | |
sys/modules/i2c/controllers/iicoc/Makefile | ||
2 | I don't think we're adding this for new files? |
sys/dev/iicbus/iicoc_fdt.c | ||
---|---|---|
59 | I was on the fence between putting this in GENERIC or creating a module. But now I'm leaning towards putting it in GENERIC. I would also be inclined to drop the module if we did that. What do you think? | |
sys/modules/i2c/controllers/Makefile | ||
8 | The core is definitely not riscv specific but I thought it would save resources to only build it for riscv. If it shows up in other architectures, we can change it later. |
Looks good to me. Thanks!
I think this is fine in GENERIC. I would prefer this to a module.