Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113 uboot 里面没有ccu ,该怎么去配置以太网时钟?

    其它全志芯片讨论区
    2
    4
    1856
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      captain LV 5 last edited by

      主控:T113-S3
      SDK:longan_sdk
      问题:如何在uboot 下配置以太网时钟?
      在uboot 下面配置以太网相关设备树时,发现只要加上这一句就会报错

        clocks = <&ccu CLK_BUS_EMAC0>, <&ccu CLK_EMAC0_25M>;
      

      推测是没有ccu 相关内容。
      uboot 下面,spi 配置也是注释了ccu相关内容的。

      spi0: spi@4025000 {
      	#address-cells = <1>;
      	#size-cells = <0>;
      	compatible = "allwinner,sun20i-spi";
      	device_type = "spi0";
      	reg = <0x0 0x04025000 0x0 0x300>;
      	//interrupts-extended = <&plic0 31 IRQ_TYPE_LEVEL_HIGH>;
      	//clocks = <&ccu CLK_PLL_PERIPH0>, <&ccu CLK_SPI0>, <&ccu CLK_BUS_SPI0>;
      	//clock-names = "pll", "mod", "bus";
      	//resets = <&ccu RST_BUS_SPI0>;
      };
      
      1 Reply Last reply Reply Quote Share 0
      • C
        captain LV 5 last edited by

        时钟好像可以在sun8iw20p1-clk.dtsi 文件里面取消掉注释,就能使用了。

         clocks = <&clk_gmac0_25m>;
        

        但是reset 这个脚,没有ccu ,该怎么配置呢?

         resets = <&ccu RST_BUS_EMAC0>;
        
        1 Reply Last reply Reply Quote Share 0
        • Y
          YterAA LV 7 last edited by

          有一个Patch加入了Uboot的以太网支持,具体可以到客户服务平台下载新版本

          1 Reply Last reply Reply Quote Share 0
          • C
            captain LV 5 last edited by

            @YterAA
            没有找到patch,但是根据这篇文章(如何使能D1-H/D1s uboot下的有线网卡?)进行修改,成功ping通了。
            有一点疑惑,为什么修改kernel 的设备树会对uboot产生影响?

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策