]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/trab/tsc2000.c
NAND: add NAND_CMD_PARAM (0xec) definition
[people/ms/u-boot.git] / board / trab / tsc2000.c
CommitLineData
4f7cb08e
WD
1/*
2 * Functions to access the TSC2000 controller on TRAB board (used for scanning
3 * thermo sensors)
4 *
5 * Copyright (C) 2003 Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de
6 *
7 * Copyright (C) 2002 DENX Software Engineering, Wolfgang Denk, wd@denx.de
8 *
9 * See file CREDITS for list of people who contributed to this
10 * project.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * MA 02111-1307 USA
26 */
27
28#include <common.h>
ac67804f 29#include <asm/arch/s3c24x0_cpu.h>
eb0ae7f5 30#include <asm/io.h>
4265c35f 31#include <div64.h>
4f7cb08e
WD
32#include "tsc2000.h"
33
f5300ab2
WD
34#include "Pt1000_temp_data.h"
35
151ab83a
WD
36/* helper function */
37#define abs(value) (((value) < 0) ? ((value)*-1) : (value))
38
39/*
40 * Maximal allowed deviation between two immediate meassurments of an analog
41