qca: ipq: Fixed compiler warnings

Fixed warnings for both ipq807x and ipq40xx
builds.

Change-Id: I69accebf525ee52f470335a14474378f5e7f65b0
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
This commit is contained in:
Saravanan Jaganathan 2016-07-09 17:39:39 +05:30
parent 705d77050f
commit 2230d5482d
10 changed files with 13 additions and 7 deletions

View file

@ -142,7 +142,7 @@ void __udelay(unsigned long usec)
} while (runcount < val);
}
inline unsigned long long gpt_to_sys_freq(unsigned long long gpt)
static inline unsigned long long gpt_to_sys_freq(unsigned long long gpt)
{
/*
* get_timer() expects the timer increments to be in terms

View file

@ -14,7 +14,6 @@
#ifndef _PLATFORM_IPQ40XX_IOMAP_H_
#define _PLATFORM_IPQ40XX_IOMAP_H_
#include <configs/ipq40xx.h>
#define CLK_CTL_BASE 0x01800000
#define GCNT_BASE 0x004a1000
#define TIMER_BASE 0x0B021000

View file

@ -437,4 +437,6 @@ struct qpic_nand_dev {
unsigned char *zero_oob;
};
extern int qpic_nand_init(struct qpic_nand_init_config *config);
#endif

View file

@ -37,6 +37,7 @@ extern env_t *nand_env_ptr;
extern int nand_env_init(void);
extern int nand_saveenv(void);
extern void nand_env_relocate_spec(void);
extern int ipq_spi_init(u16);
/*
* Don't have this as a '.bss' variable. The '.bss' and '.rel.dyn'
* sections seem to overlap.
@ -94,6 +95,9 @@ static board_ipq40xx_params_t *get_board_param(unsigned int machid)
int env_init(void)
{
int ret;
ret = 0;
qca_smem_flash_info_t sfi;
smem_get_boot_flash(&sfi.flash_type,

View file

@ -111,7 +111,7 @@ int board_mmc_init(bd_t *bis)
void board_nand_init(void)
{
int node, ret;
int node;
node = fdtdec_next_compatible(gd->fdt_blob, 0,
COMPAT_QCOM_QPIC_NAND);

View file

@ -115,4 +115,6 @@
#define MCI_FIFODEPTH 16
#define MCI_HFIFO_COUNT (MCI_FIFODEPTH / 2)
extern void emmc_clock_config(int mode);
#endif /* __QCA_MMC_H_ */

View file

@ -1284,7 +1284,7 @@ static const struct nand_flash_dev *flash_get_dev(uint8_t dev_id)
int i;
for (i = 0; nand_flash_ids[i].id; i++) {
if (nand_flash_ids[i].id == dev_id)
if (nand_flash_ids[i].dev_id == dev_id)
return &nand_flash_ids[i];
}

View file

@ -573,7 +573,7 @@ out:
return ret;
}
static int blsp_spi_write(struct ipq_spi_slave *ds, u8 *cmd_buffer,
static int blsp_spi_write(struct ipq_spi_slave *ds, const u8 *cmd_buffer,
unsigned int bytes)
{
int length, ret;

View file

@ -38,7 +38,7 @@ struct ipq_xhci {
};
static struct ipq_xhci ipq[IPQ_XHCI_COUNT];
inline int __board_usb_init(int index, enum usb_init_type init)
int __board_usb_init(int index, enum usb_init_type init)
{
return 0;
}

View file

@ -116,7 +116,6 @@
#define CONFIG_QPIC_NAND
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NAND_YAFFS
#define CONFIG_CMD_MEMORY
#define CONFIG_SYS_NAND_SELF_INIT
#define CONFIG_SYS_NAND_ONFI_DETECTION