Skip to content

Commit

Permalink
IBM Akebono: Add the Akebono platform
Browse files Browse the repository at this point in the history
This patch adds support for the IBM Akebono board.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Alistair Popple authored and Benjamin Herrenschmidt committed Apr 30, 2014
1 parent 6b11930 commit 2a2c74b
Show file tree
Hide file tree
Showing 11 changed files with 901 additions and 26 deletions.
54 changes: 54 additions & 0 deletions Documentation/devicetree/bindings/powerpc/4xx/akebono.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

IBM Akebono board device tree
=============================

The IBM Akebono board is a development board for the PPC476GTR SoC.

0) The root node

Required properties:

- model : "ibm,akebono".
- compatible : "ibm,akebono" , "ibm,476gtr".

1.a) The Secure Digital Host Controller Interface (SDHCI) node

Represent the Secure Digital Host Controller Interfaces.

Required properties:

- compatible : should be "ibm,476gtr-sdhci","generic-sdhci".
- reg : should contain the SDHCI registers location and length.
- interrupt-parent : a phandle for the interrupt controller.
- interrupts : should contain the SDHCI interrupt.

1.b) The Advanced Host Controller Interface (AHCI) SATA node

Represents the advanced host controller SATA interface.

Required properties:

- compatible : should be "ibm,476gtr-ahci".
- reg : should contain the AHCI registers location and length.
- interrupt-parent : a phandle for the interrupt controller.
- interrupts : should contain the AHCI interrupt.

1.c) The FPGA node

The Akebono board stores some board information such as the revision
number in an FPGA which is represented by this node.

Required properties:

- compatible : should be "ibm,akebono-fpga".
- reg : should contain the FPGA registers location and length.

1.d) The AVR node

The Akebono board has an Atmel AVR microprocessor attached to the I2C
bus as a power controller for the board.

Required properties:

- compatible : should be "ibm,akebono-avr".
- reg : should contain the I2C bus address for the AVR.
3 changes: 3 additions & 0 deletions arch/powerpc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ $(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
$(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405
$(obj)/treeboot-currituck.o: BOOTCFLAGS += -mcpu=405
$(obj)/treeboot-akebono.o: BOOTCFLAGS += -mcpu=405
$(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405


Expand Down Expand Up @@ -92,6 +93,7 @@ src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \
cuboot-taishan.c cuboot-katmai.c \
cuboot-warp.c cuboot-yosemite.c \
treeboot-iss4xx.c treeboot-currituck.c \
treeboot-akebono.c \
simpleboot.c fixed-head.S virtex.c
src-plat-$(CONFIG_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c
src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c
Expand Down Expand Up @@ -250,6 +252,7 @@ image-$(CONFIG_YOSEMITE) += cuImage.yosemite
image-$(CONFIG_ISS4xx) += treeImage.iss4xx \
treeImage.iss4xx-mpic
image-$(CONFIG_CURRITUCK) += treeImage.currituck
image-$(CONFIG_AKEBONO) += treeImage.akebono

# Board ports in arch/powerpc/platform/8xx/Kconfig
image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads
Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/boot/dcr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \
rval; \
})
#define mtdcrx(rn, val) \
({ \
asm volatile("mtdcrx %0,%1" : : "r"(rn), "r" (val)); \
})

/* 440GP/440GX SDRAM controller DCRs */
#define DCRN_SDRAM0_CFGADDR 0x010
Expand Down
Loading

0 comments on commit 2a2c74b

Please sign in to comment.