Change spi pin register in source

Hello friends
I want to change the value 0x010000060 in the Openwrt source
I can do this after Make and install by devmem
But I want to do that in the source
How can I change this value? My device is u-7628

Not sure why I'm replying to an old thread, but I was just browsing the forums...

Looks like this is the pinctrl driver you're looking for:
target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch

The rt2880_pmx_group_enable() function is actually doing the programming. The "right" way to change those values is to configure your device tree (.dts / .dtsi source file) to have the right pin assignments. That might be target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi for you? You might adjust any pinctrl definitions in target/linux/ramips/dts/mt7628an.dtsi (for the SoC in general) and then reference them in your board-specific (u7628) device tree.