dm9000: allow to specify that no srom is present
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
8a902870f7
commit
54d6627f02
|
@ -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 = {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -10,6 +10,7 @@ struct dm9000_platform_data {
|
|||
unsigned long iobase;
|
||||
unsigned long iodata;
|
||||
int buswidth;
|
||||
int srom;
|
||||
};
|
||||
|
||||
#endif /* __DM9000_H__ */
|
||||
|
|
Loading…
Reference in New Issue