tegra210_clk_per.c
Megabyte-scale size constant in source
SHA-2569ba70d78259dcc03dbe2c787900d059d82ef3e0bf9f633b2c6fa89fc08e4caba
MaleculeH(Mg)
Evidence
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright 2020 Michal Meloun <mmel@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must repr …
17:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE …
24:47… VISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/param.h>
29#include <sys/systm.h>
30#include <sys/bus.h>
31#include <sys/lock.h>
32#include <sys/mutex.h>
33#include <sys/rman.h>
34
35#include <machine/bus.h>
36
37#include <dev/clk/clk.h>
38
39#include <dt-bindings/clock/tegra210-car.h>
40#include <dt-bindings/reset/tegra210-car.h>
41
42#include "tegra210_car.h"
43
44/* Bits in base register. */
45#define PERLCK_AMUX_MASK 0x0F
46#define PERLCK_AMUX_SHIFT 16
47#define PERLCK_AMUX_DIS (1 << 20)
48#define PERLCK_UDIV_DIS (1 << 24)
49#define PERLCK_ENA_MASK (1 << 28)
50#define PERLCK_MUX_SHIFT 29
51#define PERLCK_MUX_MASK 0x0 …