For the proper reboot OdroidC4 requires to switch TFLASH_VDD_EN pin to
the input (high impedance?) mode. This should be handled by the proper
reset driver, but until then implement this logic in the common code.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I7333cc5b28817823fbc05a39162eb9e06b034a6f
#include <asm/arch/boot.h>
#include <env.h>
#include <asm/cache.h>
+#include <asm/gpio.h>
#include <asm/ptrace.h>
#include <linux/libfdt.h>
#include <linux/err.h>
#else
void reset_cpu(ulong addr)
{
+#ifdef CONFIG_TIZEN_ODROID_C4
+ unsigned int gpio;
+ const char *str_gpio = "aobus-banks3";
+
+ gpio_lookup_name(str_gpio, NULL, NULL, &gpio);
+ gpio_request(gpio, "reboot");
+ gpio_direction_input(gpio);
+#endif
psci_system_reset();
}
#endif
CONFIG_ARM=y
CONFIG_SYS_BOARD="odroid-n2"
+CONFIG_ARM_SMCCC=y
CONFIG_ARCH_MESON=y
CONFIG_SYS_TEXT_BASE=0x01000000
CONFIG_NR_DRAM_BANKS=1
CONFIG_DEBUG_UART_BASE=0xff803000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_IDENT_STRING=" odroid-c4"
+# CONFIG_PSCI_RESET is not set
CONFIG_DEFAULT_DEVICE_TREE="meson-sm1-odroid-c4"
CONFIG_DEBUG_UART=y
CONFIG_OF_BOARD_SETUP=y