rcar_gen3: drivers: qos: D3: Replace ad-hoc register addresses with macros
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 15 Jun 2019 12:55:29 +0000 (14:55 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Mon, 17 Jun 2019 13:11:28 +0000 (15:11 +0200)
Replace the remaining ad-hoc register addresses with proper macros.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: If125f0c8ef77ed280107324edaa05f21979a2c27

drivers/staging/renesas/rcar/qos/D3/qos_init_d3.c

index dd9c4c531212c6e22556f3a2f5fa731c058ada10..bc8c589f91c6dee598b881e2835bb7501e0b6d3b 100644 (file)
@@ -126,17 +126,17 @@ void qos_init_d3(void)
        }
 
        /* 3DG bus Leaf setting */
-       io_write_32(0xFD820808U, 0x00001234U);
-       io_write_32(0xFD820800U, 0x00000000U);
-       io_write_32(0xFD821800U, 0x00000000U);
-       io_write_32(0xFD822800U, 0x00000000U);
-       io_write_32(0xFD823800U, 0x00000000U);
+       io_write_32(GPU_ACT_GRD, 0x00001234U);
+       io_write_32(GPU_ACT0, 0x00000000U);
+       io_write_32(GPU_ACT1, 0x00000000U);
+       io_write_32(GPU_ACT2, 0x00000000U);
+       io_write_32(GPU_ACT3, 0x00000000U);
 
        /* RT bus Leaf setting */
-       io_write_32(0xF1300800U, 0x00000003U);
-       io_write_32(0xF1340800U, 0x00000003U);
-       io_write_32(0xFFC50800U, 0x00000000U);
-       io_write_32(0xFFC51800U, 0x00000000U);
+       io_write_32(CPU_ACT0, 0x00000003U);
+       io_write_32(CPU_ACT1, 0x00000003U);
+       io_write_32(RT_ACT0, 0x00000000U);
+       io_write_32(RT_ACT1, 0x00000000U);
 
        /* Resource Alloc start */
        io_write_32(QOSCTRL_RAEN,  0x00000001U);