summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongmei Gou2018-05-31 16:02:23 -0500
committerHongmei Gou2018-06-01 15:11:55 -0500
commit367037539e1094b110e7f01ddd5ef0380342b600 (patch)
treea5b47a66f73fd5566689eba26596dc126de0549a
parent97cd8517d3d1d6a6bfa2d777e734a3752235131b (diff)
downloadpruss-lld-367037539e1094b110e7f01ddd5ef0380342b600.tar.gz
pruss-lld-367037539e1094b110e7f01ddd5ef0380342b600.tar.xz
pruss-lld-367037539e1094b110e7f01ddd5ef0380342b600.zip
sorte: firmware: master: fix the way of testing an active link using mdio
* re-check MDIO_PHY_CONFIG in the branching as link may not be initially active * compare with all the four bytes of ICSS_MDIO_LINK rather than b0, since MDIO_ALIVE supports all the 32 bits Signed-off-by: Hongmei Gou <a0271529@ti.com>
-rw-r--r--example/apps/sorte/firmware/src/master/firm_main.asm6
1 files changed, 2 insertions, 4 deletions
diff --git a/example/apps/sorte/firmware/src/master/firm_main.asm b/example/apps/sorte/firmware/src/master/firm_main.asm
index 7793ef0..fa4609f 100644
--- a/example/apps/sorte/firmware/src/master/firm_main.asm
+++ b/example/apps/sorte/firmware/src/master/firm_main.asm
@@ -135,12 +135,10 @@ firm_main:
135 135
136; starting with idle state 136; starting with idle state
137; test if there is an active link on the port using mdio interface 137; test if there is an active link on the port using mdio interface
138
139; test if there is an active link on the port using mdio interface
140 lbco &TEMP_REG_2.b0, ICSS_SHARED_RAM_CONST, MDIO_PHY_CONFIG_OFFSET, 1
141IDLE_WAIT_FOR_LINK_ACTIVE: 138IDLE_WAIT_FOR_LINK_ACTIVE:
139 lbco &TEMP_REG_2.b0, ICSS_SHARED_RAM_CONST, MDIO_PHY_CONFIG_OFFSET, 1
142 lbco &TEMP_REG_1, ICSS_MDIO_CONST, ICSS_MDIO_LINK, 4 140 lbco &TEMP_REG_1, ICSS_MDIO_CONST, ICSS_MDIO_LINK, 4
143 qbbc IDLE_WAIT_FOR_LINK_ACTIVE, TEMP_REG_1.b0, TEMP_REG_2.b0 141 qbbc IDLE_WAIT_FOR_LINK_ACTIVE, TEMP_REG_1, TEMP_REG_2.b0
144 142
145; check if enabled, enabling done at startup of pru firmware. 143; check if enabled, enabling done at startup of pru firmware.
146 lbco &TEMP_REG_1.b0, PRU0_DMEM_CONST, CTRL_REG_OFFSET , 1 144 lbco &TEMP_REG_1.b0, PRU0_DMEM_CONST, CTRL_REG_OFFSET , 1