summaryrefslogtreecommitdiff
path: root/target/ppc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-11-06 19:56:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-11-06 19:56:45 +0100
commita8de6415b23cf8e2f0ed5a7e355b55ed73a4feb8 (patch)
tree630f7a64116aed315ba49890b94fe75bc9f8a94c /target/ppc
parent7ad9bd33ece63ea288e3b36ca85f2cbd31abba3b (diff)
ppc: add more cpu types, add mpc8544ds qemu sample
Diffstat (limited to 'target/ppc')
-rw-r--r--target/ppc/Makefile18
-rw-r--r--target/ppc/kernel/qemu-ppc-mpc8544ds11
-rw-r--r--target/ppc/systems/qemu-ppc-mpc8544ds8
3 files changed, 25 insertions, 12 deletions
diff --git a/target/ppc/Makefile b/target/ppc/Makefile
index 64660ef59..2eec72d23 100644
--- a/target/ppc/Makefile
+++ b/target/ppc/Makefile
@@ -20,6 +20,10 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_BAMBOO),y)
QEMU_ARGS+=-M bamboo
QEMU_ARGS+=-device e1000,netdev=adk0 -netdev user,id=adk0
endif
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_MPC8544DS),y)
+QEMU_ARGS+=-M mpc8544ds
+QEMU_ARGS+=-device e1000,netdev=adk0 -netdev user,id=adk0
+endif
# target helper text
ifeq ($(ADK_TARGET_FS),archive)
@@ -69,35 +73,25 @@ kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
dtb-install:
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_VIRTEX_ML507),y)
env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \
-j${ADK_MAKE_JOBS} virtex440-ml507.dtb $(MAKE_TRACE)
$(CP) $(LINUX_DIR)/arch/powerpc/boot/virtex440-ml507.dtb \
$(FW_DIR)/ppc.dtb
+endif
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),archive)
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_VIRTEX_ML507),y)
imageinstall: dtb-install $(FW_DIR)/$(ROOTFSTARBALL) targethelp
-else
-imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
-endif
endif
ifeq ($(ADK_TARGET_FS),initramfs)
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_VIRTEX_ML507),y)
imageinstall: dtb-install kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
-else
-imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
-endif
endif
ifeq ($(ADK_TARGET_FS),initramfsarchive)
imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC_VIRTEX_ML507),y)
imageinstall: dtb-install createinitramfs targethelp
-else
-imageinstall: createinitramfs targethelp
-endif
endif
ifeq ($(ADK_TARGET_FS),nfsroot)
imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
diff --git a/target/ppc/kernel/qemu-ppc-mpc8544ds b/target/ppc/kernel/qemu-ppc-mpc8544ds
new file mode 100644
index 000000000..1e51d4b07
--- /dev/null
+++ b/target/ppc/kernel/qemu-ppc-mpc8544ds
@@ -0,0 +1,11 @@
+CONFIG_PPC=y
+CONFIG_PPC32=y
+CONFIG_PPC_85xx=y
+CONFIG_E500=y
+CONFIG_FSL_SOC_BOOKE=y
+CONFIG_MPC8540_ADS=y
+CONFIG_MPC85xx_DS=y
+CONFIG_PHYS_64BIT=y
+CONFIG_SPE=y
+CONFIG_PPC_UDBG_16550=y
+CONFIG_DEFAULT_UIMAGE=y
diff --git a/target/ppc/systems/qemu-ppc-mpc8544ds b/target/ppc/systems/qemu-ppc-mpc8544ds
new file mode 100644
index 000000000..a71eb4639
--- /dev/null
+++ b/target/ppc/systems/qemu-ppc-mpc8544ds
@@ -0,0 +1,8 @@
+config ADK_TARGET_SYSTEM_QEMU_PPC_MPC8544DS
+ bool "Qemu Emulator (mpc8544ds)"
+ select ADK_TARGET_QEMU
+ select ADK_TARGET_CPU_PPC_8548
+ select ADK_TARGET_KERNEL_WITH_COMPRESSION
+ help
+ Support for Qemu Emulator PPC architecture (mpc8544ds).
+