|
3 | 3 | BAD card acts like there is no card (logs `BAD from cold boot` vs `no card
|
4 | 4 | and Card Detect tied to ground` are the same in terms of command flow)
|
5 | 5 |
|
6 |
| -Results of below test are the same: GOOD appears in bootmenu after coldboot, BAD doesn't. |
| 6 | +Results of below test are the same: GOOD appears in bootmenu after coldboot, |
| 7 | +BAD doesn't. |
7 | 8 |
|
8 | 9 | SDHC registers values in release v4.0.1.1:
|
9 | 10 |
|
10 |
| -``` |
11 |
| - pci_write_config32(dev, 0xA4, 0x21FE32B2); //0b 0010 0001 1101 1110 0011 0010 1011 0010 |
12 |
| - pci_write_config32(dev, 0xA8, 0x00000070); //0b 0000 0000 0000 0000 0000 0000 0111 0000 |
13 |
| - pci_write_config32(dev, 0xB0, 0x01180C01); //0b 0000 0001 0001 1000 0000 1100 0000 0001 |
14 |
| - pci_write_config32(dev, 0xD0, 0x0000078B); //0b 0000 0000 0000 0000 0000 0111 1000 1011 |
15 |
| -``` |
| 11 | + ``` |
| 12 | + pci_write_config32(dev, 0xA4, 0x21FE32B2); //0b 0010 0001 1101 1110 0011 0010 1011 0010 |
| 13 | + pci_write_config32(dev, 0xA8, 0x00000070); //0b 0000 0000 0000 0000 0000 0000 0111 0000 |
| 14 | + pci_write_config32(dev, 0xB0, 0x01180C01); //0b 0000 0001 0001 1000 0000 1100 0000 0001 |
| 15 | + pci_write_config32(dev, 0xD0, 0x0000078B); //0b 0000 0000 0000 0000 0000 0111 1000 1011 |
| 16 | + ``` |
16 | 17 |
|
17 | 18 | 1. Change from `Removable card slot` to `Embedded slot for one device`
|
18 | 19 |
|
19 |
| - pci_write_config32(dev, 0xA4, 0x61FE32B2); //0b 0110 0001 1111 1110 0011 0010 1011 0010 |
| 20 | + ``` |
| 21 | + pci_write_config32(dev, 0xA4, 0x61FE32B2); //0b 0110 0001 1111 1110 0011 0010 1011 0010 |
| 22 | + ``` |
20 | 23 |
|
21 | 24 | 2. Disable: Suspend/resume support, DMA support, High speed support, ADMA
|
22 | 25 | support, ADMA2 support, MMC8-bit support
|
23 | 26 |
|
24 |
| - pci_write_config32(dev, 0xA4, 0x210232B2); //0b 0010 0001 0000 0010 0011 0010 1011 0010 |
| 27 | + ``` |
| 28 | + pci_write_config32(dev, 0xA4, 0x210232B2); //0b 0010 0001 0000 0010 0011 0010 1011 0010 |
| 29 | + ``` |
| 30 | + |
25 | 31 |
|
26 | 32 | 3. Combination of 1. and 2. (disabled features and `embedded slot`)
|
27 | 33 |
|
28 |
| - pci_write_config32(dev, 0xA4, 0x610232B2); //0b 0110 0001 0000 0010 0011 0010 1011 0010 |
| 34 | + ``` |
| 35 | + pci_write_config32(dev, 0xA4, 0x610232B2); //0b 0110 0001 0000 0010 0011 0010 1011 0010 |
| 36 | + ``` |
29 | 37 |
|
30 | 38 | 4. Disabled features and `Shared Bus Slot` instead:
|
31 | 39 |
|
32 |
| - pci_write_config32(dev, 0xA4, 0xA10232B2); //0b 1010 0001 0000 0010 0011 0010 1011 0010 |
| 40 | + ``` |
| 41 | + pci_write_config32(dev, 0xA4, 0xA10232B2); //0b 1010 0001 0000 0010 0011 0010 1011 0010 |
| 42 | + ``` |
33 | 43 |
|
34 | 44 | 5. Disabled features + `TimeOut clock from internal`
|
35 | 45 |
|
36 |
| - pci_write_config32(dev, 0xA4, 0xA1023232); //0b 1010 0001 0000 0010 0011 0010 0011 0010 |
| 46 | + ``` |
| 47 | + pci_write_config32(dev, 0xA4, 0xA1023232); //0b 1010 0001 0000 0010 0011 0010 0011 0010 |
| 48 | + ``` |
37 | 49 |
|
38 | 50 | 6. Change `TmoFreq` from 0x32 to 0x02:
|
39 | 51 |
|
40 |
| - pci_write_config32(dev, 0xA4, 0xA1023202); //0b 1010 0001 0000 0010 0011 0010 0000 0010 |
| 52 | + ``` |
| 53 | + pci_write_config32(dev, 0xA4, 0xA1023202); //0b 1010 0001 0000 0010 0011 0010 0000 0010 |
| 54 | + ``` |
41 | 55 |
|
42 | 56 | 7. Disable features from `0xB0` register: Memory deep sleep mode, memory shutdown
|
43 | 57 | mode, Master Read prefetch:
|
44 | 58 |
|
45 |
| - pci_write_config32(dev, 0xB0, 0x01180000); //0b 0000 0001 0001 1000 0000 0000 0000 0000 |
| 59 | + ``` |
| 60 | + pci_write_config32(dev, 0xB0, 0x01180000); //0b 0000 0001 0001 1000 0000 0000 0000 0000 |
| 61 | + ``` |
46 | 62 |
|
47 | 63 | 8. Force 3.3V:
|
48 | 64 |
|
49 |
| - pci_write_config32(dev, 0xD0, 0x0004078B); //0b 0000 0000 0000 0100 0000 0111 1000 1011 |
50 |
| - |
| 65 | + ``` |
| 66 | + pci_write_config32(dev, 0xD0, 0x0004078B); //0b 0000 0000 0000 0100 0000 0111 1000 1011 |
| 67 | + ``` |
51 | 68 |
|
52 | 69 | 9. SD Power pin disable:
|
53 | 70 |
|
54 |
| - pci_write_config32(dev, 0xD0, 0x0004070B); |
| 71 | + ``` |
| 72 | + pci_write_config32(dev, 0xD0, 0x0004070B); |
| 73 | + ``` |
55 | 74 |
|
56 |
| -Voltage on TP27 drops from 3.3V to 0.25V |
| 75 | + Voltage on TP27 drops from 3.3V to 0.25V |
57 | 76 |
|
58 | 77 | 10. Change driver strength value:
|
59 | 78 |
|
60 |
| -Initially `0xB8` register value was: |
| 79 | + Initially `0xB8` register value was: |
61 | 80 |
|
62 |
| -``` |
63 |
| -REGISTER B8 = 0x88000400 |
64 |
| -``` |
65 |
| -two first bytes are: |
| 81 | + ``` |
| 82 | + REGISTER B8 = 0x88000400 |
| 83 | + ``` |
| 84 | + two first bytes are: |
66 | 85 |
|
67 |
| -``` |
68 |
| -Specifies the SN driver strength value for 3.3V. |
69 |
| -Specifies the SP driver strength value for 3.3V. |
70 |
| -``` |
| 86 | + ``` |
| 87 | + Specifies the SN driver strength value for 3.3V. |
| 88 | + Specifies the SP driver strength value for 3.3V. |
| 89 | + ``` |
71 | 90 |
|
72 |
| -changes: |
| 91 | + changes: |
73 | 92 |
|
74 |
| -``` |
75 |
| - pci_write_config32(dev, 0xB8, 0xFF000400); |
76 |
| - pci_write_config32(dev, 0xB8, 0xAA000400); |
77 |
| - pci_write_config32(dev, 0xB8, 0x55000400); |
78 |
| - pci_write_config32(dev, 0xB8, 0x00000400); |
79 |
| -``` |
| 93 | + ``` |
| 94 | + pci_write_config32(dev, 0xB8, 0xFF000400); |
| 95 | + pci_write_config32(dev, 0xB8, 0xAA000400); |
| 96 | + pci_write_config32(dev, 0xB8, 0x55000400); |
| 97 | + pci_write_config32(dev, 0xB8, 0x00000400); |
| 98 | + ``` |
0 commit comments