Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d19f7bef authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Ocelot 3: Fix large number of warnings.

parent ad0b3655
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -51,7 +51,9 @@


extern unsigned long ocelot_fpga_base;
extern unsigned long ocelot_fpga_base;


#define OCELOT_FPGA_WRITE(x, y) writeb(x, ocelot_fpga_base + OCELOT_3_REG_##y)
#define __FPGA_REG_TO_ADDR(reg)						\
#define OCELOT_FPGA_READ(x) readb(ocelot_fpga_base + OCELOT_3_REG_##x)
	((void *) ocelot_fpga_base + OCELOT_3_REG_##reg)
#define OCELOT_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg))
#define OCELOT_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg))


#endif
#endif