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