]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: sh7723: ap325rxa: Drop duplicate HIZCRB macro
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 29 Aug 2018 01:18:30 +0000 (03:18 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 15 Sep 2018 01:19:06 +0000 (03:19 +0200)
Drop the macro as it is defined in sh7723.h already.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/ap325rxa/cpld-ap325rxa.c

index 16fadcbca780e33b76fd40d500ed6ae76668c5ca..5d9dc9387ed74f68cb1406ddfd4e0883c5235819 100644 (file)
@@ -61,8 +61,6 @@
 #define CPLD_DONE_ADR  ((vu_char *)0xA4050132)
 #define CPLD_DONE_DAT  0x20
 
-#define        HIZCRB                  ((vu_short *)0xA405015A)
-
 /* data */
 #define CPLD_NOMAL_START       0xA0A80000
 #define CPLD_SAFE_START                0xA0AC0000
@@ -191,7 +189,7 @@ void init_cpld(void)
        if (*CPLD_DONE_ADR & CPLD_DONE_DAT)     /* Already DONE */
                return;
 
-       *HIZCRB = 0x0000;
+       *((vu_short *)HIZCRB) = 0x0000;
        *CPLD_PFC_ADR = 0x7c00;                 /* FPGA PROG = OUTPUT */
 
        /* write CPLD data from NOR flash to device */