blob: d1fe4c13e35c204ac30fa5d0edfcd3117dff721e [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Anton Salnikov7c7e92a2008-02-06 02:57:48 +01002/*
3 * Palmchip bk3710 IDE controller
4 *
5 * Copyright (C) 2006 Texas Instruments.
6 * Copyright (C) 2007 MontaVista Software, Inc., <source@mvista.com>
7 *
8 * ----------------------------------------------------------------------------
9 *
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010010 * ----------------------------------------------------------------------------
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010011 */
12
13#include <linux/types.h>
14#include <linux/module.h>
15#include <linux/kernel.h>
16#include <linux/ioport.h>
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010017#include <linux/ide.h>
18#include <linux/delay.h>
19#include <linux/init.h>
20#include <linux/clk.h>
21#include <linux/platform_device.h>
22
23/* Offset of the primary interface registers */
24#define IDE_PALM_ATA_PRI_REG_OFFSET 0x1F0
25
26/* Primary Control Offset */
27#define IDE_PALM_ATA_PRI_CTL_OFFSET 0x3F6
28
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010029#define BK3710_BMICP 0x00
30#define BK3710_BMISP 0x02
31#define BK3710_BMIDTP 0x04
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010032#define BK3710_IDETIMP 0x40
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010033#define BK3710_IDESTATUS 0x47
34#define BK3710_UDMACTL 0x48
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010035#define BK3710_MISCCTL 0x50
36#define BK3710_REGSTB 0x54
37#define BK3710_REGRCVR 0x58
38#define BK3710_DATSTB 0x5C
39#define BK3710_DATRCVR 0x60
40#define BK3710_DMASTB 0x64
41#define BK3710_DMARCVR 0x68
42#define BK3710_UDMASTB 0x6C
43#define BK3710_UDMATRP 0x70
44#define BK3710_UDMAENV 0x74
45#define BK3710_IORDYTMP 0x78
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010046
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +020047static unsigned ideclk_period; /* in nanoseconds */
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010048
David Brownelldb2f38c2009-04-22 20:33:40 +020049struct palm_bk3710_udmatiming {
50 unsigned int rptime; /* tRP -- Ready to pause time (nsec) */
51 unsigned int cycletime; /* tCYCTYP2/2 -- avg Cycle Time (nsec) */
52 /* tENV is always a minimum of 20 nsec */
53};
54
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010055static const struct palm_bk3710_udmatiming palm_bk3710_udmatimings[6] = {
Bartlomiej Zolnierkiewiczd7f514352009-04-23 22:53:45 +020056 { 160, 240 / 2 }, /* UDMA Mode 0 */
57 { 125, 160 / 2 }, /* UDMA Mode 1 */
58 { 100, 120 / 2 }, /* UDMA Mode 2 */
59 { 100, 90 / 2 }, /* UDMA Mode 3 */
60 { 100, 60 / 2 }, /* UDMA Mode 4 */
61 { 85, 40 / 2 }, /* UDMA Mode 5 */
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010062};
63
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010064static void palm_bk3710_setudmamode(void __iomem *base, unsigned int dev,
65 unsigned int mode)
66{
67 u8 tenv, trp, t0;
68 u32 val32;
69 u16 val16;
70
71 /* DMA Data Setup */
Julia Lawall00fe8b72008-04-26 17:36:35 +020072 t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime,
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +020073 ideclk_period) - 1;
74 tenv = DIV_ROUND_UP(20, ideclk_period) - 1;
Julia Lawall00fe8b72008-04-26 17:36:35 +020075 trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime,
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +020076 ideclk_period) - 1;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010077
Anton Salnikov7c7e92a2008-02-06 02:57:48 +010078 /* udmastb Ultra DMA Access Strobe Width */
79 val32 = readl(base + BK3710_UDMASTB) & (0xFF << (dev ? 0 : 8));
80 val32 |= (t0 << (dev ? 8 : 0));
81 writel(val32, base + BK3710_UDMASTB);
82
83 /* udmatrp Ultra DMA Ready to Pause Time */
84 val32 = readl(base + BK3710_UDMATRP) & (0xFF << (dev ? 0 : 8));
85 val32 |= (trp << (dev ? 8 : 0));
86 writel(val32, base + BK3710_UDMATRP);
87
88 /* udmaenv Ultra DMA envelop Time */
89 val32 = readl(base + BK3710_UDMAENV) & (0xFF << (dev ? 0 : 8));
90 val32 |= (tenv << (dev ? 8 : 0));
91 writel(val32, base + BK3710_UDMAENV);
92
93 /* Enable UDMA for Device */
94 val16 = readw(base + BK3710_UDMACTL) | (1 << dev);
95 writew(val16, base + BK3710_UDMACTL);
96}
97
98static void palm_bk3710_setdmamode(void __iomem *base, unsigned int dev,
99 unsigned short min_cycle,
100 unsigned int mode)
101{
102 u8 td, tkw, t0;
103 u32 val32;
104 u16 val16;
105 struct ide_timing *t;
106 int cycletime;
107
108 t = ide_timing_find_mode(mode);
109 cycletime = max_t(int, t->cycle, min_cycle);
110
111 /* DMA Data Setup */
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200112 t0 = DIV_ROUND_UP(cycletime, ideclk_period);
113 td = DIV_ROUND_UP(t->active, ideclk_period);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100114 tkw = t0 - td - 1;
115 td -= 1;
116
117 val32 = readl(base + BK3710_DMASTB) & (0xFF << (dev ? 0 : 8));
118 val32 |= (td << (dev ? 8 : 0));
119 writel(val32, base + BK3710_DMASTB);
120
121 val32 = readl(base + BK3710_DMARCVR) & (0xFF << (dev ? 0 : 8));
122 val32 |= (tkw << (dev ? 8 : 0));
123 writel(val32, base + BK3710_DMARCVR);
124
125 /* Disable UDMA for Device */
126 val16 = readw(base + BK3710_UDMACTL) & ~(1 << dev);
127 writew(val16, base + BK3710_UDMACTL);
128}
129
130static void palm_bk3710_setpiomode(void __iomem *base, ide_drive_t *mate,
131 unsigned int dev, unsigned int cycletime,
132 unsigned int mode)
133{
134 u8 t2, t2i, t0;
135 u32 val32;
136 struct ide_timing *t;
137
David Brownell33e86012009-04-23 22:53:43 +0200138 t = ide_timing_find_mode(XFER_PIO_0 + mode);
139
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100140 /* PIO Data Setup */
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200141 t0 = DIV_ROUND_UP(cycletime, ideclk_period);
David Brownell33e86012009-04-23 22:53:43 +0200142 t2 = DIV_ROUND_UP(t->active, ideclk_period);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100143
144 t2i = t0 - t2 - 1;
145 t2 -= 1;
146
147 val32 = readl(base + BK3710_DATSTB) & (0xFF << (dev ? 0 : 8));
148 val32 |= (t2 << (dev ? 8 : 0));
149 writel(val32, base + BK3710_DATSTB);
150
151 val32 = readl(base + BK3710_DATRCVR) & (0xFF << (dev ? 0 : 8));
152 val32 |= (t2i << (dev ? 8 : 0));
153 writel(val32, base + BK3710_DATRCVR);
154
Bartlomiej Zolnierkiewicz7e59ea22008-10-10 22:39:26 +0200155 if (mate) {
Bartlomiej Zolnierkiewicz07163022010-01-18 07:22:09 +0000156 u8 mode2 = mate->pio_mode - XFER_PIO_0;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100157
158 if (mode2 < mode)
159 mode = mode2;
160 }
161
162 /* TASKFILE Setup */
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200163 t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period);
164 t2 = DIV_ROUND_UP(t->act8b, ideclk_period);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100165
166 t2i = t0 - t2 - 1;
167 t2 -= 1;
168
169 val32 = readl(base + BK3710_REGSTB) & (0xFF << (dev ? 0 : 8));
170 val32 |= (t2 << (dev ? 8 : 0));
171 writel(val32, base + BK3710_REGSTB);
172
173 val32 = readl(base + BK3710_REGRCVR) & (0xFF << (dev ? 0 : 8));
174 val32 |= (t2i << (dev ? 8 : 0));
175 writel(val32, base + BK3710_REGRCVR);
176}
177
Bartlomiej Zolnierkiewicz87761682010-01-19 01:45:29 -0800178static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100179{
180 int is_slave = drive->dn & 1;
Jingoo Han70ddce8322013-08-07 14:17:11 +0900181 void __iomem *base = (void __iomem *)hwif->dma_base;
Bartlomiej Zolnierkiewicz87761682010-01-19 01:45:29 -0800182 const u8 xferspeed = drive->dma_mode;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100183
184 if (xferspeed >= XFER_UDMA_0) {
185 palm_bk3710_setudmamode(base, is_slave,
186 xferspeed - XFER_UDMA_0);
187 } else {
Bartlomiej Zolnierkiewicz4dde4492008-10-10 22:39:19 +0200188 palm_bk3710_setdmamode(base, is_slave,
189 drive->id[ATA_ID_EIDE_DMA_MIN],
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100190 xferspeed);
191 }
192}
193
Bartlomiej Zolnierkiewicze085b3c2010-01-19 01:44:41 -0800194static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100195{
196 unsigned int cycle_time;
197 int is_slave = drive->dn & 1;
198 ide_drive_t *mate;
Jingoo Han70ddce8322013-08-07 14:17:11 +0900199 void __iomem *base = (void __iomem *)hwif->dma_base;
Bartlomiej Zolnierkiewicze085b3c2010-01-19 01:44:41 -0800200 const u8 pio = drive->pio_mode - XFER_PIO_0;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100201
202 /*
203 * Obtain the drive PIO data for tuning the Palm Chip registers
204 */
205 cycle_time = ide_pio_cycle_time(drive, pio);
Bartlomiej Zolnierkiewicz7e59ea22008-10-10 22:39:26 +0200206 mate = ide_get_pair_dev(drive);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100207 palm_bk3710_setpiomode(base, mate, is_slave, cycle_time, pio);
208}
209
Greg Kroah-Hartmanfe31edc2012-12-21 13:21:03 -0800210static void palm_bk3710_chipinit(void __iomem *base)
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100211{
212 /*
David Brownell33e86012009-04-23 22:53:43 +0200213 * REVISIT: the ATA reset signal needs to be managed through a
214 * GPIO, which means it should come from platform_data. Until
215 * we get and use such information, we have to trust that things
216 * have been reset before we get here.
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100217 */
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100218
219 /*
220 * Program the IDETIMP Register Value based on the following assumptions
221 *
222 * (ATA_IDETIMP_IDEEN , ENABLE ) |
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100223 * (ATA_IDETIMP_PREPOST1 , DISABLE) |
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100224 * (ATA_IDETIMP_PREPOST0 , DISABLE) |
David Brownell33e86012009-04-23 22:53:43 +0200225 *
226 * DM6446 silicon rev 2.1 and earlier have no observed net benefit
227 * from enabling prefetch/postwrite.
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100228 */
David Brownell33e86012009-04-23 22:53:43 +0200229 writew(BIT(15), base + BK3710_IDETIMP);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100230
231 /*
232 * UDMACTL Ultra-ATA DMA Control
233 * (ATA_UDMACTL_UDMAP1 , 0 ) |
234 * (ATA_UDMACTL_UDMAP0 , 0 )
235 *
236 */
237 writew(0, base + BK3710_UDMACTL);
238
239 /*
240 * MISCCTL Miscellaneous Conrol Register
David Brownell33e86012009-04-23 22:53:43 +0200241 * (ATA_MISCCTL_HWNHLD1P , 1 cycle)
242 * (ATA_MISCCTL_HWNHLD0P , 1 cycle)
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100243 * (ATA_MISCCTL_TIMORIDE , 1)
244 */
David Brownell33e86012009-04-23 22:53:43 +0200245 writel(0x001, base + BK3710_MISCCTL);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100246
247 /*
248 * IORDYTMP IORDY Timer for Primary Register
249 * (ATA_IORDYTMP_IORDYTMP , 0xffff )
250 */
251 writel(0xFFFF, base + BK3710_IORDYTMP);
252
253 /*
254 * Configure BMISP Register
255 * (ATA_BMISP_DMAEN1 , DISABLE ) |
256 * (ATA_BMISP_DMAEN0 , DISABLE ) |
257 * (ATA_BMISP_IORDYINT , CLEAR) |
258 * (ATA_BMISP_INTRSTAT , CLEAR) |
259 * (ATA_BMISP_DMAERROR , CLEAR)
260 */
261 writew(0, base + BK3710_BMISP);
262
263 palm_bk3710_setpiomode(base, NULL, 0, 600, 0);
264 palm_bk3710_setpiomode(base, NULL, 1, 600, 0);
265}
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100266
Bartlomiej Zolnierkiewiczf454cbe2008-08-05 18:17:04 +0200267static u8 palm_bk3710_cable_detect(ide_hwif_t *hwif)
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100268{
269 return ATA_CBL_PATA80;
270}
271
Greg Kroah-Hartmanfe31edc2012-12-21 13:21:03 -0800272static int palm_bk3710_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
Bartlomiej Zolnierkiewiczb552a2c2008-04-26 22:25:23 +0200273{
Bartlomiej Zolnierkiewiczb552a2c2008-04-26 22:25:23 +0200274 printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
275
276 if (ide_allocate_dma_engine(hwif))
277 return -1;
278
Bartlomiej Zolnierkiewicz81e8d5a2008-07-23 19:55:51 +0200279 hwif->dma_base = hwif->io_ports.data_addr - IDE_PALM_ATA_PRI_REG_OFFSET;
280
Bartlomiej Zolnierkiewiczb552a2c2008-04-26 22:25:23 +0200281 return 0;
282}
283
Bartlomiej Zolnierkiewiczac95bee2008-04-26 22:25:14 +0200284static const struct ide_port_ops palm_bk3710_ports_ops = {
285 .set_pio_mode = palm_bk3710_set_pio_mode,
286 .set_dma_mode = palm_bk3710_set_dma_mode,
287 .cable_detect = palm_bk3710_cable_detect,
288};
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100289
Bhumika Goyal96297ae2016-12-30 14:50:02 +0530290static struct ide_port_info palm_bk3710_port_info __initdata = {
Bartlomiej Zolnierkiewiczb552a2c2008-04-26 22:25:23 +0200291 .init_dma = palm_bk3710_init_dma,
Bartlomiej Zolnierkiewiczac95bee2008-04-26 22:25:14 +0200292 .port_ops = &palm_bk3710_ports_ops,
Sergei Shtylyov3f023b02009-01-06 17:21:01 +0100293 .dma_ops = &sff_dma_ops,
Bartlomiej Zolnierkiewiczc5dd43e2008-04-28 23:44:37 +0200294 .host_flags = IDE_HFLAG_MMIO,
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100295 .pio_mask = ATA_PIO4,
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100296 .mwdma_mask = ATA_MWDMA2,
Bartlomiej Zolnierkiewicz29e52cf2009-05-17 19:12:22 +0200297 .chipset = ide_palm3710,
Bartlomiej Zolnierkiewiczc79b60d2008-02-11 00:32:13 +0100298};
299
David Brownellbfc2f012008-09-02 20:18:47 +0200300static int __init palm_bk3710_probe(struct platform_device *pdev)
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100301{
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200302 struct clk *clk;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100303 struct resource *mem, *irq;
David Brownellef183f62009-01-19 13:46:57 +0100304 void __iomem *base;
Kevin Hilman13b88602009-01-30 11:59:27 -0800305 unsigned long rate, mem_size;
Bartlomiej Zolnierkiewicz6f904d02008-07-23 19:55:57 +0200306 int i, rc;
Bartlomiej Zolnierkiewicz9f36d312009-05-17 19:12:25 +0200307 struct ide_hw hw, *hws[] = { &hw };
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100308
Kevin Hilman468b5ef2009-07-06 12:26:16 +0000309 clk = clk_get(&pdev->dev, NULL);
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200310 if (IS_ERR(clk))
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100311 return -ENODEV;
312
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200313 clk_enable(clk);
314 rate = clk_get_rate(clk);
Wolfram Sang0d7ef452016-03-02 23:33:32 +0100315 if (!rate)
316 return -EINVAL;
Sergei Shtylyovffab6cf2008-07-08 19:27:22 +0200317
David Brownell33e86012009-04-23 22:53:43 +0200318 /* NOTE: round *down* to meet minimum timings; we count in clocks */
319 ideclk_period = 1000000000UL / rate;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100320
321 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
322 if (mem == NULL) {
323 printk(KERN_ERR "failed to get memory region resource\n");
324 return -ENODEV;
325 }
Sergei Shtylyovce42a542008-06-20 20:53:32 +0200326
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100327 irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
328 if (irq == NULL) {
329 printk(KERN_ERR "failed to get IRQ resource\n");
330 return -ENODEV;
331 }
332
Joe Perches28f65c112011-06-09 09:13:32 -0700333 mem_size = resource_size(mem);
Kevin Hilman13b88602009-01-30 11:59:27 -0800334 if (request_mem_region(mem->start, mem_size, "palm_bk3710") == NULL) {
Sergei Shtylyovce42a542008-06-20 20:53:32 +0200335 printk(KERN_ERR "failed to request memory region\n");
336 return -EBUSY;
337 }
338
Kevin Hilman13b88602009-01-30 11:59:27 -0800339 base = ioremap(mem->start, mem_size);
340 if (!base) {
341 printk(KERN_ERR "failed to map IO memory\n");
342 release_mem_region(mem->start, mem_size);
343 return -ENOMEM;
344 }
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100345
346 /* Configure the Palm Chip controller */
David Brownellef183f62009-01-19 13:46:57 +0100347 palm_bk3710_chipinit(base);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100348
David Brownell33e86012009-04-23 22:53:43 +0200349 memset(&hw, 0, sizeof(hw));
Bartlomiej Zolnierkiewicz7824bc62008-02-11 00:32:12 +0100350 for (i = 0; i < IDE_NR_PORTS - 2; i++)
David Brownellef183f62009-01-19 13:46:57 +0100351 hw.io_ports_array[i] = (unsigned long)
352 (base + IDE_PALM_ATA_PRI_REG_OFFSET + i);
353 hw.io_ports.ctl_addr = (unsigned long)
354 (base + IDE_PALM_ATA_PRI_CTL_OFFSET);
Bartlomiej Zolnierkiewicz7824bc62008-02-11 00:32:12 +0100355 hw.irq = irq->start;
David Brownellbfc2f012008-09-02 20:18:47 +0200356 hw.dev = &pdev->dev;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100357
Sergei Shtylyova0f403b2008-07-24 22:53:34 +0200358 palm_bk3710_port_info.udma_mask = rate < 100000000 ? ATA_UDMA4 :
359 ATA_UDMA5;
360
David Brownell33e86012009-04-23 22:53:43 +0200361 /* Register the IDE interface with Linux */
Bartlomiej Zolnierkiewiczdca39832009-05-17 19:12:24 +0200362 rc = ide_host_add(&palm_bk3710_port_info, hws, 1, NULL);
Bartlomiej Zolnierkiewicz6f904d02008-07-23 19:55:57 +0200363 if (rc)
Bartlomiej Zolnierkiewicz7824bc62008-02-11 00:32:12 +0100364 goto out;
365
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100366 return 0;
Bartlomiej Zolnierkiewicz7824bc62008-02-11 00:32:12 +0100367out:
368 printk(KERN_WARNING "Palm Chip BK3710 IDE Register Fail\n");
Bartlomiej Zolnierkiewicz6f904d02008-07-23 19:55:57 +0200369 return rc;
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100370}
371
Kay Sievers458622f2008-04-18 13:41:57 -0700372/* work with hotplug and coldplug */
373MODULE_ALIAS("platform:palm_bk3710");
374
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100375static struct platform_driver platform_bk_driver = {
376 .driver = {
377 .name = "palm_bk3710",
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100378 },
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100379};
380
381static int __init palm_bk3710_init(void)
382{
David Brownellbfc2f012008-09-02 20:18:47 +0200383 return platform_driver_probe(&platform_bk_driver, palm_bk3710_probe);
Anton Salnikov7c7e92a2008-02-06 02:57:48 +0100384}
385
386module_init(palm_bk3710_init);
387MODULE_LICENSE("GPL");