Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mbus.h
Go to the documentation of this file.
1 /*
2  * Marvell MBUS common definitions.
3  *
4  * Copyright (C) 2008 Marvell Semiconductor
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2. This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10 
11 #ifndef __LINUX_MBUS_H
12 #define __LINUX_MBUS_H
13 
15 {
16  /*
17  * The 4-bit MBUS target ID of the DRAM controller.
18  */
20 
21  /*
22  * The base address, size, and MBUS attribute ID for each
23  * of the possible DRAM chip selects. Peripherals are
24  * required to support at least 4 decode windows.
25  */
26  int num_cs;
32  } cs[4];
33 };
34 
35 /*
36  * The Marvell mbus is to be found only on SOCs from the Orion family
37  * at the moment. Provide a dummy stub for other architectures.
38  */
39 #ifdef CONFIG_PLAT_ORION
40 extern const struct mbus_dram_target_info *mv_mbus_dram_info(void);
41 #else
42 static inline const struct mbus_dram_target_info *mv_mbus_dram_info(void)
43 {
44  return NULL;
45 }
46 #endif
47 #endif