~ubuntu-branches/ubuntu/trusty/apex/trusty

« back to all changes in this revision

Viewing changes to src/mach-mx3/mx31ads.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2009-11-10 11:55:15 UTC
  • mfrom: (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091110115515-6jjsf6rc8py35awe
Tags: 1.6.10ubuntu1
* Merge from debian testing, remaining changes:
  - Move apex VMA address to 4MiB to leave enough space for the ubuntu
  kernel and not overwrite apex in ram when loading.
  - nslu2 configuration: set CONFIG_RAMDISK_SIZE=0x0055FFF0 instead of
  0x005FFFF0 to make enough room for ubuntu initramfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
   Copyright (C) 2006 Marc Singer
7
7
 
 
8
   This program is free software; you can redistribute it and/or
 
9
   modify it under the terms of the GNU General Public License
 
10
   version 2 as published by the Free Software Foundation.
 
11
   Please refer to the file debian/copyright for further details.
 
12
 
8
13
   -----------
9
14
   DESCRIPTION
10
15
   -----------
16
21
 
17
22
/* ----- Includes */
18
23
 
 
24
#include <asm/reg.h>
 
25
 
19
26
/* ----- Types */
20
27
 
21
28
/* ----- Globals */
45
52
#define CPLD_CS8900_DMA __REG16(CPLD_PHYS + 0x22000)
46
53
#define CPLD_AUDIO      __REG16(CPLD_PHYS + 0x30000)
47
54
 
 
55
#define CPLD_CTRL1_ENET_RST               (1<<1)
 
56
#define CPLD_CTRL1_XUART_RST              (1<<1)
 
57
#define CPLD_CTRL1_UARTA_EN               (1<<2)
 
58
#define CPLD_CTRL1_UARTB_EN               (1<<3)
 
59
#define CPLD_CTRL1_UARTC_EN               (1<<4)
 
60
#define CPLD_CTRL1_LED0                   (1<<6)
 
61
#define CPLD_CTRL1_LED1                   (1<<7)
 
62
 
 
63
#define LED_ON(i)  ({ CPLD_CTRL1_CLR = CPLD_CTRL1_LED0<<(i&1); })
 
64
#define LED_OFF(i) ({ CPLD_CTRL1_SET = CPLD_CTRL1_LED0<<(i&1); })
 
65
 
48
66
 
49
67
#endif  /* __MX31ADS_H__ */