~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/arm/plat-stmp3xxx/include/mach/pins.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Freescale STMP37XX/STMP378X Pin multiplexing interface definitions
3
 
 *
4
 
 * Author: Vladislav Buzov <vbuzov@embeddedalley.com>
5
 
 *
6
 
 * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
7
 
 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
8
 
 */
9
 
 
10
 
/*
11
 
 * The code contained herein is licensed under the GNU General Public
12
 
 * License. You may obtain a copy of the GNU General Public License
13
 
 * Version 2 or later at the following locations:
14
 
 *
15
 
 * http://www.opensource.org/licenses/gpl-license.html
16
 
 * http://www.gnu.org/copyleft/gpl.html
17
 
 */
18
 
#ifndef __ASM_PLAT_PINS_H
19
 
#define __ASM_PLAT_PINS_H
20
 
 
21
 
#define STMP3XXX_PINID(bank, pin)       (bank * 32 + pin)
22
 
#define STMP3XXX_PINID_TO_BANK(pinid)   (pinid / 32)
23
 
#define STMP3XXX_PINID_TO_PINNUM(pinid) (pinid % 32)
24
 
 
25
 
/*
26
 
 * Special invalid pin identificator to show a pin doesn't exist
27
 
 */
28
 
#define PINID_NO_PIN    STMP3XXX_PINID(0xFF, 0xFF)
29
 
 
30
 
#endif /* __ASM_PLAT_PINS_H */