[PATCH/RFT 4/6] can: rcar_canfd: Increase number of channels on R-Car Gen3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The CAN-FD Controller in the Renesas R-Car V3H2 (R8A77980A) SoC is very
similar to CAN-FD on other R-Car Gen3 SoCs, but supports a third
channel.

Commit e9ffa12e02e19339 ("can: rcar_canfd: Add rnc_field_width variable
to struct rcar_canfd_hw_info") removed the assumption of a maximum of
two channels on controllers using the R-Car Gen3 register layout.  Hence
add support for a third channel by increasing the maximum number of
channels on R-Car Gen3 to three.

Just like on R-Car Gen4, the applicable maximum numbers of channels is
enforced by SoC-specific rules in the DT bindings, and the "dtbs_check"
make target.

Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
 drivers/net/can/rcar/rcar_canfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/rcar/rcar_canfd.c b/drivers/net/can/rcar/rcar_canfd.c
index a9c5b4ac040bdc0a..cedc1a8b12bd07a1 100644
--- a/drivers/net/can/rcar/rcar_canfd.c
+++ b/drivers/net/can/rcar/rcar_canfd.c
@@ -715,7 +715,7 @@ static const struct rcar_canfd_hw_info rcar_gen3_hw_info = {
 	.rnc_field_width = 8,
 	.max_aflpn = 31,
 	.max_cftml = 15,
-	.max_channels = 2,
+	.max_channels = 3,
 	.postdiv = 2,
 	.shared_global_irqs = 1,
 	.ch_interface_mode = 0,
-- 
2.43.0





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux