Skip to content

Commit

Permalink
[ARM] 4372/1: Define byte sizes in asm-arm/sizes.h
Browse files Browse the repository at this point in the history
Define SZ_512, SZ_256 and SZ_16 in asm-arm/sizes.h.
Remove the definitions from the at91*_devices.c files.

(Dependent on ARM patch #4370/2)

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Andrew Victor authored and Russell King committed May 11, 2007
1 parent 877d772 commit 54cb128
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 16 deletions.
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/at91rm9200_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include "generic.h"

#define SZ_512 0x00000200
#define SZ_256 0x00000100
#define SZ_16 0x00000010

/* --------------------------------------------------------------------
* USB Host
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/at91sam9260_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include "generic.h"

#define SZ_512 0x00000200
#define SZ_256 0x00000100
#define SZ_16 0x00000010

/* --------------------------------------------------------------------
* USB Host
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/at91sam9261_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

#include "generic.h"

#define SZ_512 0x00000200
#define SZ_256 0x00000100
#define SZ_16 0x00000010

/* --------------------------------------------------------------------
* USB Host
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/at91sam9263_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include "generic.h"

#define SZ_512 0x00000200
#define SZ_256 0x00000100
#define SZ_16 0x00000010

/* --------------------------------------------------------------------
* USB Host
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/mach-at91/at91sam9rl_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@

#include "generic.h"

#define SZ_512 0x00000200
#define SZ_256 0x00000100
#define SZ_16 0x00000010


/* --------------------------------------------------------------------
* MMC / SD
Expand Down
4 changes: 4 additions & 0 deletions include/asm-arm/sizes.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#define __sizes_h 1

/* handy sizes */
#define SZ_16 0x00000010
#define SZ_256 0x00000100
#define SZ_512 0x00000200

#define SZ_1K 0x00000400
#define SZ_4K 0x00001000
#define SZ_8K 0x00002000
Expand Down

0 comments on commit 54cb128

Please sign in to comment.