1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
5 * Derived from code (arch/arm/lib/reset.c) that is:
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Marius Groeger <mgroeger@sysgo.de>
12 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
13 * Alex Zuepke <azu@sysgo.de>
16 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
20 * http://www.dave-tech.it
21 * http://www.wawnet.biz
22 * mailto:info@wawnet.biz
24 * (C) Copyright 2004 Texas Insturments
28 #include <asm/arch/tegra.h>
29 #include <asm/arch-tegra/pmc.h>
31 static int do_enterrcm(cmd_tbl_t *cmdtp, int flag, int argc,
34 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE;
36 puts("Entering RCM...\n");
39 pmc->pmc_scratch0 = 2;
47 enterrcm, 1, 0, do_enterrcm,
48 "reset Tegra and enter USB Recovery Mode",