tegra_soctherm.c (b9cbd68d1cbbb21eade18182a797d5fa7d0dc110) tegra_soctherm.c (8a7a4683b0832ea18c028588a3c49946d499c371)
1/*-
2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 37 unchanged lines hidden (view full) ---

46#include <machine/bus.h>
47
48#include <dev/extres/clk/clk.h>
49#include <dev/extres/hwreset/hwreset.h>
50#include <dev/ofw/ofw_bus.h>
51#include <dev/ofw/ofw_bus_subr.h>
52
53#include <arm/nvidia/tegra_efuse.h>
1/*-
2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 37 unchanged lines hidden (view full) ---

46#include <machine/bus.h>
47
48#include <dev/extres/clk/clk.h>
49#include <dev/extres/hwreset/hwreset.h>
50#include <dev/ofw/ofw_bus.h>
51#include <dev/ofw/ofw_bus_subr.h>
52
53#include <arm/nvidia/tegra_efuse.h>
54#include <gnu/dts/include/dt-bindings/thermal/tegra124-soctherm.h>
54#include <dt-bindings/thermal/tegra124-soctherm.h>
55#include "tegra_soctherm_if.h"
56
57/* Per sensors registers - base is 0x0c0*/
58#define TSENSOR_CONFIG0 0x000
59#define TSENSOR_CONFIG0_TALL(x) (((x) & 0xFFFFF) << 8)
60#define TSENSOR_CONFIG0_STATUS_CLR (1 << 5)
61#define TSENSOR_CONFIG0_TCALC_OVERFLOW (1 << 4)
62#define TSENSOR_CONFIG0_OVERFLOW (1 << 3)

--- 782 unchanged lines hidden ---
55#include "tegra_soctherm_if.h"
56
57/* Per sensors registers - base is 0x0c0*/
58#define TSENSOR_CONFIG0 0x000
59#define TSENSOR_CONFIG0_TALL(x) (((x) & 0xFFFFF) << 8)
60#define TSENSOR_CONFIG0_STATUS_CLR (1 << 5)
61#define TSENSOR_CONFIG0_TCALC_OVERFLOW (1 << 4)
62#define TSENSOR_CONFIG0_OVERFLOW (1 << 3)

--- 782 unchanged lines hidden ---