Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: xtfpga: set ethoc clock frequency

Connect xtfpga board ethernet MAC to the clock in the DTS. Set up MAC
base frequency in the platform data in case of build w/o CONFIG_OF.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+2
+1
arch/xtensa/boot/dts/xtfpga.dtsi
··· 57 57 reg = <0xfd030000 0x4000 0xfd800000 0x4000>; 58 58 interrupts = <1 1>; /* external irq 1 */ 59 59 local-mac-address = [00 50 c2 13 6f 00]; 60 + clocks = <&osc>; 60 61 }; 61 62 };
+1
arch/xtensa/platforms/xtfpga/setup.c
··· 290 290 * knows whether they set it correctly on the DIP switches. 291 291 */ 292 292 pr_info("XTFPGA: Ethernet MAC %pM\n", ethoc_pdata.hwaddr); 293 + ethoc_pdata.eth_clkfreq = *(long *)XTFPGA_CLKFRQ_VADDR; 293 294 294 295 return 0; 295 296 }