blob: 4362c53d8810617e0950288cdd040c0654c3fae2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Warren13ac5442012-12-11 13:34:12 +00002/*
Tom Warrenab0cc6b2015-03-04 16:36:00 -07003 * (C) Copyright 2010-2015
Tom Warren13ac5442012-12-11 13:34:12 +00004 * NVIDIA Corporation <www.nvidia.com>
Tom Warren13ac5442012-12-11 13:34:12 +00005 */
6
7#ifndef _TEGRA_GP_PADCTRL_H_
8#define _TEGRA_GP_PADCTRL_H_
9
10#define GP_HIDREV 0x804
11
12/* bit fields definitions for APB_MISC_GP_HIDREV register */
13#define HIDREV_CHIPID_SHIFT 8
14#define HIDREV_CHIPID_MASK (0xff << HIDREV_CHIPID_SHIFT)
15#define HIDREV_MAJORPREV_SHIFT 4
16#define HIDREV_MAJORPREV_MASK (0xf << HIDREV_MAJORPREV_SHIFT)
17
18/* CHIPID field returned from APB_MISC_GP_HIDREV register */
19#define CHIPID_TEGRA20 0x20
20#define CHIPID_TEGRA30 0x30
Tom Warrenc47e7172013-01-28 13:32:07 +000021#define CHIPID_TEGRA114 0x35
Tom Warrenb7ea6d12014-01-24 12:46:13 -070022#define CHIPID_TEGRA124 0x40
Tom Warrenab0cc6b2015-03-04 16:36:00 -070023#define CHIPID_TEGRA210 0x21
Tom Warren13ac5442012-12-11 13:34:12 +000024
25#endif /* _TEGRA_GP_PADCTRL_H_ */