git: 13033a1549e0 - stable/13 - riscv: add iicbus and iicoc to GENERIC

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Mon, 16 May 2022 13:51:23 UTC
The branch stable/13 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=13033a1549e05e3a3f273b17d7da05fcf8861fc5

commit 13033a1549e05e3a3f273b17d7da05fcf8861fc5
Author:     Philip Paeps <philip@FreeBSD.org>
AuthorDate: 2021-11-01 05:16:27 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-05-16 13:34:04 +0000

    riscv: add iicbus and iicoc to GENERIC
    
    The iicoc driver supports the OpenCores I2C IP.  This is included in at
    least the SiFive "Unleashed" and "Unmatched" cores and probably others.
    
    Suggested by:   jrtc27
    
    (cherry picked from commit 91feb4f42075e2d7c8d6d50cd5faa651ab3a0e7d)
---
 sys/riscv/conf/GENERIC | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC
index 4ce3ffe059ba..7849ddb38485 100644
--- a/sys/riscv/conf/GENERIC
+++ b/sys/riscv/conf/GENERIC
@@ -193,6 +193,10 @@ device		bpf		# Berkeley packet filter
 options 	FDT
 makeoptions	MODULES_EXTRA+="dtb/sifive"
 
+# I2C support
+device		iicbus		# Bus support, required for iicoc below.
+device		iicoc		# OpenCores I2C controller support
+
 # SiFive device drivers
 device		fu740_pci_dw
 device		sifive_gpio