]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/block/libata.c
arm: mx6: remove CONFIG_ macros that are now included in Kconfig from header file
[karo-tx-uboot.git] / drivers / block / libata.c
index bbe16a22879b65904595fa77964212fe145f1dbc..d684270dcda18f2d9426042473e403a662c00c80 100644 (file)
@@ -3,21 +3,7 @@
  *             Dave Liu <daveliu@freescale.com>
  *             port from the libata of linux kernel
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <libata.h>
@@ -107,41 +93,41 @@ void ata_dump_id(u16 *id)
 
        /* Total sectors of device  */
        n_sectors = ata_id_n_sectors(id);
-       printf("Capablity: %d sectors\n\r", n_sectors);
+       printf("Capablity: %lld sectors\n\r", n_sectors);
 
-       printf ("id[49]: capabilities ==0x%04x\n"
-               "id[53]: field valid ==0x%04x\n"
-               "id[63]: mwdma ==0x%04x\n"
-               "id[64]: pio ==0x%04x\n"
-               "id[75]: queue depth ==0x%04x\n",
+       printf ("id[49]: capabilities = 0x%04x\n"
+               "id[53]: field valid = 0x%04x\n"
+               "id[63]: mwdma = 0x%04x\n"
+               "id[64]: pio = 0x%04x\n"
+               "id[75]: queue depth = 0x%04x\n",
                id[49],
                id[53],
                id[63],
                id[64],
                id[75]);
 
-       printf ("id[76]: sata capablity ==0x%04x\n"
-               "id[78]: sata features supported ==0x%04x\n"
-               "id[79]: sata features enable ==0x%04x\n",
+       printf ("id[76]: sata capablity = 0x%04x\n"
+               "id[78]: sata features supported = 0x%04x\n"
+               "id[79]: sata features enable = 0x%04x\n",
                id[76],
                id[78],
                id[79]);
 
-       printf ("id[80]: major version ==0x%04x\n"
-               "id[81]: minor version ==0x%04x\n"
-               "id[82]: command set supported 1 ==0x%04x\n"
-               "id[83]: command set supported 2 ==0x%04x\n"
-               "id[84]: command set extension ==0x%04x\n",
+       printf ("id[80]: major version = 0x%04x\n"
+               "id[81]: minor version = 0x%04x\n"
+               "id[82]: command set supported 1 = 0x%04x\n"
+               "id[83]: command set supported 2 = 0x%04x\n"
+               "id[84]: command set extension = 0x%04x\n",
                id[80],
                id[81],
                id[82],
                id[83],
                id[84]);
-       printf ("id[85]: command set enable 1 ==0x%04x\n"
-               "id[86]: command set enable 2 ==0x%04x\n"
-               "id[87]: command set default ==0x%04x\n"
-               "id[88]: udma ==0x%04x\n"
-               "id[93]: hardware reset result ==0x%04x\n",
+       printf ("id[85]: command set enable 1 = 0x%04x\n"
+               "id[86]: command set enable 2 = 0x%04x\n"
+               "id[87]: command set default = 0x%04x\n"
+               "id[88]: udma = 0x%04x\n"
+               "id[93]: hardware reset result = 0x%04x\n",
                id[85],
                id[86],
                id[87],