diff options
author | Tom Rini <trini@konsulko.com> | 2020-07-11 11:50:49 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-11 11:50:49 -0400 |
commit | 610e1487c8921d266f5cb304bfb66eb71f1dc7dc (patch) | |
tree | 68991565dbed957030795ef3229020e1207709d3 /arch/arm/mach-uniphier/nand-reset.c | |
parent | 4a9146c29573dbfa661918280d9522a01f6ca919 (diff) | |
parent | 5785950369cd68d4409bf4d0e34d4b1894e5d0e9 (diff) |
Merge tag 'uniphier-v2020.10' of https://gitlab.denx.de/u-boot/custodians/u-boot-uniphier
UniPhier SoC updates for v2020.10
- remove workaround for Cortex-A72
- increase U-Boot proper size to 2MB
- sync DT with Linux
- add system bus controller driver
- improve serial driver
- add reset assertion to Denali NAND driver
Diffstat (limited to 'arch/arm/mach-uniphier/nand-reset.c')
-rw-r--r-- | arch/arm/mach-uniphier/nand-reset.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/arch/arm/mach-uniphier/nand-reset.c b/arch/arm/mach-uniphier/nand-reset.c deleted file mode 100644 index 11cadaabd8..0000000000 --- a/arch/arm/mach-uniphier/nand-reset.c +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 or later -/* - * Copyright (C) 2020 Socionext Inc. - * Author: Masahiro Yamada <yamada.masahiro@socionext.com> - */ - -#include <linux/errno.h> -#include <dm.h> -#include <dm/uclass-internal.h> -#include <reset.h> - -#include "init.h" - -/* - * Assert the Denali NAND controller reset if found. - * - * On LD4, the bootstrap process starts running after power-on reset regardless - * of the boot mode, here the pin-mux is not necessarily set up for NAND, then - * the controller is stuck. Assert the controller reset here, and should be - * deasserted in the driver after the pin-mux is correctly handled. For other - * SoCs, the bootstrap runs only when the boot mode selects ONFi, but it is yet - * effective when the boot swap is on. So, the reset should be asserted anyway. - */ -void uniphier_nand_reset_assert(void) -{ - struct udevice *dev; - struct reset_ctl_bulk resets; - int ret; - - ret = uclass_find_first_device(UCLASS_MTD, &dev); - if (ret || !dev) - return; - - /* make sure this is the Denali NAND controller */ - if (strcmp(dev->driver->name, "denali-nand-dt")) - return; - - ret = reset_get_bulk(dev, &resets); - if (ret) - return; - - reset_assert_bulk(&resets); -} |