Beispiel #1
0
cfgdata split_cfg_line(char *cfgline)
{
	cfgdata retval;
	get_cfg_name(cfgline, retval.cfgname, '=');
	get_cfg_value(cfgline, retval.cfgval, '=');
	return retval;
} // split_cfg_line()
Beispiel #2
0
/*
 * Display Exynos GPIO information
 */
void gpio_info(void)
{
	unsigned gpio;

	for (gpio = 0; gpio < GPIO_MAX_PORT; gpio++) {
		int cfg = gpio_get_cfg(gpio);

		printk(BIOS_INFO, "GPIO_%-3d: %s", gpio, get_cfg_name(cfg));
		if (cfg == EXYNOS_GPIO_INPUT || cfg == EXYNOS_GPIO_OUTPUT)
			printk(BIOS_INFO, ", value = %d", gpio_get_value(gpio));
		printk(BIOS_INFO, "\n");
	}
}