9
0
Fork 0

dm9000: allow to specify that no srom is present

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2009-10-21 16:30:38 +02:00
parent 8a902870f7
commit 54d6627f02
3 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,7 @@ static struct dm9000_platform_data dm9000_data = {
.iobase = 0x16000000,
.iodata = 0x16000004,
.buswidth = DM9000_WIDTH_16,
.srom = 1;
};
static struct device_d dm9000_dev = {

View File

@ -498,8 +498,9 @@ static int dm9000_probe(struct device_d *dev)
edev->send = dm9000_eth_send;
edev->recv = dm9000_eth_rx;
edev->halt = dm9000_eth_halt;
edev->get_ethaddr = dm9000_get_ethaddr;
edev->set_ethaddr = dm9000_set_ethaddr;
if (pdata->srom)
edev->get_ethaddr = dm9000_get_ethaddr;
/* RESET device */
dm9000_reset(priv);

View File

@ -10,6 +10,7 @@ struct dm9000_platform_data {
unsigned long iobase;
unsigned long iodata;
int buswidth;
int srom;
};
#endif /* __DM9000_H__ */