Deleted Added
full compact
s3c24x0reg.h (210458) s3c24x0reg.h (236990)
1/* $NetBSD: s3c24x0reg.h,v 1.7 2004/02/12 03:52:46 bsh Exp $ */
2
3/*-
4 * Copyright (c) 2003 Genetec corporation All rights reserved.
5 * Written by Hiroyuki Bessho for Genetec corporation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
1/* $NetBSD: s3c24x0reg.h,v 1.7 2004/02/12 03:52:46 bsh Exp $ */
2
3/*-
4 * Copyright (c) 2003 Genetec corporation All rights reserved.
5 * Written by Hiroyuki Bessho for Genetec corporation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sys/arm/s3c2xx0/s3c24x0reg.h 210458 2010-07-24 23:41:09Z andrew $
31 * $FreeBSD: head/sys/arm/s3c2xx0/s3c24x0reg.h 236990 2012-06-13 04:59:00Z imp $
32 */
33
34
35/*
36 * Samsung S3C2410X/2400 processor is ARM920T based integrated CPU
37 *
38 * Reference:
32 */
33
34
35/*
36 * Samsung S3C2410X/2400 processor is ARM920T based integrated CPU
37 *
38 * Reference:
39 * S3C2410X User's Manual
39 * S3C2410X User's Manual
40 * S3C2400 User's Manual
41 */
42#ifndef _ARM_S3C2XX0_S3C24X0REG_H_
43#define _ARM_S3C2XX0_S3C24X0REG_H_
44
45/* common definitions for S3C2800, S3C2410 and S3C2440 */
46#include <arm/s3c2xx0/s3c2xx0reg.h>
47

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

686#define S3C24X0_SPI_SIZE 0x20
687
688#define SPI_SPCON 0x00
689#define SPCON_TAGD (1<<0) /* Tx auto garbage */
690#define SPCON_CPHA (1<<1)
691#define SPCON_CPOL (1<<2)
692#define SPCON_IDLELOW_RISING (0|0)
693#define SPCON_IDLELOW_FALLING (0|SPCON_CPHA)
40 * S3C2400 User's Manual
41 */
42#ifndef _ARM_S3C2XX0_S3C24X0REG_H_
43#define _ARM_S3C2XX0_S3C24X0REG_H_
44
45/* common definitions for S3C2800, S3C2410 and S3C2440 */
46#include <arm/s3c2xx0/s3c2xx0reg.h>
47

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

686#define S3C24X0_SPI_SIZE 0x20
687
688#define SPI_SPCON 0x00
689#define SPCON_TAGD (1<<0) /* Tx auto garbage */
690#define SPCON_CPHA (1<<1)
691#define SPCON_CPOL (1<<2)
692#define SPCON_IDLELOW_RISING (0|0)
693#define SPCON_IDLELOW_FALLING (0|SPCON_CPHA)
694#define SPCON_IDLEHIGH_FALLING (SPCON_CPOL|0)
694#define SPCON_IDLEHIGH_FALLING (SPCON_CPOL|0)
695#define SPCON_IDLEHIGH_RISING (SPCON_CPOL|SPCON_CPHA)
696#define SPCON_MSTR (1<<3)
697#define SPCON_ENSCK (1<<4)
698#define SPCON_SMOD_SHIFT 5
699#define SPCON_SMOD_MASK (0x03<<SPCON_SMOD_SHIFT)
700#define SPCON_SMOD_POLL (0x00<<SPCON_SMOD_SHIFT)
701#define SPCON_SMOD_INT (0x01<<SPCON_SMOD_SHIFT)
702#define SPCON_SMOD_DMA (0x02<<SPCON_SMOD_SHIFT)

--- 16 unchanged lines hidden ---
695#define SPCON_IDLEHIGH_RISING (SPCON_CPOL|SPCON_CPHA)
696#define SPCON_MSTR (1<<3)
697#define SPCON_ENSCK (1<<4)
698#define SPCON_SMOD_SHIFT 5
699#define SPCON_SMOD_MASK (0x03<<SPCON_SMOD_SHIFT)
700#define SPCON_SMOD_POLL (0x00<<SPCON_SMOD_SHIFT)
701#define SPCON_SMOD_INT (0x01<<SPCON_SMOD_SHIFT)
702#define SPCON_SMOD_DMA (0x02<<SPCON_SMOD_SHIFT)

--- 16 unchanged lines hidden ---