]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: Use more accurate types introduced in mainline
authorMichal Simek <michal.simek@xilinx.com>
Wed, 25 Feb 2015 13:17:29 +0000 (14:17 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 25 Feb 2015 13:17:29 +0000 (14:17 +0100)
"ARM: cache-cp15: Use more accurate types"
(sha1: 25026fa9f16dd5f9182b47f76ce5043cb35da3f4)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/cache_v8.c
arch/arm/include/asm/system.h
drivers/net/zynq_gem.c

index d2bf7ffe2bae1d4e700f2469b1550c5370f23ec7..bd66b5ff6be99fbd0f56866af959e8b2d3d5d330 100644 (file)
@@ -135,7 +135,7 @@ int dcache_status(void)
        return (get_sctlr() & CR_C) != 0;
 }
 
-void mmu_set_region_dcache_behaviour(u32 start, int size,
+void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
                                     enum dcache_option option)
 {
        /* get the level2_table0 start address */
@@ -184,7 +184,7 @@ int dcache_status(void)
        return 0;
 }
 
-void mmu_set_region_dcache_behaviour(u32 start, int size,
+void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
                                     enum dcache_option option)
 {
 }
index 4bec1d947f33902770e70f71471b159cb7a61be8..e4204d9d4cdfe8ebf2d8b8c11fe2144cd4fbe075 100644 (file)
@@ -200,16 +200,6 @@ enum {
        MMU_SECTION_SIZE        = 1 << MMU_SECTION_SHIFT,
 };
 
-/**
- * Change the cache settings for a region.
- *
- * \param start                start address of memory region to change
- * \param size         size of memory region to change
- * \param option       dcache option to select
- */
-void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
-                                    enum dcache_option option);
-
 /**
  * Register an update to the page tables, and flush the TLB
  *
@@ -239,7 +229,7 @@ phys_addr_t noncached_alloc(size_t size, size_t align);
  * \param size         size of memory region to change
  * \param option       dcache option to select
  */
-void mmu_set_region_dcache_behaviour(u32 start, int size,
+void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
                                     enum dcache_option option);
 #endif /* __ASSEMBLY__ */
 
index 7c3c3b473e72a9b582580a3496d43e71f733d03f..bae5bdad0f0bc1d603ed4d50bbcf9e379dcc42f9 100644 (file)
@@ -539,7 +539,8 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
 
        /* Align bd_space to MMU_SECTION_SHIFT */
        bd_space = memalign(1 << MMU_SECTION_SHIFT, BD_SPACE);
-       mmu_set_region_dcache_behaviour((u32)bd_space, BD_SPACE, DCACHE_OFF);
+       mmu_set_region_dcache_behaviour((phys_addr_t)bd_space,
+                                       BD_SPACE, DCACHE_OFF);
 
        /* Initialize the bd spaces for tx and rx bd's */
        priv->tx_bd = (struct emac_bd *)bd_space;