up_gpioinitialize() was invented while we were working on the BSP for
BCM4390x. Its purpose was for initializing GPIO ports and registering
device nodes for them during the boot sequence, but it was a bad idea.
Available GPIO ports may varies from device to device. This means that
exporting which GPIO ports should be decided at board initialization,
not OS or chip initialization. Having up_gpioinitialize() at the
chip-specific layer is breaking the OS design.
This is why up_gpioinitialize() had been left abandoned for a long time
and finally become an empty function. It is time to remove it
completely. This commit does not make any functional differences.
Change-Id: I0217b377050613502933f4b6ba7b8024ff9937f1
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
up_l2ccinitialize();
board_led_on(LED_IRQSENABLED);
-
-#ifdef CONFIG_GPIO
- /* Initialize GPIO */
- up_gpioinitialize();
-#endif
}
void up_rnginitialize(void);
#endif
-/* GPIO ********************************************************************/
-#ifdef CONFIG_GPIO
-void up_gpioinitialize(void);
-#else
-#define up_gpioinitialize()
-#endif
-
/* Debug ********************************************************************/
#ifdef CONFIG_STACK_COLORATION
void up_stack_color(FAR void *stackbase, size_t nbytes);
#endif
}
-
-/****************************************************************************
- * Name: up_gpioinitialize
- *
- * Description:
- * Dummy function. Real function s5j_gpioinitialize, where GPIOs are exposed,
- * called from board_init().
- *
- * Input Parameters:
- * None
- *
- * Returned Value:
- * None
- *
- ****************************************************************************/
-void up_gpioinitialize(void)
-{
-
-}
-
/****************************************************************************
* Name: up_destroy_gpio
*