Add gdsys ControlCenter Digital board
Subsystems (13)
v7 cover Add gdsys ControlCenter Digital board
From: Dirk Eibach <[email protected]>
Changes in v7:
- access FPGA by C struct instead of base+offset
- braces for multiline statement
- clarify that boot commands are already NUL-terminated
- insert some blank lines to serparate declarations and code
- remove CONFIG_HDBOOT which was not used
- remove unused controlcenterd entries from boards.cfg
- undo .checkpatch.conf modification which was comitted by mistake
Changes in v6:
- Add CONFIG_PCI_INDIRECT_BRIDGE to controlcenterd.h
- Add MAINTAINERS entry
- drop "mpc85xx: Add CONFIG_RELEASE_CORE0_ONLY" and use mp_holdoff instead
- rename CONFIG_ATMEL_TWI_TPM to CONFIG_TPM_ATMEL_TWI
- rename drivers/tpm/atmel_twi_tpm.c to drivers/tpm/tpm_atmel_twi.c
- replace DEBUG_ATMEL_TWI_TPM, simply use DEBUG
- sort drivers/tpm/Makefile
- timeout on waiting for TPM reply
Changes in v5:
- avoid probing dp501 i2c bridge addresses
- fix i2c_probe
Changes in v4:
- consider CONFIG_CMD_BOOTM for all architectures
Changes in v3:
- fix email addresses
Changes in v2:
- configuration for SPI builds was missing
- replace some numeric constants with named constants
- style fixes (as shown by checkpatch.pl) in common/cmd_tpm.c and lib/tpm.c
- whitespace fixes
Dirk Eibach (3):
Add Atmel I2C tpm
Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM
mpc85xx: Add gdsys ControlCenter Digital board
Reinhard Pfau (2):
tpm: add AUTH1 cmds for LoadKey2 and GetPubKey
i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0
MAINTAINERS | 3 +- README | 17 + arch/arm/lib/Makefile | 2 +- arch/avr32/lib/Makefile | 2 +- arch/m68k/lib/Makefile | 2 +- arch/microblaze/lib/Makefile | 2 +- arch/mips/lib/Makefile | 4 +- arch/nds32/lib/Makefile | 3 +- arch/nios2/lib/Makefile | 2 +- arch/openrisc/lib/Makefile | 2 +- arch/powerpc/lib/Makefile | 2 +- arch/sh/lib/Makefile | 2 +- arch/sparc/lib/Makefile | 3 +- arch/x86/lib/Makefile | 2 +- board/gdsys/common/Makefile | 1 + board/gdsys/common/dp501.c | 107 +++ board/gdsys/common/dp501.h | 30 + board/gdsys/p1022/Makefile | 37 + board/gdsys/p1022/controlcenterd-id.c | 1224 +++++++++++++++++++++++++++++++++ board/gdsys/p1022/controlcenterd-id.h | 29 + board/gdsys/p1022/controlcenterd.c | 425 ++++++++++++ board/gdsys/p1022/ddr.c | 71 ++ board/gdsys/p1022/diu.c | 87 +++ board/gdsys/p1022/law.c | 20 + board/gdsys/p1022/sdhc_boot.c | 63 ++ board/gdsys/p1022/tlb.c | 77 +++ boards.cfg | 4 + common/cmd_tpm.c | 100 +++ drivers/i2c/fsl_i2c.c | 9 +- drivers/tpm/Makefile | 1 + drivers/tpm/tpm_atmel_twi.c | 121 ++++ include/configs/controlcenterd.h | 522 ++++++++++++++ include/tpm.h | 174 +++++ lib/tpm.c | 351 +++++++++- 34 files changed, 3483 insertions(+), 18 deletions(-) create mode 100644 board/gdsys/common/dp501.c create mode 100644 board/gdsys/common/dp501.h create mode 100644 board/gdsys/p1022/Makefile create mode 100644 board/gdsys/p1022/controlcenterd-id.c create mode 100644 board/gdsys/p1022/controlcenterd-id.h create mode 100644 board/gdsys/p1022/controlcenterd.c create mode 100644 board/gdsys/p1022/ddr.c create mode 100644 board/gdsys/p1022/diu.c create mode 100644 board/gdsys/p1022/law.c create mode 100644 board/gdsys/p1022/sdhc_boot.c create mode 100644 board/gdsys/p1022/tlb.c create mode 100644 drivers/tpm/tpm_atmel_twi.c create mode 100644 include/configs/controlcenterd.h
Signature · 1 line
1.8.3
PATCH v7 1/5 tpm: add AUTH1 cmds for LoadKey2 and GetPubKey
From: Reinhard Pfau <[email protected]>
Extend the tpm library with support for single authorized (AUTH1) commands as specified in the TCG Main Specification 1.2. (The internally used helper functions are implemented in a way that they could also be used for double authorized commands if someone needs it.)
Provide enums with the return codes from the TCG Main specification.
For now only a single OIAP session is supported.
OIAP authorized version of the commands TPM_LoadKey2 and TPM_GetPubKey are provided. Both features are available using the 'tpm' command, too.
Authorized commands are enabled with CONFIG_TPM_AUTH_SESSIONS. (Note that this also requires CONFIG_SHA1 to be enabled.)
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
- fix email addresses
Changes in v2:
- replace some numeric constants with named constants
- style fixes (as shown by checkpatch.pl) in common/cmd_tpm.c and lib/tpm.c
README | 14 +++ common/cmd_tpm.c | 100 ++++++++++++++++ include/tpm.h | 174 +++++++++++++++++++++++++++ lib/tpm.c | 351 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 638 insertions(+), 1 deletion(-)
README +14 -0
@@ -1234,6 +1234,20 @@ The following options need to be configured: to. Contemporary x86 systems usually map it at 0xfed40000. + CONFIG_CMD_TPM + Add tpm monitor functions. + Requires CONFIG_TPM. If CONFIG_TPM_AUTH_SESSIONS is set, also + provides monitor access to authorized functions. + + CONFIG_TPM + Define this to enable the TPM support library which provides + functional interfaces to some TPM commands. + Requires support for a TPM device. + + CONFIG_TPM_AUTH_SESSIONS + Define this to enable authorized functions in the TPM library. + Requires CONFIG_TPM and CONFIG_SHA1. + - USB Support: At the moment only the UHCI host controller is supported (PIP405, MIP405, MPC5200); define
common/cmd_tpm.c +100 -0
130 lines not on this page · raw message
include/tpm.h +174 -0
189 lines not on this page · raw message
lib/tpm.c +350 -1
379 lines not on this page · raw message
Signature · 1 line
1.8.3
Andy Fleming
AppliedPATCH v7 1/5 tpm: add AUTH1 cmds for LoadKey2 and GetPubKey
Quoted 14 lines · Dirk Eibach
From: Reinhard Pfau <[email protected]>
Extend the tpm library with support for single authorized (AUTH1) commands as specified in the TCG Main Specification 1.2. (The internally used helper functions are implemented in a way that they could also be used for double authorized commands if someone needs it.)
Provide enums with the return codes from the TCG Main specification.
For now only a single OIAP session is supported.
OIAP authorized version of the commands
TPM_LoadKey2andTPM_GetPubKeyare provided. Both features are available using the 'tpm' command, too.
Quoted 6 lines
Authorized commands are enabled with
CONFIG_TPM_AUTH_SESSIONS. (Note that this also requiresCONFIG_SHA1to be enabled.)Signed-off-by Reinhard Pfau <[email protected]>Signed-off-by Dirk Eibach <[email protected]>Acked-by Che-Liang Chiou <[email protected]>
Applied, thanks!
Andy
PATCH v7 2/5 i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0
In reply to dirk.eibach at gdsys.ccFrom: Reinhard Pfau <[email protected]>
if alen is 0: no longer start a write cycle before reading data.
---
Changes in v7: None
Changes in v6: None
Changes in v5:
- fix i2c_probe
Changes in v4: None
Changes in v3: None
Changes in v2:
- whitespace fixes
drivers/i2c/fsl_i2c.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/i2c/fsl_i2c.c +6 -3
@@ -383,13 +383,16 @@ i2c_read(u8 dev, uint addr, int alen, u8 *data, int length)int i =-1 ;/* signal error */ u8 *a = (u8 *)&addr; -if (i2c_wait4bus () >=0 +if (i2c_wait4bus () <0 ) +return -1 ; + +if ((!length || alen >0 ) &&i2c_write_addr (dev,I2C_WRITE_BIT ,0 ) !=0 &&__i2c_write (&a[4 - alen], alen) == alen) i =0 ;/* No error so far */ -if (length - &&i2c_write_addr (dev,I2C_READ_BIT ,1 ) !=0 ) +if (length && +i2c_write_addr (dev,I2C_READ_BIT , alen ?1 :0 ) !=0 ) i =__i2c_read (data, length);writeb (I2C_CR_MEN , &i2c_dev[i2c_bus_num]->cr);
Signature · 1 line
1.8.3
Andy Fleming
AppliedPATCH v7 2/5 i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0
Quoted 7 lines · Dirk Eibach
From: Reinhard Pfau <[email protected]>
if alen is 0: no longer start a write cycle before reading data.
Signed-off-by Dirk Eibach <[email protected]>Signed-off-by Reinhard Pfau <[email protected]>Acked-by Heiko Schocher <[email protected]>
Applied, thanks!
Andy
PATCH v7 3/5 Add Atmel I2C tpm
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
Add support for Atmel TPM devices with two wire interface.
---
Changes in v7: None
Changes in v6:
- rename CONFIG_ATMEL_TWI_TPM to CONFIG_TPM_ATMEL_TWI
- rename drivers/tpm/atmel_twi_tpm.c to drivers/tpm/tpm_atmel_twi.c
- replace DEBUG_ATMEL_TWI_TPM, simply use DEBUG
- sort drivers/tpm/Makefile
- timeout on waiting for TPM reply
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
README | 3 ++ drivers/tpm/Makefile | 1 + drivers/tpm/tpm_atmel_twi.c | 121 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 drivers/tpm/tpm_atmel_twi.c
README +3 -0
@@ -1225,6 +1225,9 @@ The following options need to be configured: CONFIG_TPM_TIS_I2C_BURST_LIMITATION Define the burst count bytes upper limit + CONFIG_TPM_ATMEL_TWI + Support for Atmel TWI TPM device. Requires I2C support. + CONFIG_TPM_TIS_LPC Support for generic parallel port TPM devices. Only one device per system is supported at this time.
drivers/tpm/Makefile +1 -0
@@ -26,6 +26,7 @@ LIB := $(obj)libtpm.o $(shell mkdir -p $(obj)slb9635_i2c) # TODO: Merge tpm_tis_lpc.c with tpm.c +COBJS-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o COBJS-$(CONFIG_TPM_TIS_I2C) += tpm.o COBJS-$(CONFIG_TPM_TIS_I2C) += tpm_tis_i2c.o COBJS-$(CONFIG_TPM_TIS_LPC) += tpm_tis_lpc.o
drivers/tpm/tpm_atmel_twi.c new file +121 -0
121 lines not on this page · raw message
Signature · 1 line
1.8.3
PATCH v7 3/5 Add Atmel I2C tpm
Hi Dirk,
Quoted 7 lines · On Wed, Jun 26, 2013 at 10:55 PM, <[email protected]> wrote:
From: Dirk Eibach <[email protected]>
Add support for Atmel TPM devices with two wire interface.
Signed-off-by Dirk Eibach <[email protected]>Signed-off-by Reinhard Pfau <[email protected]>
I'm not sure about using prinf() instead of debug(), but in this case the code size impact is small and it will at least help debug this new driver.
I believe this should be picked up for this release, along with at least the other patch that Che-Liang reviewed.
Regards,
Simon
Andy Fleming
AppliedPATCH v7 3/5 Add Atmel I2C tpm
In reply to dirk.eibach at gdsys.ccQuoted 7 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
Add support for Atmel TPM devices with two wire interface.
Signed-off-by Dirk Eibach <[email protected]>Signed-off-by Reinhard Pfau <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied, thanks!
Andy
PATCH v7 4/5 Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
MAKEALL is fine for ppc4xx and mpc85xx.
Run checks were done on our controlcenterd hardware.
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4:
- consider CONFIG_CMD_BOOTM for all architectures
Changes in v3: None
Changes in v2: None
arch/arm/lib/Makefile | 2 +- arch/avr32/lib/Makefile | 2 +- arch/m68k/lib/Makefile | 2 +- arch/microblaze/lib/Makefile | 2 +- arch/mips/lib/Makefile | 4 ++-- arch/nds32/lib/Makefile | 3 ++- arch/nios2/lib/Makefile | 2 +- arch/openrisc/lib/Makefile | 2 +- arch/powerpc/lib/Makefile | 2 +- arch/sh/lib/Makefile | 2 +- arch/sparc/lib/Makefile | 3 ++- arch/x86/lib/Makefile | 2 +- 12 files changed, 15 insertions(+), 13 deletions(-)
arch/arm/lib/Makefile +1 -1
@@ -45,8 +45,8 @@ COBJS-y += board.o endif COBJS-y += bss.o -COBJS-y += bootm.o COBJS-$(CONFIG_OF_LIBFDT) += bootm-fdt.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-$(CONFIG_SYS_L2_PL310) += cache-pl310.o SOBJS-$(CONFIG_USE_ARCH_MEMSET) += memset.o SOBJS-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
arch/avr32/lib/Makefile +1 -1
@@ -30,7 +30,7 @@ LIB = $(obj)lib$(ARCH).o SOBJS-y += memset.o COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += interrupts.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
arch/m68k/lib/Makefile +1 -1
@@ -28,7 +28,7 @@ LIB = $(obj)lib$(ARCH).o SOBJS-y += COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += cache.o COBJS-y += interrupts.o COBJS-y += time.o
arch/microblaze/lib/Makefile +1 -1
@@ -28,7 +28,7 @@ LIB = $(obj)lib$(ARCH).o SOBJS-y += COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += muldi3.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
arch/mips/lib/Makefile +2 -2
@@ -36,9 +36,9 @@ SOBJS-y += COBJS-y += board.o ifeq ($(CONFIG_QEMU_MIPS),y) -COBJS-y += bootm_qemu_mips.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm_qemu_mips.o else -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o endif SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
arch/nds32/lib/Makefile +2 -1
@@ -29,7 +29,8 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(ARCH).o -OBJS := board.o bootm.o cache.o interrupts.o +OBJS := board.o cache.o interrupts.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o all: $(LIB)
arch/nios2/lib/Makefile +1 -1
@@ -28,7 +28,7 @@ LIB = $(obj)lib$(ARCH).o SOBJS-y += cache.o COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += libgcc.o COBJS-y += time.o
arch/openrisc/lib/Makefile +1 -1
@@ -28,7 +28,7 @@ LIB = $(obj)lib$(ARCH).o SOBJS-y += COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += timer.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
arch/powerpc/lib/Makefile +1 -1
@@ -63,7 +63,7 @@ ifndef CONFIG_SYS_GENERIC_BOARD COBJS-y += board.o endif endif -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += cache.o COBJS-y += extable.o COBJS-y += interrupts.o
arch/sh/lib/Makefile +1 -1
@@ -33,7 +33,7 @@ GLSOBJS += lshrdi3.o GLSOBJS += movmem.o COBJS-y += board.o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o ifeq ($(CONFIG_SH2),y) COBJS-y += time_sh2.o else
arch/sparc/lib/Makefile +2 -1
@@ -27,7 +27,8 @@ LIB = $(obj)lib$(ARCH).o SOBJS = -COBJS = board.o cache.o interrupts.o time.o bootm.o +COBJS = board.o cache.o interrupts.o time.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
arch/x86/lib/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(ARCH).o -COBJS-y += bootm.o +COBJS-$(CONFIG_CMD_BOOTM) += bootm.o COBJS-y += cmd_boot.o COBJS-y += gcc.o COBJS-y += init_helpers.o
Signature · 1 line
1.8.3
Andy Fleming
AppliedPATCH v7 4/5 Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM
Quoted 6 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
MAKEALL is fine for ppc4xx and mpc85xx.
Run checks were done on our controlcenterd hardware.Signed-off-by Dirk Eibach <[email protected]>
Applied, thanks!
Andy
PATCH v7 5/5 mpc85xx: Add gdsys ControlCenter Digital board
In reply to dirk.eibach at gdsys.ccFrom: Dirk Eibach <[email protected]>
The gdsys ControlCenter Digital board is based on a Freescale P1022 QorIQ SOC. It boots from SPI-Flash but can be configured to boot from SD-card for factory programming and testing.
On board peripherals include:
- 2x GbE
- Lattice ECP3 FPGA connected via PCIe
- mSATA RAID1
- USB host
- DisplayPort video output
- Atmel TPM
---
Changes in v7:
- access FPGA by C struct instead of base+offset
- braces for multiline statement
- clarify that boot commands are already NUL-terminated
- insert some blank lines to serparate declarations and code
- remove CONFIG_HDBOOT which was not used
- remove unused controlcenterd entries from boards.cfg
- undo .checkpatch.conf modification which was comitted by mistake
Changes in v6:
- Add CONFIG_PCI_INDIRECT_BRIDGE to controlcenterd.h
- Add MAINTAINERS entry
- drop "mpc85xx: Add CONFIG_RELEASE_CORE0_ONLY" and use mp_holdoff instead
Changes in v5:
- avoid probing dp501 i2c bridge addresses
Changes in v4: None
Changes in v3:
- fix email addresses
Changes in v2:
- configuration for SPI builds was missing
- whitespace fixes
MAINTAINERS | 3 +- board/gdsys/common/Makefile | 1 + board/gdsys/common/dp501.c | 107 +++ board/gdsys/common/dp501.h | 30 + board/gdsys/p1022/Makefile | 37 + board/gdsys/p1022/controlcenterd-id.c | 1224 +++++++++++++++++++++++++++++++++ board/gdsys/p1022/controlcenterd-id.h | 29 + board/gdsys/p1022/controlcenterd.c | 425 ++++++++++++ board/gdsys/p1022/ddr.c | 71 ++ board/gdsys/p1022/diu.c | 87 +++ board/gdsys/p1022/law.c | 20 + board/gdsys/p1022/sdhc_boot.c | 63 ++ board/gdsys/p1022/tlb.c | 77 +++ boards.cfg | 4 + include/configs/controlcenterd.h | 522 ++++++++++++++ 15 files changed, 2699 insertions(+), 1 deletion(-) create mode 100644 board/gdsys/common/dp501.c create mode 100644 board/gdsys/common/dp501.h create mode 100644 board/gdsys/p1022/Makefile create mode 100644 board/gdsys/p1022/controlcenterd-id.c create mode 100644 board/gdsys/p1022/controlcenterd-id.h create mode 100644 board/gdsys/p1022/controlcenterd.c create mode 100644 board/gdsys/p1022/ddr.c create mode 100644 board/gdsys/p1022/diu.c create mode 100644 board/gdsys/p1022/law.c create mode 100644 board/gdsys/p1022/sdhc_boot.c create mode 100644 board/gdsys/p1022/tlb.c create mode 100644 include/configs/controlcenterd.h
MAINTAINERS +2 -1
@@ -160,8 +160,9 @@ egnite GmbH <[email protected]> Dirk Eibach <[email protected]> + controlcenterd P1022 devconcenter PPC460EX - dlvision PPC405EP + dlvision PPC405EP dlvision-10g PPC405EP gdppc440etx PPC440EP/GR intip PPC460EX
board/gdsys/common/Makefile +1 -0
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_IO) += miiphybb.o COBJS-$(CONFIG_IO64) += miiphybb.o COBJS-$(CONFIG_IOCON) += osd.o COBJS-$(CONFIG_DLVISION_10G) += osd.o +COBJS-$(CONFIG_CONTROLCENTERD) += dp501.o COBJS := $(COBJS-y) SOBJS =
board/gdsys/common/dp501.c new file +107 -0
107 lines not on this page · raw message
board/gdsys/common/dp501.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* (C) Copyright 2012 +* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach at gdsys.cc +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef _DP501_H_ +#define _DP501_H_ + +void dp501_powerup (u8 addr); +void dp501_powerdown (u8 addr); + +#endif
board/gdsys/p1022/Makefile new file +37 -0
@@ -0,0 +1,37 @@ +# +# Copyright 2010 Freescale Semiconductor, Inc. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2 of the License, or (at your option) +# any later version. +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(BOARD).o + +# COBJS-y += $(BOARD).o +COBJS-y += law.o +COBJS-y += ddr.o +COBJS-y += tlb.o +COBJS-y += sdhc_boot.o +COBJS-$(CONFIG_CONTROLCENTERD) += controlcenterd.o controlcenterd-id.o + +COBJS-$(CONFIG_FSL_DIU_FB) += diu.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS-y)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(OBJS) $(SOBJS) + $(call cmd_link_o_target, $(OBJS)) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
board/gdsys/p1022/controlcenterd-id.c new file +1224 -0
1,224 lines not on this page · raw message
board/gdsys/p1022/controlcenterd-id.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* (C) Copyright 2013 +* Reinhard Pfau, Guntermann & Drunck GmbH, reinhard.pfau at gdsys.cc +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the Free +* Software Foundation; either version 2 of the License, or (at your option) +* any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301, USA. +*/ + +#ifndef __CONTROLCENTER_ID_H +#define __CONTROLCENTER_ID_H + +int ccdm_compute_self_hash (void ); +int startup_ccdm_id_module (void ); + +int show_self_hash (void ); + +#endif /* __CONTROLCENTER_ID_H */
board/gdsys/p1022/controlcenterd.c new file +425 -0
425 lines not on this page · raw message
board/gdsys/p1022/ddr.c new file +71 -0
71 lines not on this page · raw message
board/gdsys/p1022/diu.c new file +87 -0
87 lines not on this page · raw message
board/gdsys/p1022/law.c new file +20 -0
@@ -0,0 +1,20 @@ +/* +* Copyright 2010 Freescale Semiconductor, Inc. +* Authors: Srikanth Srinivasan <[email protected]> +* Timur Tabi <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the Free +* Software Foundation; either version 2 of the License, or (at your option) +* any later version. +*/ + +#include <common.h> +#include <asm/fsl_law.h> +#include <asm/mmu.h> + +struct law_entry law_table[] = { +SET_LAW (CONFIG_SYS_ELBC_BASE_PHYS ,LAW_SIZE_1M ,LAW_TRGT_IF_LBC ), +}; + +int num_law_entries =ARRAY_SIZE (law_table);
board/gdsys/p1022/sdhc_boot.c new file +63 -0
63 lines not on this page · raw message
board/gdsys/p1022/tlb.c new file +77 -0
77 lines not on this page · raw message
boards.cfg +4 -0
@@ -906,6 +906,10 @@ BSC9132QDS_SDCARD_DDRCLK100 powerpc mpc85xx bsc9132qds freesca BSC9132QDS_SDCARD_DDRCLK133 powerpc mpc85xx bsc9132qds freescale - BSC9132QDS:BSC9132QDS,SDCARD,SYS_CLK_100_DDR_133 BSC9132QDS_SPIFLASH_DDRCLK100 powerpc mpc85xx bsc9132qds freescale - BSC9132QDS:BSC9132QDS,SPIFLASH,SYS_CLK_100_DDR_100 BSC9132QDS_SPIFLASH_DDRCLK133 powerpc mpc85xx bsc9132qds freescale - BSC9132QDS:BSC9132QDS,SPIFLASH,SYS_CLK_100_DDR_133 +controlcenterd_36BIT_SDCARD powerpc mpc85xx p1022 gdsys - controlcenterd:36BIT,SDCARD +controlcenterd_36BIT_SDCARD_DEVELOP powerpc mpc85xx p1022 gdsys - controlcenterd:36BIT,SDCARD,DEVELOP +controlcenterd_TRAILBLAZER powerpc mpc85xx p1022 gdsys - controlcenterd:TRAILBLAZER,SPIFLASH +controlcenterd_TRAILBLAZER_DEVELOP powerpc mpc85xx p1022 gdsys - controlcenterd:TRAILBLAZER,SPIFLASH,DEVELOP stxgp3 powerpc mpc85xx stxgp3 stx stxssa powerpc mpc85xx stxssa stx - stxssa stxssa_4M powerpc mpc85xx stxssa stx - stxssa:STXSSA_4M
include/configs/controlcenterd.h new file +522 -0
522 lines not on this page · raw message
Signature · 1 line
1.8.3
Andy Fleming
AppliedPATCH v7 5/5 mpc85xx: Add gdsys ControlCenter Digital board
Quoted 13 lines · Dirk Eibach
From: Dirk Eibach <[email protected]>
The gdsys ControlCenter Digital board is based on a Freescale P1022 QorIQ SOC. It boots from SPI-Flash but can be configured to boot from SD-card for factory programming and testing.
On board peripherals include:
- 2x GbE
- Lattice ECP3 FPGA connected via PCIe
- mSATA RAID1
- USB host
- DisplayPort video output
- Atmel TPM
Quoted 2 lines
Signed-off-by Dirk Eibach <[email protected]>Signed-off-by Reinhard Pfau <[email protected]>
Applied, thanks!
Andy