rcar_gen3: drivers: qos: D3: Drop MD pin check
authorMarek Vasut <[email protected]>
Thu, 13 Jun 2019 22:54:01 +0000 (00:54 +0200)
committerMarek Vasut <[email protected]>
Mon, 17 Jun 2019 13:11:28 +0000 (15:11 +0200)
The DBSC_SCFCTST2 is always written with the same value, no matter
what the MD pin value is, drop the entire check and just write the
register with the one and only possible value.

Signed-off-by: Marek Vasut <[email protected]>
Change-Id: I44d48ad59293562539a0c1d8ffd66333714e041e

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

index b58b7c4376aad04896b9e472a038fc70699e1e26..dd9c4c531212c6e22556f3a2f5fa731c058ada10 100644 (file)
@@ -18,8 +18,6 @@
 
 static void dbsc_setting(void)
 {
-       uint32_t md=0;
-
        /* Register write enable */
        io_write_32(DBSC_DBSYSCNT0, 0x00001234U);
 
@@ -30,18 +28,8 @@ static void dbsc_setting(void)
        io_write_32(DBSC_DBSCHSZ0, 0x00000001);
        io_write_32(DBSC_DBSCHRW0, 0x22421111);
 
-       md = (*((volatile uint32_t*)RST_MODEMR) & 0x00080000) >> 19;
-
-       switch (md) {
-       case 0x0:       //MD19=0 : DDR3L-1600, 4GByte(1GByte x4)
-               /* DDR1600 */
-               io_write_32(DBSC_SCFCTST2, 0x012F1123);
-               break;
-       default:        //MD19=1 : DDR3L-1856, 4GByte(1GByte x4)
-               /* DDR1856 */
-               io_write_32(DBSC_SCFCTST2, 0x012F1123);
-               break;
-       }
+       /* DDR3 */
+       io_write_32(DBSC_SCFCTST2, 0x012F1123);
 
        /* QoS Settings */
        io_write_32(DBSC_DBSCHQOS00, 0x00000F00);