OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Broadcom Corporation | 2 * Copyright (c) 2010 Broadcom Corporation |
3 * | 3 * |
4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
7 * | 7 * |
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait); | 62 DHD_PM_RESUME_WAIT_INIT(sdioh_request_byte_wait); |
63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait); | 63 DHD_PM_RESUME_WAIT_INIT(sdioh_request_word_wait); |
64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait); | 64 DHD_PM_RESUME_WAIT_INIT(sdioh_request_packet_wait); |
65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); | 65 DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); |
66 | 66 |
67 #define DMA_ALIGN_MASK 0x03 | 67 #define DMA_ALIGN_MASK 0x03 |
68 | 68 |
69 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, | 69 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, |
70 int regsize, u32 *data); | 70 int regsize, u32 *data); |
71 | 71 |
| 72 void sdioh_sdio_set_host_pm_flags(int flag) |
| 73 { |
| 74 int err = sdio_set_host_pm_flags(gInstance->func[1], flag); |
| 75 if (err) |
| 76 printk(KERN_ERR "%s: Failed to set pm_flags 0x%08x (err=%d)\n", |
| 77 __func__, flag, err); |
| 78 } |
| 79 |
72 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) | 80 static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) |
73 { | 81 { |
74 int err_ret; | 82 int err_ret; |
75 u32 fbraddr; | 83 u32 fbraddr; |
76 u8 func; | 84 u8 func; |
77 | 85 |
78 sd_trace(("%s\n", __func__)); | 86 sd_trace(("%s\n", __func__)); |
79 | 87 |
80 /* Get the Card's common CIS address */ | 88 /* Get the Card's common CIS address */ |
81 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0); | 89 sd->com_cis_ptr = sdioh_sdmmc_get_cisaddr(sd, SDIOD_CCCR_CISPTR_0); |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 | 1237 |
1230 int sdioh_start(sdioh_info_t *si, int stage) | 1238 int sdioh_start(sdioh_info_t *si, int stage) |
1231 { | 1239 { |
1232 return 0; | 1240 return 0; |
1233 } | 1241 } |
1234 | 1242 |
1235 int sdioh_stop(sdioh_info_t *si) | 1243 int sdioh_stop(sdioh_info_t *si) |
1236 { | 1244 { |
1237 return 0; | 1245 return 0; |
1238 } | 1246 } |
OLD | NEW |