コード例 #1
0
ファイル: firestone.c プロジェクト: ddstreet/skiboot
static bool firestone_probe(void)
{
	if (!dt_node_is_compatible(dt_root, "ibm,firestone"))
		return false;

	/* Lot of common early inits here */
	astbmc_early_init();
	prd_init();

	return true;
}
コード例 #2
0
ファイル: p9dsu.c プロジェクト: ajdlinux/skiboot
static bool p9dsu_probe(void)
{
	if (!dt_node_is_compatible(dt_root, "supermicro,p9dsu"))
		return false;

	/* Lot of common early inits here */
	astbmc_early_init();

	/* Setup UART for use by OPAL (Linux hvc) */
	uart_set_console_policy(UART_CONSOLE_OPAL);

	return true;
}
コード例 #3
0
ファイル: habanero.c プロジェクト: ddstreet/skiboot
static bool habanero_probe(void)
{
	const char *model;

	if (!dt_node_is_compatible(dt_root, "ibm,powernv"))
		return false;

	/* Temporary ... eventually we'll get that in compatible */
	model = dt_prop_get_def(dt_root, "model", NULL);
	if ((!model || !strstr(model, "habanero")) &&
	    (!dt_node_is_compatible(dt_root, "tyan,habanero")))
		return false;

	/* Lot of common early inits here */
	astbmc_early_init();

	prd_init();

	return true;
}