<indy>
hi all, i'm playing with pcie endpoint on beaglebine ai64 and i would like to set following:
<indy>
Capabilities: [150 v1] Device Serial Number 00-00-00-00-00-00-00-00
minashamb has quit [Remote host closed the connection]
minashamb has joined #linux-ti
florian has joined #linux-ti
goliath has joined #linux-ti
florian_kc has joined #linux-ti
florian has quit [Ping timeout: 252 seconds]
florian_kc is now known as florian
ikarso has joined #linux-ti
florian has quit [Quit: Ex-Chat]
florian has joined #linux-ti
tomba has joined #linux-ti
sv-ti has joined #linux-ti
<sv-ti>
indy, regarding setting the device serial number for pcie (PCIE1 instance), the registers at addresses 0x0D800154 and 0x0D800158 can be written to via devmem2 or setpci utility. 0x0D800154 corresponds to the lower 32 bits of device serial number and 0x0D800158 corresponds to the upper 32 bits of device serial number.
<indy>
sv-ti thanks a lot, i completely forgot of setpci
<indy>
sv-ti, well setpci will not work probably as i have pcie controller in endpoint mode
<sv-ti>
indy, devmem2 can be used in that case. The reset value of those registers is all zeros. You could use devmem2 to set them to a custom value as follows: