Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56646
b: refs/heads/master
c: 0a29059
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 21, 2007
1 parent bec7ccc commit 8a2fdaf
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e537e9329d133526a576b741f85b3d48edc4ac1
refs/heads/master: 0a290593a053752d9629fb1276392ce35c26b348
8 changes: 7 additions & 1 deletion trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ config BFIN537_BLUETECHNIX_CM
CM-BF537 support for EVAL- and DEV-Board.

config BFIN561_BLUETECHNIX_CM
bool "BF561-CM"
bool "Bluetechnix CM-BF561"
depends on (BF561)
help
CM-BF561 support for EVAL- and DEV-Board.
Expand All @@ -204,6 +204,12 @@ config BFIN561_EZKIT
help
BF561-EZKIT-LITE board Support.

config BFIN561_TEPLA
bool "BF561-TEPLA"
depends on (BF561)
help
BF561-TEPLA board Support.

config PNAV10
bool "PNAV 1.0 board"
depends on (BF537)
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/blackfin/mach-bf561/boards/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
#

obj-$(CONFIG_GENERIC_BOARD) += generic_board.o
obj-$(CONFIG_BFIN561_EZKIT) += ezkit.o
obj-$(CONFIG_BFIN561_BLUETECHNIX_CM) += cm_bf561.o
obj-$(CONFIG_BFIN561_EZKIT) += ezkit.o
obj-$(CONFIG_BFIN561_TEPLA) += tepla.o
61 changes: 61 additions & 0 deletions trunk/arch/blackfin/mach-bf561/boards/tepla.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* File: arch/blackfin/mach-bf561/tepla.c
*
* Copyright 2004-2007 Analog Devices Inc.
* Only SMSC91C1111 was registered, may do more later.
*
* Copyright 2005 National ICT Australia (NICTA), Aidan Williams <aidan@nicta.com.au>
* Thanks to Jamey Hicks.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#include <linux/device.h>
#include <linux/platform_device.h>
#include <asm/irq.h>

char *bfin_board_name = "Tepla-BF561";

/*
* Driver needs to know address, irq and flag pin.
*/
static struct resource smc91x_resources[] = {
{
.start = 0x2C000300,
.end = 0x2C000320,
.flags = IORESOURCE_MEM,
},{
.start = IRQ_PROG_INTB,
.end = IRQ_PROG_INTB,
.flags = IORESOURCE_IRQ|IORESOURCE_IRQ_HIGHLEVEL,
},{
/*
* denotes the flag pin and is used directly if
* CONFIG_IRQCHIP_DEMUX_GPIO is defined.
*/
.start = IRQ_PF7,
.end = IRQ_PF7,
.flags = IORESOURCE_IRQ|IORESOURCE_IRQ_HIGHLEVEL,
},
};

static struct platform_device smc91x_device = {
.name = "smc91x",
.id = 0,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
};

static struct platform_device *tepla_devices[] __initdata = {
&smc91x_device,
};

static int __init tepla_init(void)
{
printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__);
return platform_add_devices(tepla_devices, ARRAY_SIZE(tepla_devices));
}

arch_initcall(tepla_init);

0 comments on commit 8a2fdaf

Please sign in to comment.