[project][imx7d] Update for imx target changes

Choice of debug UART should be on target level
as this is what target is for.

All definitions for MEMBASE, MEMSIZE and KERNEL_BASE
are the same. Move them to platform and make them default.

Change-Id: If40b265346097db05175b9d7b83d6057365880fa
diff --git a/project/imx7d-inc.mk b/project/imx7d-inc.mk
index 64d8443..9d9f442 100644
--- a/project/imx7d-inc.mk
+++ b/project/imx7d-inc.mk
@@ -19,16 +19,8 @@
 SMP_MAX_CPUS ?= 2
 SMP_CPU_CLUSTER_SHIFT ?= 1
 
-TARGET := imx
-SOC_ARM_CPU := cortex-a7
-
 # select timer
-ifeq (true,$(call TOBOOL,$(KERNEL_32BIT)))
-# 32 bit Secure EL1 with a 64 bit EL3 gets the non-secure physical timer
 GLOBAL_DEFINES += TIMER_ARM_GENERIC_SELECTED=CNTP
-else
-GLOBAL_DEFINES += TIMER_ARM_GENERIC_SELECTED=CNTPS
-endif
 
 #
 # GLOBAL definitions
@@ -58,8 +50,6 @@
 GLOBAL_DEFINES += \
 	WITH_LIB_VERSION=1
 
-GLOBAL_DEFINES += \
-	CONFIG_CONSOLE_TTY_BASE=$(CONFIG_CONSOLE_TTY_BASE)
 #
 # Modules to be compiled into lk.bin
 #
diff --git a/project/imx7d.mk b/project/imx7d.mk
index 799b148..5cea78e 100644
--- a/project/imx7d.mk
+++ b/project/imx7d.mk
@@ -13,12 +13,6 @@
 # limitations under the License.
 #
 
-KERNEL_32BIT := true
-
-MEMSIZE      ?= 0x2000000
-KERNEL_BASE  := 0x9e000000
-
-CONFIG_CONSOLE_TTY_BASE := 0x30A70000
-PLATFORM_SOC := imx7d
+TARGET := imx7d/imx7d
 
 include project/imx7d-inc.mk
diff --git a/project/pico7d.mk b/project/pico7d.mk
index 799b148..10dcaa3 100644
--- a/project/pico7d.mk
+++ b/project/pico7d.mk
@@ -13,12 +13,6 @@
 # limitations under the License.
 #
 
-KERNEL_32BIT := true
-
-MEMSIZE      ?= 0x2000000
-KERNEL_BASE  := 0x9e000000
-
-CONFIG_CONSOLE_TTY_BASE := 0x30A70000
-PLATFORM_SOC := imx7d
+TARGET := imx7d/pico7d
 
 include project/imx7d-inc.mk
diff --git a/project/sdb7d.mk b/project/sdb7d.mk
index 0c294e9..570382a 100644
--- a/project/sdb7d.mk
+++ b/project/sdb7d.mk
@@ -13,12 +13,6 @@
 # limitations under the License.
 #
 
-KERNEL_32BIT := true
-
-MEMSIZE      ?= 0x2000000
-KERNEL_BASE  := 0x9e000000
-
-CONFIG_CONSOLE_TTY_BASE := 0x30860000
-PLATFORM_SOC := imx7d
+TARGET := imx7d/sdb7d
 
 include project/imx7d-inc.mk