~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to arch/arm/plat-omap/include/plat/common.h

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
28
28
#define __ARCH_ARM_MACH_OMAP_COMMON_H
29
29
 
30
 
#include <linux/delay.h>
31
 
 
32
30
#include <plat/i2c.h>
33
 
 
34
 
struct sys_timer;
35
 
 
36
 
extern void omap_map_common_io(void);
37
 
extern struct sys_timer omap_timer;
38
 
extern bool omap_32k_timer_init(void);
 
31
#include <plat/omap_hwmod.h>
 
32
 
39
33
extern int __init omap_init_clocksource_32k(void);
40
34
extern unsigned long long notrace omap_32k_sched_clock(void);
41
35
 
42
36
extern void omap_reserve(void);
43
37
 
44
 
/*
45
 
 * IO bases for various OMAP processors
46
 
 * Except the tap base, rest all the io bases
47
 
 * listed are physical addresses.
48
 
 */
49
 
struct omap_globals {
50
 
        u32             class;          /* OMAP class to detect */
51
 
        void __iomem    *tap;           /* Control module ID code */
52
 
        unsigned long   sdrc;           /* SDRAM Controller */
53
 
        unsigned long   sms;            /* SDRAM Memory Scheduler */
54
 
        unsigned long   ctrl;           /* System Control Module */
55
 
        unsigned long   ctrl_pad;       /* PAD Control Module */
56
 
        unsigned long   prm;            /* Power and Reset Management */
57
 
        unsigned long   cm;             /* Clock Management */
58
 
        unsigned long   cm2;
59
 
};
60
 
 
61
 
void omap2_set_globals_242x(void);
62
 
void omap2_set_globals_243x(void);
63
 
void omap2_set_globals_3xxx(void);
64
 
void omap2_set_globals_443x(void);
65
 
void omap2_set_globals_ti816x(void);
66
 
 
67
 
/* These get called from omap2_set_globals_xxxx(), do not call these */
68
 
void omap2_set_globals_tap(struct omap_globals *);
69
 
void omap2_set_globals_sdrc(struct omap_globals *);
70
 
void omap2_set_globals_control(struct omap_globals *);
71
 
void omap2_set_globals_prcm(struct omap_globals *);
72
 
 
73
 
void omap3_map_io(void);
74
 
 
75
 
/**
76
 
 * omap_test_timeout - busy-loop, testing a condition
77
 
 * @cond: condition to test until it evaluates to true
78
 
 * @timeout: maximum number of microseconds in the timeout
79
 
 * @index: loop index (integer)
80
 
 *
81
 
 * Loop waiting for @cond to become true or until at least @timeout
82
 
 * microseconds have passed.  To use, define some integer @index in the
83
 
 * calling code.  After running, if @index == @timeout, then the loop has
84
 
 * timed out.
85
 
 */
86
 
#define omap_test_timeout(cond, timeout, index)                 \
87
 
({                                                              \
88
 
        for (index = 0; index < timeout; index++) {             \
89
 
                if (cond)                                       \
90
 
                        break;                                  \
91
 
                udelay(1);                                      \
92
 
        }                                                       \
93
 
})
94
 
 
95
 
extern struct device *omap2_get_mpuss_device(void);
96
 
extern struct device *omap2_get_iva_device(void);
97
 
extern struct device *omap2_get_l3_device(void);
98
 
extern struct device *omap4_get_dsp_device(void);
 
38
extern int omap_dss_reset(struct omap_hwmod *);
 
39
 
 
40
void omap_sram_init(void);
99
41
 
100
42
#endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */