summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-04-13 04:15:33 +0200
committerRamon Fried <ramon@neureality.ai>2022-04-13 15:13:54 +0300
commit1494a4aacef17a3fc94847104e98d083da7659c9 (patch)
tree9ceb0736da5259ecd6d9432d9db166bbea759dac /drivers/net
parent3928055e4fd2d2b00cacadebee6233e869eadbfc (diff)
net: dm9000: Drop dm9000.h and staticize SROM access
Dispose of dm9000.h because none of the function prototypes declared in it are called anywhere in the codebase. Staticize dm9000_read_srom_word() because it is now called only from within the dm9000 driver. Drop dm9000_write_srom_word() because it is no longer used. Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/dm9000x.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
index 36411bd8eb..a8ce8ac02e 100644
--- a/drivers/net/dm9000x.c
+++ b/drivers/net/dm9000x.c
@@ -54,7 +54,6 @@
#include <malloc.h>
#include <net.h>
#include <asm/io.h>
-#include <dm9000.h>
#include <linux/delay.h>
#include "dm9000x.h"
@@ -557,7 +556,7 @@ static int dm9000_rx(struct eth_device *dev)
* Read a word data from SROM
*/
#if !defined(CONFIG_DM9000_NO_SROM)
-void dm9000_read_srom_word(int offset, u8 *to)
+static void dm9000_read_srom_word(int offset, u8 *to)
{
dm9000_iow(DM9000_EPAR, offset);
dm9000_iow(DM9000_EPCR, 0x4);
@@ -567,16 +566,6 @@ void dm9000_read_srom_word(int offset, u8 *to)
to[1] = dm9000_ior(DM9000_EPDRH);
}
-void dm9000_write_srom_word(int offset, u16 val)
-{
- dm9000_iow(DM9000_EPAR, offset);
- dm9000_iow(DM9000_EPDRH, ((val >> 8) & 0xff));
- dm9000_iow(DM9000_EPDRL, (val & 0xff));
- dm9000_iow(DM9000_EPCR, 0x12);
- mdelay(8);
- dm9000_iow(DM9000_EPCR, 0);
-}
-
static void dm9000_get_enetaddr(struct eth_device *dev)
{
int i;