diff options
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/sa1111.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index ef12794c3c68..8ba7044c554d 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -1032,6 +1032,7 @@ unsigned int sa1111_pll_clock(struct sa1111_dev *sadev) | |||
1032 | 1032 | ||
1033 | return __sa1111_pll_clock(sachip); | 1033 | return __sa1111_pll_clock(sachip); |
1034 | } | 1034 | } |
1035 | EXPORT_SYMBOL(sa1111_pll_clock); | ||
1035 | 1036 | ||
1036 | /** | 1037 | /** |
1037 | * sa1111_select_audio_mode - select I2S or AC link mode | 1038 | * sa1111_select_audio_mode - select I2S or AC link mode |
@@ -1059,6 +1060,7 @@ void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode) | |||
1059 | 1060 | ||
1060 | spin_unlock_irqrestore(&sachip->lock, flags); | 1061 | spin_unlock_irqrestore(&sachip->lock, flags); |
1061 | } | 1062 | } |
1063 | EXPORT_SYMBOL(sa1111_select_audio_mode); | ||
1062 | 1064 | ||
1063 | /** | 1065 | /** |
1064 | * sa1111_set_audio_rate - set the audio sample rate | 1066 | * sa1111_set_audio_rate - set the audio sample rate |
@@ -1083,6 +1085,7 @@ int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate) | |||
1083 | 1085 | ||
1084 | return 0; | 1086 | return 0; |
1085 | } | 1087 | } |
1088 | EXPORT_SYMBOL(sa1111_set_audio_rate); | ||
1086 | 1089 | ||
1087 | /** | 1090 | /** |
1088 | * sa1111_get_audio_rate - get the audio sample rate | 1091 | * sa1111_get_audio_rate - get the audio sample rate |
@@ -1100,6 +1103,7 @@ int sa1111_get_audio_rate(struct sa1111_dev *sadev) | |||
1100 | 1103 | ||
1101 | return __sa1111_pll_clock(sachip) / (256 * div); | 1104 | return __sa1111_pll_clock(sachip) / (256 * div); |
1102 | } | 1105 | } |
1106 | EXPORT_SYMBOL(sa1111_get_audio_rate); | ||
1103 | 1107 | ||
1104 | void sa1111_set_io_dir(struct sa1111_dev *sadev, | 1108 | void sa1111_set_io_dir(struct sa1111_dev *sadev, |
1105 | unsigned int bits, unsigned int dir, | 1109 | unsigned int bits, unsigned int dir, |
@@ -1128,6 +1132,7 @@ void sa1111_set_io_dir(struct sa1111_dev *sadev, | |||
1128 | MODIFY_BITS(gpio + SA1111_GPIO_PCSDR, (bits >> 16) & 255, sleep_dir >> 16); | 1132 | MODIFY_BITS(gpio + SA1111_GPIO_PCSDR, (bits >> 16) & 255, sleep_dir >> 16); |
1129 | spin_unlock_irqrestore(&sachip->lock, flags); | 1133 | spin_unlock_irqrestore(&sachip->lock, flags); |
1130 | } | 1134 | } |
1135 | EXPORT_SYMBOL(sa1111_set_io_dir); | ||
1131 | 1136 | ||
1132 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | 1137 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) |
1133 | { | 1138 | { |
@@ -1142,6 +1147,7 @@ void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | |||
1142 | MODIFY_BITS(gpio + SA1111_GPIO_PCDWR, (bits >> 16) & 255, v >> 16); | 1147 | MODIFY_BITS(gpio + SA1111_GPIO_PCDWR, (bits >> 16) & 255, v >> 16); |
1143 | spin_unlock_irqrestore(&sachip->lock, flags); | 1148 | spin_unlock_irqrestore(&sachip->lock, flags); |
1144 | } | 1149 | } |
1150 | EXPORT_SYMBOL(sa1111_set_io); | ||
1145 | 1151 | ||
1146 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | 1152 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) |
1147 | { | 1153 | { |
@@ -1156,6 +1162,7 @@ void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned i | |||
1156 | MODIFY_BITS(gpio + SA1111_GPIO_PCSSR, (bits >> 16) & 255, v >> 16); | 1162 | MODIFY_BITS(gpio + SA1111_GPIO_PCSSR, (bits >> 16) & 255, v >> 16); |
1157 | spin_unlock_irqrestore(&sachip->lock, flags); | 1163 | spin_unlock_irqrestore(&sachip->lock, flags); |
1158 | } | 1164 | } |
1165 | EXPORT_SYMBOL(sa1111_set_sleep_io); | ||
1159 | 1166 | ||
1160 | /* | 1167 | /* |
1161 | * Individual device operations. | 1168 | * Individual device operations. |
@@ -1176,6 +1183,7 @@ void sa1111_enable_device(struct sa1111_dev *sadev) | |||
1176 | sa1111_writel(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); | 1183 | sa1111_writel(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); |
1177 | spin_unlock_irqrestore(&sachip->lock, flags); | 1184 | spin_unlock_irqrestore(&sachip->lock, flags); |
1178 | } | 1185 | } |
1186 | EXPORT_SYMBOL(sa1111_enable_device); | ||
1179 | 1187 | ||
1180 | /** | 1188 | /** |
1181 | * sa1111_disable_device - disable an on-chip SA1111 function block | 1189 | * sa1111_disable_device - disable an on-chip SA1111 function block |
@@ -1192,6 +1200,7 @@ void sa1111_disable_device(struct sa1111_dev *sadev) | |||
1192 | sa1111_writel(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); | 1200 | sa1111_writel(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); |
1193 | spin_unlock_irqrestore(&sachip->lock, flags); | 1201 | spin_unlock_irqrestore(&sachip->lock, flags); |
1194 | } | 1202 | } |
1203 | EXPORT_SYMBOL(sa1111_disable_device); | ||
1195 | 1204 | ||
1196 | /* | 1205 | /* |
1197 | * SA1111 "Register Access Bus." | 1206 | * SA1111 "Register Access Bus." |
@@ -1259,17 +1268,20 @@ struct bus_type sa1111_bus_type = { | |||
1259 | .suspend = sa1111_bus_suspend, | 1268 | .suspend = sa1111_bus_suspend, |
1260 | .resume = sa1111_bus_resume, | 1269 | .resume = sa1111_bus_resume, |
1261 | }; | 1270 | }; |
1271 | EXPORT_SYMBOL(sa1111_bus_type); | ||
1262 | 1272 | ||
1263 | int sa1111_driver_register(struct sa1111_driver *driver) | 1273 | int sa1111_driver_register(struct sa1111_driver *driver) |
1264 | { | 1274 | { |
1265 | driver->drv.bus = &sa1111_bus_type; | 1275 | driver->drv.bus = &sa1111_bus_type; |
1266 | return driver_register(&driver->drv); | 1276 | return driver_register(&driver->drv); |
1267 | } | 1277 | } |
1278 | EXPORT_SYMBOL(sa1111_driver_register); | ||
1268 | 1279 | ||
1269 | void sa1111_driver_unregister(struct sa1111_driver *driver) | 1280 | void sa1111_driver_unregister(struct sa1111_driver *driver) |
1270 | { | 1281 | { |
1271 | driver_unregister(&driver->drv); | 1282 | driver_unregister(&driver->drv); |
1272 | } | 1283 | } |
1284 | EXPORT_SYMBOL(sa1111_driver_unregister); | ||
1273 | 1285 | ||
1274 | static int __init sa1111_init(void) | 1286 | static int __init sa1111_init(void) |
1275 | { | 1287 | { |
@@ -1290,16 +1302,3 @@ module_exit(sa1111_exit); | |||
1290 | 1302 | ||
1291 | MODULE_DESCRIPTION("Intel Corporation SA1111 core driver"); | 1303 | MODULE_DESCRIPTION("Intel Corporation SA1111 core driver"); |
1292 | MODULE_LICENSE("GPL"); | 1304 | MODULE_LICENSE("GPL"); |
1293 | |||
1294 | EXPORT_SYMBOL(sa1111_select_audio_mode); | ||
1295 | EXPORT_SYMBOL(sa1111_set_audio_rate); | ||
1296 | EXPORT_SYMBOL(sa1111_get_audio_rate); | ||
1297 | EXPORT_SYMBOL(sa1111_set_io_dir); | ||
1298 | EXPORT_SYMBOL(sa1111_set_io); | ||
1299 | EXPORT_SYMBOL(sa1111_set_sleep_io); | ||
1300 | EXPORT_SYMBOL(sa1111_enable_device); | ||
1301 | EXPORT_SYMBOL(sa1111_disable_device); | ||
1302 | EXPORT_SYMBOL(sa1111_pll_clock); | ||
1303 | EXPORT_SYMBOL(sa1111_bus_type); | ||
1304 | EXPORT_SYMBOL(sa1111_driver_register); | ||
1305 | EXPORT_SYMBOL(sa1111_driver_unregister); | ||