2 * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
9 #include <linux/init.h>
10 #include <linux/spi/spi.h>
11 #include <linux/spi/flash.h>
14 #include "dev-m25p80.h"
16 static struct spi_board_info ar71xx_spi_info
[] = {
20 .max_speed_hz
= 25000000,
25 void __init
ar71xx_add_device_m25p80(struct flash_platform_data
*pdata
)
27 ar71xx_spi_info
[0].platform_data
= pdata
;
28 ar71xx_add_device_spi(NULL
, ar71xx_spi_info
,
29 ARRAY_SIZE(ar71xx_spi_info
));