net: e1000: Fix build warnings for 32-bit
[oweals/u-boot.git] / drivers / net / fsl-mc / mc_sys.c
index 7c8e003ad0015c08eed3778cf34f0a61ca966ad5..2136670370049546cd6c2f2f1e507ff8b3a52fa1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Freescale Layerscape MC I/O wrapper
  *
- * Copyright (C) 2014 Freescale Semiconductor, Inc.
+ * Copyright (C) 2013-2015 Freescale Semiconductor, Inc.
  * Author: German Rivera <German.Rivera@freescale.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 
 #define MC_CMD_HDR_READ_CMDID(_hdr) \
-       ((uint16_t)u64_dec((_hdr), MC_CMD_HDR_CMDID_O, MC_CMD_HDR_CMDID_S))
+       ((uint16_t)mc_dec((_hdr), MC_CMD_HDR_CMDID_O, MC_CMD_HDR_CMDID_S))
 
 /**
  * mc_send_command - Send MC command and wait for response
@@ -32,7 +32,7 @@ int mc_send_command(struct fsl_mc_io *mc_io,
                    struct mc_command *cmd)
 {
        enum mc_cmd_status status;
-       int timeout = 2000;
+       int timeout = 6000;
 
        mc_write_command(mc_io->mmio_regs, cmd);
 
@@ -52,7 +52,7 @@ int mc_send_command(struct fsl_mc_io *mc_io,
        if (status != MC_CMD_STATUS_OK) {
                printf("Error: MC command failed (portal: %p, obj handle: %#x, command: %#x, status: %#x)\n",
                       mc_io->mmio_regs,
-                      (unsigned int)MC_CMD_HDR_READ_AUTHID(cmd->header),
+                       (unsigned int)MC_CMD_HDR_READ_TOKEN(cmd->header),
                       (unsigned int)MC_CMD_HDR_READ_CMDID(cmd->header),
                       (unsigned int)status);