summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2012-07-26 14:27:31 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2012-07-26 14:27:31 +0800
commitd52f815a0dca515559d8239109fbc07a2dd99929 (patch)
treec820c88f98fcb2d6db4665807dc76ad9b1d1a822 /board/freescale
parent2dbfc63a4a0206d31e419d9e595828e6408dce48 (diff)
downloadu-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.zip
u-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.tar.gz
u-boot-imx-d52f815a0dca515559d8239109fbc07a2dd99929.tar.bz2
ENGR00217401 common: fix build warning
Fix the build warning in uboot build. Fix bug of incorrect dereference to periph2 clock pre divider. Fix incorrect type of maxpackage size assign, even it's not used at all in fastboot. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/common/recovery.c2
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c
index 6a402ca..df3f367 100644
--- a/board/freescale/common/recovery.c
+++ b/board/freescale/common/recovery.c
@@ -79,7 +79,7 @@ extern struct reco_envs supported_reco_envs[];
void setup_recovery_env(void)
{
- char *env, *boot_args, *boot_cmd;
+ char *env, *boot_cmd;
int bootdev = get_boot_device();
boot_cmd = supported_reco_envs[bootdev].cmd;
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index daeff26..0bfd700 100644
--- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c
+++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
@@ -1490,14 +1490,12 @@ int check_recovery_cmd_file(void)
{
int button_pressed = 0;
int recovery_mode = 0;
- u32 reg;
recovery_mode = check_and_clean_recovery_flag();
/* Check Recovery Combo Button press or not. */
mxc_iomux_v3_setup_pad(MX6X_IOMUX(PAD_GPIO_5__GPIO_1_5));
- gpio_request(GPIO_VOL_DN_KEY);
gpio_direction_input(GPIO_VOL_DN_KEY);
if (gpio_get_value(GPIO_VOL_DN_KEY) == 0) { /* VOL_DN key is low assert */