powerpc/85xx: Add TWR-P10xx board support
PATCH v2 1/1 powerpc/85xx: Add TWR-P10xx board support
TWR-P1025 Specification:
-----------------------
Memory subsystem:
512MB DDR3 (on board DDR)
64Mbyte 16bit NOR flash
One microSD Card slot
Ethernet:
eTSEC1: Connected to Atheros AR8035 GETH PHY
eTSEC3: Connected to Atheros AR8035 GETH PHY
UART:
Two UARTs are routed to the FDTI dual USB to RS232 convertor
USB: Two USB2.0 Type A ports
I2C:
AT24C01B 1K Board EEPROM (8 bit address)
QUICC Engine:
Connected to DP83849i PHY supply two 10/100M ethernet ports QE UART for RS485 or RS232
PCIE:
One mini-PCIE slot
--- arch/powerpc/include/asm/immap_85xx.h | 5 + board/freescale/p1_twr/Makefile | 52 +++ board/freescale/p1_twr/ddr.c | 71 ++++ board/freescale/p1_twr/law.c | 32 ++ board/freescale/p1_twr/p1_twr.c | 311 +++++++++++++++++ board/freescale/p1_twr/tlb.c | 92 +++++ boards.cfg | 1 + include/configs/p1_twr.h | 636 ++++++++++++++++++++++++++++++++++ 8 files changed, 1200 insertions(+) create mode 100644 board/freescale/p1_twr/Makefile create mode 100644 board/freescale/p1_twr/ddr.c create mode 100644 board/freescale/p1_twr/law.c create mode 100644 board/freescale/p1_twr/p1_twr.c create mode 100644 board/freescale/p1_twr/tlb.c create mode 100644 include/configs/p1_twr.h
arch/powerpc/include/asm/immap_85xx.h +5 -0
@@ -2164,6 +2164,11 @@ typedef struct ccsr_gur {u32 porbmsr;/* POR boot mode status */ #define MPC85xx_PORBMSR_HA 0x00070000#define MPC85xx_PORBMSR_HA_SHIFT 16 +#define MPC85xx_PORBMSR_ROMLOC_SHIFT 24 +#define PORBMSR_ROMLOC_SPI 0x6 +#define PORBMSR_ROMLOC_SDHC 0x7 +#define PORBMSR_ROMLOC_NAND_2K 0x9 +#define PORBMSR_ROMLOC_NOR 0xfu32 porimpscr;/* POR I/O impedance status & control */ u32 pordevsr;/* POR I/O device status regsiter */ #if defined(CONFIG_P1017 ) || defined(CONFIG_P1023 )
board/freescale/p1_twr/Makefile new file +52 -0
52 lines not on this page · raw message
board/freescale/p1_twr/ddr.c new file +71 -0
71 lines not on this page · raw message
board/freescale/p1_twr/law.c new file +32 -0
@@ -0,0 +1,32 @@ +/* +* Copyright 2013 Freescale Semiconductor, Inc. +* +* 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 +*/ + +#include <common.h> +#include <asm/fsl_law.h> +#include <asm/mmu.h> + +struct law_entry law_table[] = { +SET_LAW (CONFIG_SYS_FLASH_BASE_PHYS ,LAW_SIZE_64M ,LAW_TRGT_IF_LBC ), +SET_LAW (CONFIG_SYS_SSD_BASE_PHYS ,LAW_SIZE_1M ,LAW_TRGT_IF_LBC ) +}; + +int num_law_entries =ARRAY_SIZE (law_table);
board/freescale/p1_twr/p1_twr.c new file +311 -0
311 lines not on this page · raw message
board/freescale/p1_twr/tlb.c new file +92 -0
92 lines not on this page · raw message
boards.cfg +1 -0
@@ -798,6 +798,7 @@ P1025RDB_36BIT powerpc mpc85xx p1_p2_rdb_pc freesca P1025RDB_NAND powerpc mpc85xx p1_p2_rdb_pc freescale - p1_p2_rdb_pc:P1025RDB,NAND P1025RDB_SDCARD powerpc mpc85xx p1_p2_rdb_pc freescale - p1_p2_rdb_pc:P1025RDB,SDCARD P1025RDB_SPIFLASH powerpc mpc85xx p1_p2_rdb_pc freescale - p1_p2_rdb_pc:P1025RDB,SPIFLASH +TWR-P1025 powerpc mpc85xx p1_twr freescale - p1_twr:TWR_P1025 P2010RDB powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P2010RDB P2010RDB_36BIT powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P2010RDB,36BIT P2010RDB_36BIT_SDCARD powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P2010RDB,36BIT,SDCARD
include/configs/p1_twr.h new file +636 -0
636 lines not on this page · raw message
Signature · 1 line
1.8.0
[U-Boot] MIPI-CSI Support question
Hi, experts:
MIPI(Mobile Industry Processor Interface) has defined many mobile device interface.
Such as:
CSI --- for Camera
DSI --- for Display
It seems DSI has samples on Exynos board.(in drivers\video directory) I want to know the status about CSI support in u-boot.
Is there any samples in u-boot source code?
Best wishes,
[U-Boot] MIPI-CSI Support question
Dear TigerLiu at viatech.com.cn,
Quoted 10 lines · In message <[email protected]>…
Hi, experts:
MIPI(Mobile Industry Processor Interface) has defined many mobile device interface.
Such as:
CSI --- for Camera
DSI --- for DisplayIt seems DSI has samples on Exynos board.(in drivers\video directory) I want to know the status about CSI support in u-boot.
Is there any samples in u-boot source code?
What exactly would you use a camera for in a boot loader?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Nothing ever becomes real till it is experienced -- even a proverb is no proverb to you till your life has illustrated it. - John Keats
[U-Boot] MIPI-CSI Support question
Hi, Wolf:
Because U-boot is more powerful than before.
So, I want to develop a simple video monitor system based on u-boot code. So, I care about current CSI support in u-boot code.
Best wishes,
-----????-----
???: Wolfgang Denk [mailto:wd at denx.de]
????: 2013?4?25? 21:35
???: Tiger Liu
??: u-boot at lists.denx.de
??: Re: [U-Boot] MIPI-CSI Support question
Dear TigerLiu at viatech.com.cn,
Quoted 10 lines · In message <[email protected]>…
Hi, experts:
MIPI(Mobile Industry Processor Interface) has defined many mobile device interface.
Such as:
CSI --- for Camera
DSI --- for DisplayIt seems DSI has samples on Exynos board.(in drivers\video directory) I want to know the status about CSI support in u-boot.
Is there any samples in u-boot source code?
What exactly would you use a camera for in a boot loader?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Nothing ever becomes real till it is experienced -- even a proverb is no proverb to you till your life has illustrated it. - John Keats
[U-Boot] MIPI-CSI Support question
Dear TigerLiu at viatech.com.cn,
Please do not top post / full quote!!
Quoted 5 lines · In message <[email protected]>…
Because U-boot is more powerful than before.
So, I want to develop a simple video monitor system based on u-boot code.
So, I care about current CSI support in u-boot code.
This makes no sense. U-Boot is a boot loader, not an OS. Do not reinvent the wheel yet another time. Use an OS - for example, Linux has all the inrastructure (both kernel and user space components) that you will need - in U-Boot, you would have to reinvent everything from scratch.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.
[U-Boot] MIPI-CSI Support question
In reply to TigerLiu at viatech.com.cnQuoted 7 lines · On Thu, Apr 25, 2013 at 4:07 AM, <[email protected]> wrote:
Hi, experts:
MIPI(Mobile Industry Processor Interface) has defined many mobile device interface.
Such as:
CSI --- for Camera
DSI --- for Display
Quoted 5 lines
It seems DSI has samples on Exynos board.(in drivers\video directory) I want to know the status about CSI support in u-boot.
Is there any samples in u-boot source code?
Please do not create a new message by replying to an unrelated one. Your message contains:
In-Reply-To: <[email protected]>
This means this whole, unrelated conversation has been logged into patchworks as part of a conversation about a patch. Also, naive mail clients will have difficulty with threading when the two conversations appear to be related.
Andy
PATCH v2 1/1 powerpc/85xx: Add TWR-P10xx board support
In reply to Xie XiaoboQuoted 28 lines · Xie Xiaobo
TWR-P1025 Specification:
-----------------------
Memory subsystem:
512MB DDR3 (on board DDR)
64Mbyte 16bit NOR flash
One microSD Card slotEthernet:
eTSEC1: Connected to Atheros AR8035 GETH PHY
eTSEC3: Connected to Atheros AR8035 GETH PHYUART:
Two UARTs are routed to the FDTI dual USB to RS232 convertorUSB: Two USB2.0 Type A ports
I2C:
AT24C01B 1K Board EEPROM (8 bit address)QUICC Engine:
Connected to DP83849i PHY supply two 10/100M ethernet ports QE UART for RS485 or RS232PCIE:
One mini-PCIE slotSigned-off-by Michael Johnston <[email protected]>Signed-off-by Xie Xiaobo <[email protected]>
[...]
Quoted 5 lines
include/configs/p1_twr.h new file +0
-0
[...]
include/configs/p1_twr.h line 71
Quoted 10 lines
include/configs/p1_twr.h new file +10
-0+ +#define CONFIG_MP + +#define CONFIG_FSL_ELBC +#define CONFIG_PCI +#define CONFIG_PCIE1 /* PCIE controler 1 (slot 1) */ +#define CONFIG_PCIE2 /* PCIE controler 2 (slot 2) */ +#define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ +#define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ +#define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */
Why is CONFIG_PCI_INDIRECT_BRIDGE not set? Without it, the PCI code is not building, which raises the question of how you build-tested this code...
Please rebase, build-test, and fix any errors before resubmitting.
Andy