-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 212347 b: refs/heads/master c: f344194 h: refs/heads/master i: 212345: f652e9a 212343: 991ab27 v: v3
- Loading branch information
David Howells
committed
Oct 7, 2010
1 parent
efaef78
commit 450714e
Showing
6 changed files
with
59 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 3dcc1e7f9fd48f20beefd41a684cd471a96565c5 | ||
refs/heads/master: f3441945da3a93ee4bef923628f280ad114cf49f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2005-2008 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later | ||
*/ | ||
|
||
#ifndef _MACH_FIO_FLAG_H | ||
#define _MACH_FIO_FLAG_H | ||
|
||
#include <asm/blackfin.h> | ||
#include <asm/irqflags.h> | ||
|
||
#if ANOMALY_05000311 | ||
#define BFIN_WRITE_FIO_FLAG(name) \ | ||
static inline void bfin_write_FIO_FLAG_##name(unsigned short val) \ | ||
{ \ | ||
unsigned long flags; \ | ||
local_irq_save_hw(flags); \ | ||
bfin_write16(FIO_FLAG_##name, val); \ | ||
bfin_read_CHIPID(); \ | ||
local_irq_restore_hw(flags); \ | ||
} | ||
BFIN_WRITE_FIO_FLAG(D) | ||
BFIN_WRITE_FIO_FLAG(C) | ||
BFIN_WRITE_FIO_FLAG(S) | ||
BFIN_WRITE_FIO_FLAG(T) | ||
|
||
#define BFIN_READ_FIO_FLAG(name) \ | ||
static inline u16 bfin_read_FIO_FLAG_##name(void) \ | ||
{ \ | ||
unsigned long flags; \ | ||
u16 ret; \ | ||
local_irq_save_hw(flags); \ | ||
ret = bfin_read16(FIO_FLAG_##name); \ | ||
bfin_read_CHIPID(); \ | ||
local_irq_restore_hw(flags); \ | ||
return ret; \ | ||
} | ||
BFIN_READ_FIO_FLAG(D) | ||
BFIN_READ_FIO_FLAG(C) | ||
BFIN_READ_FIO_FLAG(S) | ||
BFIN_READ_FIO_FLAG(T) | ||
|
||
#else | ||
#define bfin_write_FIO_FLAG_D(val) bfin_write16(FIO_FLAG_D, val) | ||
#define bfin_write_FIO_FLAG_C(val) bfin_write16(FIO_FLAG_C, val) | ||
#define bfin_write_FIO_FLAG_S(val) bfin_write16(FIO_FLAG_S, val) | ||
#define bfin_write_FIO_FLAG_T(val) bfin_write16(FIO_FLAG_T, val) | ||
#define bfin_read_FIO_FLAG_T() bfin_read16(FIO_FLAG_T) | ||
#define bfin_read_FIO_FLAG_C() bfin_read16(FIO_FLAG_C) | ||
#define bfin_read_FIO_FLAG_S() bfin_read16(FIO_FLAG_S) | ||
#define bfin_read_FIO_FLAG_D() bfin_read16(FIO_FLAG_D) | ||
#endif | ||
|
||
#endif /* _MACH_FIO_FLAG_H */ |