diff options
-rwxr-xr-x | arch/arm/mach-s5pv210/herring.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-s5pv210/herring.h b/arch/arm/mach-s5pv210/herring.h index b01b63c..9f8622e 100755 --- a/arch/arm/mach-s5pv210/herring.h +++ b/arch/arm/mach-s5pv210/herring.h @@ -3,6 +3,7 @@ */ #include <asm/system.h> +#include <asm/mach-types.h> #ifndef __HERRING_H__ #define __HERRING_H__ @@ -13,11 +14,12 @@ void herring_bt_uart_wake_peer(struct uart_port *port); extern void s3c_setup_uart_cfg_gpio(unsigned char port); #ifdef CONFIG_MACH_HERRING -# define herring_is_cdma_wimax_dev() ((system_rev & 0xFFF0) == 0x20) -# define herring_is_cdma_wimax_rev(n) \ - ((system_rev & 0xFFFF) == (0x20 | ((n) & 0xF))) +# define herring_is_cdma_wimax_dev() (machine_is_herring() && \ + ((system_rev & 0xFFF0) == 0x20)) +# define herring_is_cdma_wimax_rev(n) (herring_is_cdma_wimax_dev() && \ + (system_rev & 0xF) == ((n) & 0xF)) # define herring_is_cdma_wimax_rev0() herring_is_cdma_wimax_rev(0) -# define herring_is_tft_dev() (system_rev >= 0x30) +# define herring_is_tft_dev() (machine_is_herring() && (system_rev >= 0x30)) #else # define herring_is_cdma_wimax_dev() (0) # define herring_is_cdma_wimax_rev0() (0) |