S5P: serial: Use the inline function instead of static value
[oweals/u-boot.git] / drivers / serial / at91rm9200_usart.c
index 858bde97c113f10b27067fd811bac326f950f21d..05ebbc34c980e58d04a48162e0de39ce42a4a3db 100644 (file)
  */
 
 #include <common.h>
+
+#ifndef CONFIG_AT91_LEGACY
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
+#define CONFIG_AT91_LEGACY
+#include <asm/arch-at91rm9200/AT91RM9200.h>
+#warning Please update to use C structur SoC access !
+#else
+#include <asm/arch/AT91RM9200.h>
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;