File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 32
32
#define O2_SD_CAPS 0xE0
33
33
#define O2_SD_ADMA1 0xE2
34
34
#define O2_SD_ADMA2 0xE7
35
+ #define O2_SD_MISC_CTRL2 0xF0
35
36
#define O2_SD_INF_MOD 0xF1
36
37
#define O2_SD_MISC_CTRL4 0xFC
37
38
#define O2_SD_MISC_CTRL 0x1C0
@@ -877,6 +878,12 @@ static int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip)
877
878
/* Set Tuning Windows to 5 */
878
879
pci_write_config_byte (chip -> pdev ,
879
880
O2_SD_TUNING_CTRL , 0x55 );
881
+ //Adjust 1st and 2nd CD debounce time
882
+ pci_read_config_dword (chip -> pdev , O2_SD_MISC_CTRL2 , & scratch_32 );
883
+ scratch_32 &= 0xFFE7FFFF ;
884
+ scratch_32 |= 0x00180000 ;
885
+ pci_write_config_dword (chip -> pdev , O2_SD_MISC_CTRL2 , scratch_32 );
886
+ pci_write_config_dword (chip -> pdev , O2_SD_DETECT_SETTING , 1 );
880
887
/* Lock WP */
881
888
ret = pci_read_config_byte (chip -> pdev ,
882
889
O2_SD_LOCK_WP , & scratch );
You can’t perform that action at this time.
0 commit comments