Add support for CM-T335 board
cover Add support for CM-T335 board
This patch series adds support for the Compulab CM-T335 board. The board is based on TI Sitara AM3352/4 SoC and provides folowing features:
- 128MB to 512MB DDR3
- 128MB to 1GB NAND as a main storage
- Micro SD/MMC card as a secondary storage
- USB2.0 x4 host ports or USB2.0 x1 OTG port
- Gigabit Ethernet, WiFi 802.11, Bluetooth, CAN bus, UART
- LCD/DVI/LVDS display, touchscreen
- Analog audio
Ilya Ledvich (3):
cm_t335: add cm_t335 board support
cm_t335: add support for status LED
cm_t335: add support for pca9555 i2c gpio extender
arch/arm/include/asm/arch-am33xx/ddr_defs.h | 6 + board/compulab/cm_t335/Makefile | 32 +++++ board/compulab/cm_t335/cm_t335.c | 162 ++++++++++++++++++++++++ board/compulab/cm_t335/mux.c | 117 +++++++++++++++++ board/compulab/cm_t335/spl.c | 110 ++++++++++++++++ board/compulab/cm_t335/u-boot.lds | 101 +++++++++++++++ boards.cfg | 1 + include/configs/cm_t335.h | 182 +++++++++++++++++++++++++++ 8 files changed, 711 insertions(+) create mode 100644 board/compulab/cm_t335/Makefile create mode 100644 board/compulab/cm_t335/cm_t335.c create mode 100644 board/compulab/cm_t335/mux.c create mode 100644 board/compulab/cm_t335/spl.c create mode 100644 board/compulab/cm_t335/u-boot.lds create mode 100644 include/configs/cm_t335.h
Signature · 1 line
1.7.9.5
PATCH 1/3 cm_t335: add cm_t335 board support
Add cm_t335 board directory, config file. Enable build.
--- arch/arm/include/asm/arch-am33xx/ddr_defs.h | 6 + board/compulab/cm_t335/Makefile | 32 ++++++ board/compulab/cm_t335/cm_t335.c | 159 ++++++++++++++++++++++++++ board/compulab/cm_t335/mux.c | 111 +++++++++++++++++++ board/compulab/cm_t335/spl.c | 110 ++++++++++++++++++ board/compulab/cm_t335/u-boot.lds | 101 +++++++++++++++++ boards.cfg | 1 + include/configs/cm_t335.h | 160 +++++++++++++++++++++++++++ 8 files changed, 680 insertions(+) create mode 100644 board/compulab/cm_t335/Makefile create mode 100644 board/compulab/cm_t335/cm_t335.c create mode 100644 board/compulab/cm_t335/mux.c create mode 100644 board/compulab/cm_t335/spl.c create mode 100644 board/compulab/cm_t335/u-boot.lds create mode 100644 include/configs/cm_t335.h
arch/arm/include/asm/arch-am33xx/ddr_defs.h +6 -0
@@ -58,6 +58,12 @@#define MT41J128MJT125_PHY_FIFO_WE 0x100#define MT41J128MJT125_IOCTRL_VALUE 0x18B +/* Micron MT41J64M16JT-125 */ +#define MT41J64MJT125_EMIF_SDCFG 0x61C04A32 + +/* Micron MT41J256M16JT-125 */ +#define MT41J256MJT125_EMIF_SDCFG 0x61C04B32 +/* Micron MT41J256M8HX-15E */ #define MT41J256M8HX15E_EMIF_READ_LATENCY 0x06#define MT41J256M8HX15E_EMIF_TIM1 0x0888A39B
board/compulab/cm_t335/Makefile new file +32 -0
@@ -0,0 +1,32 @@ +# +# Copyright (C) 2013 Compulab Ltd - http://compulab.co.il/ +# +# Author: Ilya Ledvich <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(BOARD).o + +COBJS-y := $(BOARD).o +COBJS-$(CONFIG_SPL_BUILD) += mux.o spl.o + +COBJS := $(sort $(COBJS-y)) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(call cmd_link_o_target, $(OBJS) $(SOBJS)) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +######################################################################### +
board/compulab/cm_t335/cm_t335.c new file +159 -0
159 lines not on this page · raw message
board/compulab/cm_t335/mux.c new file +111 -0
111 lines not on this page · raw message
board/compulab/cm_t335/spl.c new file +110 -0
110 lines not on this page · raw message
board/compulab/cm_t335/u-boot.lds new file +101 -0
101 lines not on this page · raw message
boards.cfg +1 -0
@@ -246,6 +246,7 @@ Active arm arm946es - armltd integrator Active arm armv7 - armltd vexpress vexpress_ca15_tc2 - - Active arm armv7 - armltd vexpress vexpress_ca5x2 - Matt Waddel <[email protected]> Active arm armv7 - armltd vexpress vexpress_ca9x4 - Matt Waddel <[email protected]> +Active arm armv7 am33xx compulab cm_t335 cm_t335 cm_t335 Igor Grinberg <[email protected]> Active arm armv7 am33xx isee igep0033 am335x_igep0033 - Enric Balletbo i Serra <[email protected]> Active arm armv7 am33xx phytec pcm051 pcm051 pcm051 Lars Poeschel <[email protected]> Active arm armv7 am33xx siemens dxr2 dxr2 - Roger Meier <[email protected]>
include/configs/cm_t335.h new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/3 cm_t335: add cm_t335 board support
Quoted 4 lines · Ilya Ledvich
Add
cm_t335board directory, config file. Enable build.Signed-off-by Ilya Ledvich <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot-ti/master, after adapting the board Makefile, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131204/be0f5680/attachment.pgp>
PATCH 2/3 cm_t335: add support for status LED
In reply to Ilya LedvichAdd support for status LED. Use the STATUS_LED APIs for indicating a boot progress.
--- board/compulab/cm_t335/cm_t335.c | 3 +++ board/compulab/cm_t335/mux.c | 6 ++++++ include/configs/cm_t335.h | 10 ++++++++++ 3 files changed, 19 insertions(+)
board/compulab/cm_t335/cm_t335.c +3 -0
@@ -31,6 +31,9 @@ int board_init(void)gpmc_init (); +#if defined(CONFIG_STATUS_LED ) && defined(STATUS_LED_BOOT ) +status_led_set (STATUS_LED_BOOT ,STATUS_LED_OFF ); +#endif return 0 ; }
board/compulab/cm_t335/mux.c +6 -0
@@ -94,6 +94,11 @@ static struct module_pin_mux eth_phy_rst_pin_mux[] = { {-1}, }; +static struct module_pin_mux status_led_pin_mux[] = { + {OFFSET (gpmc_csn3), (MODE (7 ) |PULLUDEN )},/* GPIO2_0 */ + {-1 }, +}; +void set_uart_mux_conf (void ) {configure_module_pin_mux (uart0_pin_mux);
@@ -108,4 +113,5 @@ void set_mux_conf_regs(void)configure_module_pin_mux (eth_phy_rst_pin_mux);configure_module_pin_mux (mmc0_pin_mux);configure_module_pin_mux (nand_pin_mux); +configure_module_pin_mux (status_led_pin_mux); }
include/configs/cm_t335.h +10 -0
@@ -156,5 +156,15 @@/* GPIO pin + bank to pin ID mapping */ #define GPIO_PIN (_bank, _pin) ((_bank << 5) + _pin) +/* Status LED */ +#define CONFIG_STATUS_LED +#define CONFIG_GPIO_LED +#define CONFIG_BOARD_SPECIFIC_LED +#define STATUS_LED_BIT GPIO_PIN(2, 0) +/* Status LED polarity is inversed, so init it in the "off" state */ +#define STATUS_LED_STATE STATUS_LED_OFF +#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) +#define STATUS_LED_BOOT 0 +#endif /* __CONFIG_CM_T335_H */
Signature · 1 line
1.7.9.5
PATCH 2/3 cm_t335: add support for status LED
Quoted 5 lines · Ilya Ledvich
Add support for status LED. Use the
STATUS_LEDAPIs for indicating a boot progress.Signed-off-by Ilya Ledvich <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131204/c7080c0a/attachment.pgp>
PATCH 3/3 cm_t335: add support for pca9555 i2c gpio extender
In reply to Ilya LedvichAdd support for the 16 bits pca9555 i2c to gpio extender featured by the SB-T335 baseboard.
--- include/configs/cm_t335.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
include/configs/cm_t335.h +12 -0
@@ -166,5 +166,17 @@#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)#define STATUS_LED_BOOT 0 +#ifndef CONFIG_SPL_BUILD +/* +* Enable PCA9555 at I2C0-0x26. +* First select the I2C0 bus with "i2c dev 0", then use "pca953x" command. +*/ +#define CONFIG_PCA953X +#define CONFIG_CMD_PCA953X +#define CONFIG_CMD_PCA953X_INFO +#define CONFIG_SYS_I2C_PCA953X_ADDR 0x26 +#define CONFIG_SYS_I2C_PCA953X_WIDTH { {0x26, 16} } +#endif /* CONFIG_SPL_BUILD */ +#endif /* __CONFIG_CM_T335_H */
Signature · 1 line
1.7.9.5
PATCH 3/3 cm_t335: add support for pca9555 i2c gpio extender
Quoted 5 lines · Ilya Ledvich
Add support for the 16 bits pca9555 i2c to gpio extender featured by the SB-T335 baseboard.
Signed-off-by Ilya Ledvich <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131204/acc66d3a/attachment.pgp>
cover Add support for CM-T335 board
In reply to Ilya LedvichPing!
Quoted 31 lines · Ilya Ledvich
This patch series adds support for the Compulab CM-T335 board. The board is based on TI Sitara AM3352/4 SoC and provides folowing features:
- 128MB to 512MB DDR3
- 128MB to 1GB NAND as a main storage
- Micro SD/MMC card as a secondary storage
- USB2.0 x4 host ports or USB2.0 x1 OTG port
- Gigabit Ethernet, WiFi 802.11, Bluetooth, CAN bus, UART
- LCD/DVI/LVDS display, touchscreen
- Analog audioIlya Ledvich (3):
cm_t335: addcm_t335board support
cm_t335: add support for status LED
cm_t335: add support for pca9555 i2c gpio extenderarch/arm/include/asm/arch-am33xx/ddr_defs.h | 6 + board/compulab/cm_t335/Makefile | 32 +++++ board/compulab/cm_t335/cm_t335.c | 162 ++++++++++++++++++++++++ board/compulab/cm_t335/mux.c | 117 +++++++++++++++++ board/compulab/cm_t335/spl.c | 110 ++++++++++++++++ board/compulab/cm_t335/u-boot.lds | 101 +++++++++++++++ boards.cfg | 1 + include/configs/cm_t335.h | 182 +++++++++++++++++++++++++++ 8 files changed, 711 insertions(+)create mode 100644 board/compulab/cm_t335/Makefile create mode 100644
board/compulab/cm_t335/cm_t335.ccreate mode 100644board/compulab/cm_t335/mux.ccreate mode 100644board/compulab/cm_t335/spl.ccreate mode 100644board/compulab/cm_t335/u-boot.ldscreate mode 100644include/configs/cm_t335.h