# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
+PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
+ -msoft-float
# Make ARMv5 to allow more compilers to work, even though its v7a.
PLATFORM_CPPFLAGS += -march=armv5
* HCLK_MSYS_RATIO: [10:8]
* HCLK_DSYS_RATIO: [19:16]
* HCLK_PSYS_RATIO: [27:24]
- * */
+ */
offset = 8 + (clk << 0x3);
hclk_sys_ratio = (div >> offset) & 0xf;
static unsigned long lastdec; /* Last decremneter snapshot */
/* macro to read the 16 bit timer */
-static inline unsigned long s5pc1xx_get_base_timer(void)
+static inline s5pc1xx_timers_t *s5pc1xx_get_base_timer(void)
{
- s5pc1xx_timers_t *timer;
-
if (cpu_is_s5pc110())
return (s5pc1xx_timers_t *)S5PC110_TIMER_BASE;
else
int timer_init(void)
{
- s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
+ s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
u32 val;
/*
void reset_timer_masked(void)
{
- s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
+ s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
/* reset time */
lastdec = readl(&timer->TCNTO4);
unsigned long get_timer_masked(void)
{
- s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
+ s5pc1xx_timers_t *timer = s5pc1xx_get_base_timer();
unsigned long now = readl(&timer->TCNTO4);
if (lastdec >= now)