Add flash device support.

This commit is contained in:
gdamore 2006-05-25 03:19:43 +00:00
parent e4dddba9c6
commit 473eede9de

View File

@ -1,4 +1,4 @@
/* $Id: arbus.c,v 1.4 2006/05/14 21:55:38 elad Exp $ */
/* $Id: arbus.c,v 1.5 2006/05/25 03:19:43 gdamore Exp $ */
/*
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
* Copyright (c) 2006 Garrett D'Amore.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: arbus.c,v 1.4 2006/05/14 21:55:38 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: arbus.c,v 1.5 2006/05/25 03:19:43 gdamore Exp $");
#include "locators.h"
#include <sys/param.h>
@ -146,6 +146,14 @@ static struct {
AR531X_RESET_WARM_WLAN1_BB,
AR531X_ENABLE_WLAN1
},
{
"flash",
AR531X_FLASH_BASE,
-1,
0,
0,
0,
},
#if 0
{
"argpio",
@ -205,9 +213,9 @@ arbus_attach(struct device *parent, struct device *self, void *aux)
aa.aa_irq = arbus_devices[i].irq;
aa.aa_addr = arbus_devices[i].addr;
if (aa.aa_addr < 0x1C000000)
if (aa.aa_addr < AR531X_UART0_BASE)
aa.aa_size = 0x00100000;
else
else if (aa.aa_addr < AR531X_FLASH_BASE)
aa.aa_size = 0x1000;
locs[ARBUSCF_ADDR] = aa.aa_addr;