From 1c2736f90912b58df18595d474e5c917c7ecd195 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 20 Apr 2014 19:41:23 +0200 Subject: [PATCH] asix-sigma: Encode the opcodes as hex values Just encode the opcodes as hexadecimal values. This makes for better readability when mapping the communication dump with the sigma to the code. Signed-off-by: Marek Vasut --- hardware/asix-sigma/asix-sigma.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hardware/asix-sigma/asix-sigma.h b/hardware/asix-sigma/asix-sigma.h index 528e6617..b8362e0d 100644 --- a/hardware/asix-sigma/asix-sigma.h +++ b/hardware/asix-sigma/asix-sigma.h @@ -55,17 +55,17 @@ enum sigma_read_register { READ_TEST = 15, }; -#define REG_ADDR_LOW (0 << 4) -#define REG_ADDR_HIGH (1 << 4) -#define REG_DATA_LOW (2 << 4) -#define REG_DATA_HIGH_WRITE (3 << 4) -#define REG_READ_ADDR (4 << 4) -#define REG_DRAM_WAIT_ACK (5 << 4) +#define REG_ADDR_LOW (0x0 << 4) +#define REG_ADDR_HIGH (0x1 << 4) +#define REG_DATA_LOW (0x2 << 4) +#define REG_DATA_HIGH_WRITE (0x3 << 4) +#define REG_READ_ADDR (0x4 << 4) +#define REG_DRAM_WAIT_ACK (0x5 << 4) /* Bit (1 << 4) can be low or high (double buffer / cache) */ -#define REG_DRAM_BLOCK (6 << 4) -#define REG_DRAM_BLOCK_BEGIN (8 << 4) -#define REG_DRAM_BLOCK_DATA (10 << 4) +#define REG_DRAM_BLOCK (0x6 << 4) +#define REG_DRAM_BLOCK_BEGIN (0x8 << 4) +#define REG_DRAM_BLOCK_DATA (0xa << 4) #define LEDSEL0 6 #define LEDSEL1 7