Date:2011-06-12 12:46:26 (12 years 9 months ago)
Author:Werner Almesberger
Commit:39c37258c5e3ba69c2f7d06c9fb49d8d0ca27761
Message:prod/: P_ON test for atusb can't work as intended ... because we're not in P_ON

The explanation is simple: reset from any state but P_ON throws us
back into TRX_OFF, not P_ON. That's why the P_ON test only worked
predictably after power-cycling the board.

- prod/atusb (gpio_usb): removed P_ON test
- prod/atben (gpio_ben): added comment to P_ON test explaining why
it works in this case
Files: prod/atben (1 diff)
prod/atusb (2 diffs)

Change Details

prod/atben
1515#
1616
1717    # P_ON state (after reset; transceiver pull-up/downs active)
18    # (Note: this only works on atben because we power-cycle to reset)
1819
1920    step "GPIO scan (P_ON)"
2021    cmd "$LOCAL_EXEC \"atrf-gpio -d $LOCAL_DUT -p \
prod/atusb
3939
4040gpio_usb()
4141{
42    # P_ON state (after reset; transceiver pull-up/downs active)
43
44#
45# BBBBBBBB CCCCCCCC DDDDDDDD
46# 01234567 01234567 01234567
47#
48# -xxxS-L- -x-----n InMM-S--
49# T E R RSIO C
50#
51# Pull in P_ON v ^ -^-v v
52#
53
54if false; then
55    step "GPIO scan (P_ON)"
56    cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \
57        HHHHoHxH.HxHxHxHh.ohzoHoHH '# reset state (H)' \
58        HHHH0HxH.HxHxHxHh.ohzoHoHH '# test SLP_TR (0)' \
59        HHHHoH0H.HxHxHxHh.ohzoHoHH '# test LED (0)' \
60        HHHHoHxH.HxHxHxHh.LhzoHoHH '# test IRQ_RF (0)' \
61        HHHHoHxH.HxHxHxHh.o0zoHoHH '# test nSEL (0)' \
62        HHHHoHxH.HxHxHxHh.ohz0HoHH '# test MOSI (0)' \
63        HHHHoHxH.HxHxHxHh.ohzoH0HH '# test SCLK (0)' \
64        0000o0x0.0x0x0x0h.ohzo0o00 '# reset state (0)' \
65        000010x0.0x0x0x0h.ohzo0o00 '# test SLP_TR (1)' \
66        0000o010.0x0x0x0h.ohzo0o00 '# test LED (1)' \
67        0000o0x0.0x0x0x0h.o1zo0o00 '# test nSEL (1)' \
68        0000o0x0.0x0x0x0h.ohz10o00 '# test MOSI (1)' \
69        0000o0x0.0x0x0x0h.ohzo0100 '# test SCLK (1)'"
70    doit
71fi
72
7342    # TRX_OFF state (transceiver pull-up/downs inactive)
7443
7544    # -xxxS-L- -x-----n InMM-S--
...... 
10978    # T E R RSIO C
11079
11180    step "GPIO scan (INT)"
112    cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \
81    cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT \
11382        xxxxxxxx.xxxxxxxx.oxxxxxxx '# reset state' \
11483        0x04=1 '# IRQ_POLARITY = 1' \
11584        xxxxxxxx.xxxxxxxx.hxxxxxxx '# test INT (1)' \

Archive Download the corresponding diff file



interactive