diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-04 15:48:51 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-04 15:48:51 +0100 |
commit | 22e254480982a45b44b425a25f3262b72da4ed0d (patch) | |
tree | 83256d0ad6ccdfe0f368283b823b855dc5ad0b2e /arch | |
parent | db63bd8e10abf033e0a49932e2319a76b0fa9c1b (diff) | |
parent | a81c6a9f16db267aad65f13ced0e25b91cbca179 (diff) | |
download | barebox-22e254480982a45b44b425a25f3262b72da4ed0d.tar.gz barebox-22e254480982a45b44b425a25f3262b72da4ed0d.tar.xz |
Merge branch 'for-next/compile-log-level'
Conflicts:
drivers/usb/host/ehci-hcd.c
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boards/pcm038/pcm038.c | 5 | ||||
-rw-r--r-- | arch/arm/cpu/mmu.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-imx/esdctl.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap/gpmc.c | 6 | ||||
-rw-r--r-- | arch/blackfin/include/asm/posix_types.h | 2 | ||||
-rw-r--r-- | arch/nios2/include/asm/io.h | 2 | ||||
-rw-r--r-- | arch/nios2/include/asm/posix_types.h | 2 | ||||
-rw-r--r-- | arch/ppc/lib/board.c | 4 |
8 files changed, 37 insertions, 15 deletions
diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c index ea50a78905..5e9c0fdecc 100644 --- a/arch/arm/boards/pcm038/pcm038.c +++ b/arch/arm/boards/pcm038/pcm038.c @@ -13,6 +13,7 @@ * * */ +#define pr_fmt(fmt) "pcm038: " fmt #include <common.h> #include <net.h> @@ -170,7 +171,7 @@ static int pcm038_power_init(void) /* Clocks have changed. Notify clients */ clock_notifier_call_chain(); } else { - printf("Failed to initialize PMIC. Will continue with low CPU speed\n"); + pr_err("Failed to initialize PMIC. Will continue with low CPU speed\n"); } } @@ -315,7 +316,7 @@ static int pcm038_devices_init(void) envdev = "NOR"; } - printf("Using environment in %s Flash\n", envdev); + pr_notice("Using environment in %s Flash\n", envdev); if (imx_iim_read(1, 1, &uid, 6) == 6) armlinux_set_serial(uid); diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index 40b7ec4e8c..4b6db37d4b 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -1,3 +1,24 @@ +/* + * start-pbl.c + * + * Copyright (c) 2009-2013 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * 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. + * + */ + +#define pr_fmt(fmt) "mmu: " fmt + #include <common.h> #include <init.h> #include <asm/mmu.h> @@ -138,7 +159,7 @@ static int arm_mmu_remap_sdram(struct memory_bank *bank) int i, pte; u32 *ptes; - debug("remapping SDRAM from 0x%08lx (size 0x%08lx)\n", + pr_debug("remapping SDRAM from 0x%08lx (size 0x%08lx)\n", phys, bank->size); /* @@ -150,7 +171,7 @@ static int arm_mmu_remap_sdram(struct memory_bank *bank) ptes = xmemalign(PAGE_SIZE, num_ptes * sizeof(u32)); - debug("ptes: 0x%p ttb_start: 0x%08lx ttb_end: 0x%08lx\n", + pr_debug("ptes: 0x%p ttb_start: 0x%08lx ttb_end: 0x%08lx\n", ptes, ttb_start, ttb_end); for (i = 0; i < num_ptes; i++) { @@ -242,7 +263,7 @@ static int mmu_init(void) ttb = memalign(0x10000, 0x4000); - debug("ttb: 0x%p\n", ttb); + pr_debug("ttb: 0x%p\n", ttb); /* Set the ttb register */ asm volatile ("mcr p15,0,%0,c2,c0,0" : : "r"(ttb) /*:*/); diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c index dd70e6ddfc..841a9ed796 100644 --- a/arch/arm/mach-imx/esdctl.c +++ b/arch/arm/mach-imx/esdctl.c @@ -168,8 +168,8 @@ static inline unsigned long imx_v4_sdram_size(void __iomem *esdctlbase, int cs) static void add_mem(unsigned long base0, unsigned long size0, unsigned long base1, unsigned long size1) { - debug("%s: cs0 base: 0x%08x cs0 size: 0x%08x\n", __func__, base0, size0); - debug("%s: cs1 base: 0x%08x cs1 size: 0x%08x\n", __func__, base1, size1); + debug("%s: cs0 base: 0x%08lx cs0 size: 0x%08lx\n", __func__, base0, size0); + debug("%s: cs1 base: 0x%08lx cs1 size: 0x%08lx\n", __func__, base1, size1); if (base0 + size0 == base1 && size1 > 0) { /* diff --git a/arch/arm/mach-omap/gpmc.c b/arch/arm/mach-omap/gpmc.c index 3aaa4f69e7..bb84b38650 100644 --- a/arch/arm/mach-omap/gpmc.c +++ b/arch/arm/mach-omap/gpmc.c @@ -89,7 +89,7 @@ void gpmc_generic_init(unsigned int cfg) * But NEVER run me in XIP mode! I will Die! */ while (x < GPMC_NUM_CS) { - debug("gpmccs=%d Reg:0x%x <-0x0\n", x, reg); + debug("gpmccs=%d Reg:0x%p <-0x0\n", x, reg); writel(0x0, reg); reg += GPMC_CONFIG_CS_SIZE; x++; @@ -119,14 +119,14 @@ void gpmc_cs_config(char cs, struct gpmc_config *config) /* Write the CFG1-6 regs */ while (x < 6) { - debug("gpmccfg%d Reg:0x%x <-0x%08x\n", + debug("gpmccfg%d Reg:0x%p <-0x%08x\n", x, reg, config->cfg[x]); writel(config->cfg[x], reg); reg += GPMC_CONFIG_REG_OFF; x++; } /* reg now points to CFG7 */ - debug("gpmccfg%d Reg:0x%x <-0x%08x\n", + debug("gpmccfg%d Reg:0x%p <-0x%08x\n", x, reg, (0x1 << 6) | /* CS enable */ ((config->size & 0xF) << 8) | /* Size */ ((config->base >> 24) & 0x3F)); diff --git a/arch/blackfin/include/asm/posix_types.h b/arch/blackfin/include/asm/posix_types.h index b1bf2452dd..9992929ada 100644 --- a/arch/blackfin/include/asm/posix_types.h +++ b/arch/blackfin/include/asm/posix_types.h @@ -38,7 +38,7 @@ typedef int __kernel_pid_t; typedef unsigned short __kernel_ipc_pid_t; typedef unsigned short __kernel_uid_t; typedef unsigned short __kernel_gid_t; -typedef unsigned int __kernel_size_t; +typedef unsigned long __kernel_size_t; typedef int __kernel_ssize_t; typedef int __kernel_ptrdiff_t; typedef long __kernel_time_t; diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index a88f0e2716..8ee48e08d3 100644 --- a/arch/nios2/include/asm/io.h +++ b/arch/nios2/include/asm/io.h @@ -37,7 +37,7 @@ ({unsigned short val;\ asm volatile("ldhio %0, 0(%1)" : "=r"(val) : "r" (addr)); val; }) #define readl(addr)\ - ({unsigned long val;\ + ({unsigned int val;\ asm volatile("ldwio %0, 0(%1)" : "=r"(val) : "r" (addr)); val; }) #define writeb(val, addr)\ diff --git a/arch/nios2/include/asm/posix_types.h b/arch/nios2/include/asm/posix_types.h index 12906b38d6..5a901ffe43 100644 --- a/arch/nios2/include/asm/posix_types.h +++ b/arch/nios2/include/asm/posix_types.h @@ -27,7 +27,7 @@ typedef int __kernel_pid_t; typedef unsigned short __kernel_ipc_pid_t; typedef unsigned short __kernel_uid_t; typedef unsigned short __kernel_gid_t; -typedef unsigned int __kernel_size_t; +typedef unsigned long __kernel_size_t; typedef int __kernel_ssize_t; typedef int __kernel_ptrdiff_t; typedef long __kernel_time_t; diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c index d2198627f9..18d2588e2c 100644 --- a/arch/ppc/lib/board.c +++ b/arch/ppc/lib/board.c @@ -52,8 +52,8 @@ void board_init_r (ulong end_of_ram) */ malloc_end = (_text_base - (128 << 10)) & ~(4095); - debug("malloc_end: 0x%08x\n", malloc_end); - debug("TEXT_BASE after relocation: 0x%08x\n", _text_base); + debug("malloc_end: 0x%08lx\n", malloc_end); + debug("TEXT_BASE after relocation: 0x%08lx\n", _text_base); mem_malloc_init((void *)(malloc_end - MALLOC_SIZE), (void *)(malloc_end - 1)); |