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 * See file CREDITS for list of people who contributed to this
28 * This program is free software; you can redistribute it and/or
29 * modify it under the terms of the GNU General Public License as
30 * published by the Free Software Foundation; either version 2 of
31 * the License, or (at your option) any later version.
33 * This program is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
38 * You should have received a copy of the GNU General Public License
39 * along with this program. If not, see <http://www.gnu.org/licenses/>.
43 #include <asm/arch/tegra20.h>
44 #include <asm/arch/pmc.h>
46 static int do_enterrcm(cmd_tbl_t *cmdtp, int flag, int argc,
49 struct pmc_ctlr *pmc = (struct pmc_ctlr *)TEGRA20_PMC_BASE;
51 puts("Entering RCM...\n");
54 pmc->pmc_scratch0 = 2;
62 enterrcm, 1, 0, do_enterrcm,
63 "reset Tegra and enter USB Recovery Mode",