ARM: socfpga: Zap all the UART handling complexity
Subsystems (3)
PATCH 1/1 ARM: socfpga: Zap all the UART handling complexity
The UART reset handling is now done via reset framework using the SoCFPGA reset driver. The UART console assignment is done using the DM and console framework. Nuke all this comlexity, since it is just duplicating the same functionality, badly.
Signed-off-by Marek Vasut <[email protected]>
Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
--- arch/arm/mach-socfpga/include/mach/misc.h | 6 - .../include/mach/reset_manager_arria10.h | 1 - arch/arm/mach-socfpga/misc_arria10.c | 127 --------------------- arch/arm/mach-socfpga/reset_manager_arria10.c | 12 -- arch/arm/mach-socfpga/spl_a10.c | 3 - 5 files changed, 149 deletions(-)
arch/arm/mach-socfpga/include/mach/misc.h +0 -6
@@ -21,12 +21,6 @@ void socfpga_fpga_add(void);static inline void socfpga_fpga_add (void ) {}#endif -#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10 ) -unsigned int dedicated_uart_com_port (const void *blob); -unsigned int shared_uart_com_port (const void *blob); -unsigned int uart_com_port (const void *blob); -#endif -void do_bridge_reset (int enable);#endif /* _MISC_H_ */
arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h +0 -1
@@ -15,7 +15,6 @@ void socfpga_emac_manage_reset(ulong emacbase, u32 state);int socfpga_reset_deassert_bridges_handoff (void );void socfpga_reset_assert_fpga_connected_peripherals (void );void socfpga_reset_deassert_osc1wd0 (void ); -void socfpga_reset_uart (int assert);int socfpga_bridges_reset (void );struct socfpga_reset_manager {
arch/arm/mach-socfpga/misc_arria10.c +0 -127
133 lines not on this page · raw message
arch/arm/mach-socfpga/reset_manager_arria10.c +0 -12
@@ -27,18 +27,6 @@ static const struct socfpga_system_manager *sysmgr_regs = ALT_RSTMGR_PER0MODRST_QSPIECC_SET_MSK | \ ALT_RSTMGR_PER0MODRST_SDMMCECC_SET_MSK) -void socfpga_reset_uart (int assert) -{ -unsigned int com_port; - - com_port =uart_com_port (gd->fdt_blob); - -if (com_port ==SOCFPGA_UART1_ADDRESS ) -socfpga_per_reset (SOCFPGA_RESET (UART1 ), assert); -else if (com_port ==SOCFPGA_UART0_ADDRESS ) -socfpga_per_reset (SOCFPGA_RESET (UART0 ), assert); -} -static const u32 per0fpgamasks[] = {ALT_RSTMGR_PER0MODRST_EMACECC0_SET_MSK |ALT_RSTMGR_PER0MODRST_EMAC0_SET_MSK ,
arch/arm/mach-socfpga/spl_a10.c +0 -3
@@ -75,9 +75,6 @@ void spl_board_init(void)config_dedicated_pins (gd->fdt_blob);WATCHDOG_RESET (); -/* Release UART from reset */ -socfpga_reset_uart (0 ); -/* enable console uart printing */ preloader_console_init ();
Signature · 1 line
2.16.2