zephyr: move Kinetis target config to soc_family_kinetis.h
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
diff --git a/boot/zephyr/include/target.h b/boot/zephyr/include/target.h
index 101c572..6e4fe31 100644
--- a/boot/zephyr/include/target.h
+++ b/boot/zephyr/include/target.h
@@ -16,6 +16,8 @@
#include "soc_family_nrf5.h"
#elif defined(CONFIG_SOC_FAMILY_STM32)
#include "soc_family_stm32.h"
+#elif defined(CONFIG_SOC_FAMILY_KINETIS)
+#include "soc_family_kinetis.h"
#endif
/*
diff --git a/boot/zephyr/targets/frdm_k64f.h b/boot/zephyr/targets/frdm_k64f.h
deleted file mode 100644
index b6ce5c8..0000000
--- a/boot/zephyr/targets/frdm_k64f.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2017 Linaro
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file
- * @brief Bootloader device specific configuration.
- */
-
-#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_MCUX_DEV_NAME
-#define FLASH_ALIGN 8
-#define FLASH_AREA_IMAGE_SECTOR_SIZE 0x01000
diff --git a/boot/zephyr/targets/hexiwear_k64.h b/boot/zephyr/targets/hexiwear_k64.h
deleted file mode 100644
index b6ce5c8..0000000
--- a/boot/zephyr/targets/hexiwear_k64.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2017 Linaro
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file
- * @brief Bootloader device specific configuration.
- */
-
-#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_MCUX_DEV_NAME
-#define FLASH_ALIGN 8
-#define FLASH_AREA_IMAGE_SECTOR_SIZE 0x01000
diff --git a/boot/zephyr/targets/soc_family_kinetis.h b/boot/zephyr/targets/soc_family_kinetis.h
new file mode 100644
index 0000000..71929e1
--- /dev/null
+++ b/boot/zephyr/targets/soc_family_kinetis.h
@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2017 Linaro
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#ifdef CONFIG_SOC_SERIES_KINETIS_K6X
+#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_MCUX_DEV_NAME
+#define FLASH_ALIGN 8
+#define FLASH_AREA_IMAGE_SECTOR_SIZE 0x01000
+#endif