blob: 23e10c7dab5b292987912d65f1a20d0eabb5a37c [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
2 * File: arch/blackfin/mach-bf537/boards/stamp.c
3 * Based on: arch/blackfin/mach-bf533/boards/ezkit.c
4 * Author: Aidan Williams <aidan@nicta.com.au>
5 *
6 * Created:
7 * Description:
8 *
9 * Modified:
10 * Copyright 2005 National ICT Australia (NICTA)
11 * Copyright 2004-2006 Analog Devices Inc.
12 *
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, see the file COPYING, or write
27 * to the Free Software Foundation, Inc.,
28 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 */
30
31#include <linux/device.h>
Mike Frysinger43f73fe2007-12-24 19:35:35 +080032#include <linux/etherdevice.h>
Bryan Wu1394f032007-05-06 14:50:22 -070033#include <linux/platform_device.h>
34#include <linux/mtd/mtd.h>
35#include <linux/mtd/partitions.h>
36#include <linux/spi/spi.h>
37#include <linux/spi/flash.h>
38#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
Mike Frysingerf02bcec2007-11-15 21:29:15 +080039#include <linux/usb/isp1362.h>
Bryan Wu1394f032007-05-06 14:50:22 -070040#endif
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080041#include <linux/irq.h>
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080042#include <asm/dma.h>
Bryan Wu1394f032007-05-06 14:50:22 -070043#include <asm/bfin5xx_spi.h>
Bryan Wu5d448dd2007-11-12 23:24:42 +080044#include <asm/portmux.h>
David Brownell27f5d752007-10-04 18:06:16 -070045#include <linux/usb/sl811.h>
Bryan Wu1394f032007-05-06 14:50:22 -070046
47#include <linux/spi/ad7877.h>
48
49/*
50 * Name the Board for the /proc/cpuinfo
51 */
Mike Frysinger066954a2007-10-21 22:36:06 +080052const char bfin_board_name[] = "PNAV-1.0";
Bryan Wu1394f032007-05-06 14:50:22 -070053
54/*
55 * Driver needs to know address, irq and flag pin.
56 */
57
58#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
59static struct resource bfin_pcmcia_cf_resources[] = {
60 {
61 .start = 0x20310000, /* IO PORT */
62 .end = 0x20312000,
63 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080064 }, {
Simon Arlottd2d50aa2007-06-11 15:31:30 +080065 .start = 0x20311000, /* Attribute Memory */
Bryan Wu1394f032007-05-06 14:50:22 -070066 .end = 0x20311FFF,
67 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080068 }, {
Bryan Wu1394f032007-05-06 14:50:22 -070069 .start = IRQ_PF4,
70 .end = IRQ_PF4,
71 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080072 }, {
Bryan Wu1394f032007-05-06 14:50:22 -070073 .start = 6, /* Card Detect PF6 */
74 .end = 6,
75 .flags = IORESOURCE_IRQ,
76 },
77};
78
79static struct platform_device bfin_pcmcia_cf_device = {
80 .name = "bfin_cf_pcmcia",
81 .id = -1,
82 .num_resources = ARRAY_SIZE(bfin_pcmcia_cf_resources),
83 .resource = bfin_pcmcia_cf_resources,
84};
85#endif
86
87#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
88static struct platform_device rtc_device = {
89 .name = "rtc-bfin",
90 .id = -1,
91};
92#endif
93
94#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
95static struct resource smc91x_resources[] = {
96 {
97 .name = "smc91x-regs",
98 .start = 0x20300300,
99 .end = 0x20300300 + 16,
100 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800101 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700102
103 .start = IRQ_PF7,
104 .end = IRQ_PF7,
105 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
106 },
107};
108static struct platform_device smc91x_device = {
109 .name = "smc91x",
110 .id = 0,
111 .num_resources = ARRAY_SIZE(smc91x_resources),
112 .resource = smc91x_resources,
113};
114#endif
115
116#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
117static struct resource sl811_hcd_resources[] = {
118 {
119 .start = 0x20340000,
120 .end = 0x20340000,
121 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800122 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700123 .start = 0x20340004,
124 .end = 0x20340004,
125 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800126 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700127 .start = CONFIG_USB_SL811_BFIN_IRQ,
128 .end = CONFIG_USB_SL811_BFIN_IRQ,
129 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
130 },
131};
132
133#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
134void sl811_port_power(struct device *dev, int is_on)
135{
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800136 gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS, "usb:SL811_VBUS");
137 gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS);
Bryan Wu1394f032007-05-06 14:50:22 -0700138
139 if (is_on)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800140 gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 1);
Bryan Wu1394f032007-05-06 14:50:22 -0700141 else
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800142 gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 0);
Bryan Wu1394f032007-05-06 14:50:22 -0700143}
144#endif
145
146static struct sl811_platform_data sl811_priv = {
147 .potpg = 10,
148 .power = 250, /* == 500mA */
149#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
150 .port_power = &sl811_port_power,
151#endif
152};
153
154static struct platform_device sl811_hcd_device = {
155 .name = "sl811-hcd",
156 .id = 0,
157 .dev = {
158 .platform_data = &sl811_priv,
159 },
160 .num_resources = ARRAY_SIZE(sl811_hcd_resources),
161 .resource = sl811_hcd_resources,
162};
163#endif
164
165#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
166static struct resource isp1362_hcd_resources[] = {
167 {
168 .start = 0x20360000,
169 .end = 0x20360000,
170 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800171 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700172 .start = 0x20360004,
173 .end = 0x20360004,
174 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800175 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700176 .start = CONFIG_USB_ISP1362_BFIN_GPIO_IRQ,
177 .end = CONFIG_USB_ISP1362_BFIN_GPIO_IRQ,
178 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
179 },
180};
181
182static struct isp1362_platform_data isp1362_priv = {
183 .sel15Kres = 1,
184 .clknotstop = 0,
185 .oc_enable = 0,
186 .int_act_high = 0,
187 .int_edge_triggered = 0,
188 .remote_wakeup_connected = 0,
189 .no_power_switching = 1,
190 .power_switching_mode = 0,
191};
192
193static struct platform_device isp1362_hcd_device = {
194 .name = "isp1362-hcd",
195 .id = 0,
196 .dev = {
197 .platform_data = &isp1362_priv,
198 },
199 .num_resources = ARRAY_SIZE(isp1362_hcd_resources),
200 .resource = isp1362_hcd_resources,
201};
202#endif
203
204#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
205static struct platform_device bfin_mac_device = {
206 .name = "bfin_mac",
207};
208#endif
209
210#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
211static struct resource net2272_bfin_resources[] = {
212 {
213 .start = 0x20300000,
214 .end = 0x20300000 + 0x100,
215 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800216 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700217 .start = IRQ_PF7,
218 .end = IRQ_PF7,
219 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
220 },
221};
222
223static struct platform_device net2272_bfin_device = {
224 .name = "net2272",
225 .id = -1,
226 .num_resources = ARRAY_SIZE(net2272_bfin_resources),
227 .resource = net2272_bfin_resources,
228};
229#endif
230
231#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
232/* all SPI peripherals info goes here */
233
234#if defined(CONFIG_MTD_M25P80) \
235 || defined(CONFIG_MTD_M25P80_MODULE)
236static struct mtd_partition bfin_spi_flash_partitions[] = {
237 {
238 .name = "bootloader",
239 .size = 0x00020000,
240 .offset = 0,
241 .mask_flags = MTD_CAP_ROM
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800242 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700243 .name = "kernel",
244 .size = 0xe0000,
245 .offset = 0x20000
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800246 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700247 .name = "file system",
248 .size = 0x700000,
249 .offset = 0x00100000,
250 }
251};
252
253static struct flash_platform_data bfin_spi_flash_data = {
254 .name = "m25p80",
255 .parts = bfin_spi_flash_partitions,
256 .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),
257 .type = "m25p64",
258};
259
260/* SPI flash chip (m25p64) */
261static struct bfin5xx_spi_chip spi_flash_chip_info = {
262 .enable_dma = 0, /* use dma transfer with this chip*/
263 .bits_per_word = 8,
264};
265#endif
266
267#if defined(CONFIG_SPI_ADC_BF533) \
268 || defined(CONFIG_SPI_ADC_BF533_MODULE)
269/* SPI ADC chip */
270static struct bfin5xx_spi_chip spi_adc_chip_info = {
271 .enable_dma = 1, /* use dma transfer with this chip*/
272 .bits_per_word = 16,
273};
274#endif
275
276#if defined(CONFIG_SND_BLACKFIN_AD1836) \
277 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
278static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
279 .enable_dma = 0,
280 .bits_per_word = 16,
281};
282#endif
283
284#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
285static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
286 .enable_dma = 0,
287 .bits_per_word = 16,
288};
289#endif
290
291#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
292static struct bfin5xx_spi_chip spi_mmc_chip_info = {
293 .enable_dma = 1,
294 .bits_per_word = 8,
295};
296#endif
297
Bryan Wu1394f032007-05-06 14:50:22 -0700298#if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
299static struct bfin5xx_spi_chip spi_ad7877_chip_info = {
Michael Hennerichc7d48962007-11-15 21:33:31 +0800300 .cs_change_per_word = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700301 .enable_dma = 0,
302 .bits_per_word = 16,
303};
304
305static const struct ad7877_platform_data bfin_ad7877_ts_info = {
306 .model = 7877,
307 .vref_delay_usecs = 50, /* internal, no capacitor */
308 .x_plate_ohms = 419,
309 .y_plate_ohms = 486,
310 .pressure_max = 1000,
311 .pressure_min = 0,
312 .stopacq_polarity = 1,
313 .first_conversion_delay = 3,
314 .acquisition_time = 1,
315 .averaging = 1,
316 .pen_down_acc_interval = 1,
317};
318#endif
319
320static struct spi_board_info bfin_spi_board_info[] __initdata = {
321#if defined(CONFIG_MTD_M25P80) \
322 || defined(CONFIG_MTD_M25P80_MODULE)
323 {
324 /* the modalias must be the same as spi device driver name */
325 .modalias = "m25p80", /* Name of spi_driver for this device */
326 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800327 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -0700328 .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/
329 .platform_data = &bfin_spi_flash_data,
330 .controller_data = &spi_flash_chip_info,
331 .mode = SPI_MODE_3,
332 },
333#endif
334
335#if defined(CONFIG_SPI_ADC_BF533) \
336 || defined(CONFIG_SPI_ADC_BF533_MODULE)
337 {
338 .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
339 .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800340 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -0700341 .chip_select = 1, /* Framework chip select. */
342 .platform_data = NULL, /* No spi_driver specific config */
343 .controller_data = &spi_adc_chip_info,
344 },
345#endif
346
347#if defined(CONFIG_SND_BLACKFIN_AD1836) \
348 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
349 {
350 .modalias = "ad1836-spi",
351 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800352 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700353 .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
354 .controller_data = &ad1836_spi_chip_info,
355 },
356#endif
357#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
358 {
359 .modalias = "ad9960-spi",
360 .max_speed_hz = 10000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800361 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700362 .chip_select = 1,
363 .controller_data = &ad9960_spi_chip_info,
364 },
365#endif
366#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
367 {
368 .modalias = "spi_mmc_dummy",
369 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800370 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700371 .chip_select = 7,
372 .platform_data = NULL,
373 .controller_data = &spi_mmc_chip_info,
374 .mode = SPI_MODE_3,
375 },
376 {
377 .modalias = "spi_mmc",
378 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800379 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700380 .chip_select = CONFIG_SPI_MMC_CS_CHAN,
381 .platform_data = NULL,
382 .controller_data = &spi_mmc_chip_info,
383 .mode = SPI_MODE_3,
384 },
385#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700386#if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
387{
388 .modalias = "ad7877",
389 .platform_data = &bfin_ad7877_ts_info,
390 .irq = IRQ_PF2,
391 .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */
Michael Hennerichc7d48962007-11-15 21:33:31 +0800392 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700393 .chip_select = 5,
394 .controller_data = &spi_ad7877_chip_info,
395},
396#endif
397
398};
399
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800400/* SPI (0) */
401static struct resource bfin_spi0_resource[] = {
402 [0] = {
403 .start = SPI0_REGBASE,
404 .end = SPI0_REGBASE + 0xFF,
405 .flags = IORESOURCE_MEM,
406 },
407 [1] = {
408 .start = CH_SPI,
409 .end = CH_SPI,
410 .flags = IORESOURCE_IRQ,
411 }
412};
413
Bryan Wu1394f032007-05-06 14:50:22 -0700414/* SPI controller data */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800415static struct bfin5xx_spi_master bfin_spi0_info = {
Bryan Wu1394f032007-05-06 14:50:22 -0700416 .num_chipselect = 8,
417 .enable_dma = 1, /* master has the ability to do dma transfer */
Bryan Wu5d448dd2007-11-12 23:24:42 +0800418 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
Bryan Wu1394f032007-05-06 14:50:22 -0700419};
420
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800421static struct platform_device bfin_spi0_device = {
422 .name = "bfin-spi",
423 .id = 0, /* Bus number */
424 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
425 .resource = bfin_spi0_resource,
Bryan Wu1394f032007-05-06 14:50:22 -0700426 .dev = {
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800427 .platform_data = &bfin_spi0_info, /* Passed to driver */
Bryan Wu1394f032007-05-06 14:50:22 -0700428 },
429};
430#endif /* spi master and devices */
431
432#if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
433static struct platform_device bfin_fb_device = {
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800434 .name = "bf537-lq035",
Bryan Wu1394f032007-05-06 14:50:22 -0700435};
436#endif
437
438#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
439static struct resource bfin_uart_resources[] = {
440 {
441 .start = 0xFFC00400,
442 .end = 0xFFC004FF,
443 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800444 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700445 .start = 0xFFC02000,
446 .end = 0xFFC020FF,
447 .flags = IORESOURCE_MEM,
448 },
449};
450
451static struct platform_device bfin_uart_device = {
452 .name = "bfin-uart",
453 .id = 1,
454 .num_resources = ARRAY_SIZE(bfin_uart_resources),
455 .resource = bfin_uart_resources,
456};
457#endif
458
459
460static struct platform_device *stamp_devices[] __initdata = {
461#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
462 &bfin_pcmcia_cf_device,
463#endif
464
465#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
466 &rtc_device,
467#endif
468
469#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
470 &sl811_hcd_device,
471#endif
472
473#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
474 &isp1362_hcd_device,
475#endif
476
477#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
478 &smc91x_device,
479#endif
480
481#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
482 &bfin_mac_device,
483#endif
484
485#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
486 &net2272_bfin_device,
487#endif
488
489#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800490 &bfin_spi0_device,
Bryan Wu1394f032007-05-06 14:50:22 -0700491#endif
492
493#if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
494 &bfin_fb_device,
495#endif
496
497#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
498 &bfin_uart_device,
499#endif
500};
501
502static int __init stamp_init(void)
503{
504 printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
505 platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
506#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
507 spi_register_board_info(bfin_spi_board_info,
508 ARRAY_SIZE(bfin_spi_board_info));
509#endif
510 return 0;
511}
512
513arch_initcall(stamp_init);
Mike Frysinger137b1522007-11-22 16:07:03 +0800514
Mike Frysinger9862cc52007-11-15 21:21:20 +0800515void bfin_get_ether_addr(char *addr)
Mike Frysinger137b1522007-11-22 16:07:03 +0800516{
517 random_ether_addr(addr);
518 printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__);
519}
Mike Frysinger9862cc52007-11-15 21:21:20 +0800520EXPORT_SYMBOL(bfin_get_ether_addr);