Author: manu
Date: Wed Dec 11 18:39:05 2019
New Revision: 355624
URL: https://svnweb.freebsd.org/changeset/base/355624

Log:
  arm64: rk3328: Add the *clk_peri_niu clocks
  
  Those clocks are always enable by default and are not really explained
  in the TRM but the reason we had them is that they have the periph clock
  as a parent and those parent should never be disable which can happen
  if we disable all the childs. The current childs are the sd/emmc/sdio clocks
  so the board will hang if we disable them.
  
  MFC after:    1 month

Modified:
  head/sys/arm64/rockchip/clk/rk3328_cru.c

Modified: head/sys/arm64/rockchip/clk/rk3328_cru.c
==============================================================================
--- head/sys/arm64/rockchip/clk/rk3328_cru.c    Wed Dec 11 18:36:07 2019        
(r355623)
+++ head/sys/arm64/rockchip/clk/rk3328_cru.c    Wed Dec 11 18:39:05 2019        
(r355624)
@@ -102,6 +102,8 @@ static struct rk_cru_gate rk3328_gates[] = {
        CRU_GATE(HCLK_SDMMC, "hclk_sdmmc", "hclk_peri", 0x24C, 0)
        CRU_GATE(HCLK_SDIO, "hclk_sdio", "hclk_peri", 0x24C, 1)
        CRU_GATE(HCLK_EMMC, "hclk_emmc", "hclk_peri", 0x24C, 2)
+       CRU_GATE(0, "hclk_peri_niu", "hclk_peri", 0x24C, 12)
+       CRU_GATE(0, "pclk_peri_niu", "hclk_peri", 0x24C, 13)
        CRU_GATE(HCLK_SDMMC_EXT, "hclk_sdmmc_ext", "hclk_peri", 0x24C, 15)
 };
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to