summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/devices_ccxmx5x.h
blob: 39511d248426bb8814dd644965fbff46afa4300f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
  * Copyright 2012 Digi International, Inc. All Rights Reserved.
 */

/*
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */

#ifndef __DEVICES_CCXMX5X_H_
#define __DEVICES_CCXMX5X_H_

extern void ccxmx5x_set_mod_variant(u8 variant);
extern void ccxmx5x_set_mod_revision(u8 revision);
u8 ccxmx5x_get_mod_revision(void);
extern void ccxmx5x_set_mod_sn(u32 sn);
extern int ccxmx5x_create_sysfs_entries(void);

#if defined(CONFIG_MODULE_CCXMX51)
#define CCXMX5X_SYSFS_FNAME	"ccwmx51"
#include "board-ccwmx51.h"
#elif defined(CONFIG_MODULE_CCXMX53)
#define CCXMX5X_SYSFS_FNAME	"ccwmx53"
#include "board-ccwmx53.h"
#endif

/* I2C interrfaces configuration */
#ifdef CONFIG_MXC_I2C1_FAST
#define MXC_I2C1_BITRATE	400000
#else
#define MXC_I2C1_BITRATE	100000
#endif
#ifdef CONFIG_MXC_I2C2_FAST
#define MXC_I2C2_BITRATE	400000
#else
#define MXC_I2C2_BITRATE	100000
#endif
#ifdef CONFIG_MXC_I2C3_FAST
#define MXC_I2C3_BITRATE	400000
#else
#define MXC_I2C3_BITRATE	100000
#endif

#endif /* __DEVICES_CCXMX5X_H_ */