Beispiel #1
0
extern int checkboard (void)
{
	printf ("\n\nBoard: STx7200-Reference (MB671)"
#ifdef CONFIG_ST40_SE_MODE
		"  [32-bit mode]"
#else
		"  [29-bit mode]"
#endif
		"\n");

#ifdef CONFIG_DRIVER_NETSTMAC
#if defined(CONFIG_STMAC_MAC0)
	/* On-board PHY on MII0 in RMII mode, using MII_CLK */
	stx7200_configure_ethernet (0, 1, 0, 0);
#elif defined(CONFIG_STMAC_MAC1)
	/* External PHY on MII1 in MII mode, using its own clock */
	stx7200_configure_ethernet (1, 0, 1, 1);
#endif
#endif	/* CONFIG_DRIVER_NETSTMAC */

#if defined(CONFIG_ST40_STM_SATA)
	stx7200_configure_sata ();
#endif	/* CONFIG_ST40_STM_SATA */

	return 0;
}
static int __init device_init(void)
{
	stx7200_configure_ssc(&ssc_private_info);
	stx7200_configure_usb(0);
	stx7200_configure_usb(1);
	stx7200_configure_usb(2);
	stx7200_configure_ethernet(0, 0, 0, 0);
	stx7200_configure_lirc(NULL);
	stx7200_configure_nand(&nand_devices[0]);
	stx7200_configure_nand(&nand_devices[1]);

	return platform_add_devices(cb101_devices, ARRAY_SIZE(cb101_devices));
}
int checkboard (void)
{
	printf ("\n\nBoard: cb101"
#ifdef CONFIG_SH_SE_MODE
		"  [32-bit mode]"
#else
		"  [29-bit mode]"
#endif
		"\n");

#ifdef CONFIG_DRIVER_NETSTMAC
#if defined(CONFIG_STMAC_MAC0)
	/* On-board PHY (MII0) in MII mode, using MII_CLK */
	stx7200_configure_ethernet(0, 0, 0, 0);
#endif	/* CONFIG_STMAC_MAC0 */
#endif	/* CONFIG_DRIVER_NETSTMAC */
	return 0;
}