net: calxedagmac: Convert to DM_ETH
To squash that nasty warning message and make better use of the newly gained OF_CONTROL feature, let's convert the calxedagmac driver to the "new" driver model. The conversion is pretty straight forward, mostly just adjusting the use of the involved data structures. The only actual change is the required split of the receive routine into a receive and free_pkt part. Also this allows us to get rid of the hardcoded platform information and explicit init calls. This also uses the opportunity to wrap the code decoding the MMIO register base address, to make it safe for using PHYS_64BIT later. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include <fdt_support.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <netdev.h>
|
||||
#include <scsi.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
@@ -52,18 +51,6 @@ int board_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* We know all the init functions have been run now */
|
||||
int board_eth_init(struct bd_info *bis)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
#ifdef CONFIG_CALXEDA_XGMAC
|
||||
rc += calxedaxgmac_initialize(0, 0xfff50000);
|
||||
rc += calxedaxgmac_initialize(1, 0xfff51000);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCSI_AHCI_PLAT
|
||||
void scsi_init(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user