From ba1008e33f35a8c1174f76c8d0bdba0fec519561 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 14 Feb 2013 17:10:39 -0800 Subject: Exynos: Drop dead code in cpu.h Change-Id: Ibb5fa27a0d45ddd8f57e8e8c28961d204e2ef1e3 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/2409 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/cpu/samsung/exynos5-common/cpu.h | 43 ------------------------------------ 1 file changed, 43 deletions(-) (limited to 'src/cpu/samsung') diff --git a/src/cpu/samsung/exynos5-common/cpu.h b/src/cpu/samsung/exynos5-common/cpu.h index 5a18913b2a..3a1df21cd0 100644 --- a/src/cpu/samsung/exynos5-common/cpu.h +++ b/src/cpu/samsung/exynos5-common/cpu.h @@ -64,14 +64,6 @@ /* CPU detection macros */ extern unsigned int s5p_cpu_id; -/* FIXME(dhendrix): conflicts with the one in cpu_info.c ... */ -#if 0 -inline void s5p_set_cpu_id(void) -{ - s5p_cpu_id = readl(S5PC100_PRO_ID); - s5p_cpu_id = 0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12); -} -#endif inline void s5p_set_cpu_id(void); #define IS_SAMSUNG_TYPE(type, id) \ @@ -83,32 +75,6 @@ static inline int cpu_is_##type(void) \ IS_SAMSUNG_TYPE(s5pc100, 0xc100) IS_SAMSUNG_TYPE(s5pc110, 0xc110) -/* - * FIXME(dhendrix): collides with SAMSUNG_BASE in exynos header files. We - * don't really care about old S5P processors right now. - */ -#if 0 -#define SAMSUNG_BASE(device, base) \ -static inline unsigned int samsung_get_base_##device(void) \ -{ \ - if (cpu_is_s5pc100()) \ - return S5PC100_##base; \ - else if (cpu_is_s5pc110()) \ - return S5PC110_##base; \ - else \ - return 0; \ -} - -SAMSUNG_BASE(clock, CLOCK_BASE) -SAMSUNG_BASE(gpio, GPIO_BASE) -SAMSUNG_BASE(pro_id, PRO_ID) -SAMSUNG_BASE(mmc, MMC_BASE) -SAMSUNG_BASE(sromc, SROMC_BASE) -SAMSUNG_BASE(timer, PWMTIMER_BASE) -SAMSUNG_BASE(uart, UART_BASE) -SAMSUNG_BASE(watchdog, WATCHDOG_BASE) -#endif - int s5p_get_cpu_rev(void); //void s5p_set_cpu_id(void); int s5p_get_cpu_id(void); @@ -146,15 +112,6 @@ enum boot_mode { BOOT_MODE_USB, /* Boot using USB download */ }; -#if 0 -/** - * Get the U-boot size for SPL copy functions - * - * @return size of U-Boot code/data that needs to be loaded by the SPL stage - */ -unsigned int exynos_get_uboot_size(void); -#endif - /** * Get the boot device containing BL1, BL2 (SPL) and U-boot * -- cgit v1.2.3