Skip to contentSkip to conversation

am335x: pepper: Add Gumstix Pepper AM335x-based machine

PATCH New Ash Charles 2 participants 7 messages Apr 29, 2014 – May 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

This adds the Gumstix Pepper[1] single-board computer based on the TI AM335x processor. Schematics are available [2].

[1] https://store.gumstix.com/index.php/products/344/
[2] https://pubs.gumstix.com/boards/PEPPER/

---
 board/gumstix/pepper/Makefile |  13 +++
 board/gumstix/pepper/board.c  | 226 ++++++++++++++++++++++++++++++++++++++++++
 board/gumstix/pepper/board.h  |  19 ++++
 board/gumstix/pepper/mux.c    |  78 +++++++++++++++
 boards.cfg                    |   1 +
 include/configs/pepper.h      | 100 +++++++++++++++++++
 6 files changed, 437 insertions(+)
 create mode 100644 board/gumstix/pepper/Makefile
 create mode 100644 board/gumstix/pepper/board.c
 create mode 100644 board/gumstix/pepper/board.h
 create mode 100644 board/gumstix/pepper/mux.c
 create mode 100644 include/configs/pepper.h
board/gumstix/pepper/Makefile new file +13 -0
new file mode 100644
index 0000000..ecb1d61
@@ -0,0 +1,13 @@
+#
+# Makefile
+#
+# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifdef CONFIG_SPL_BUILD
+obj-y	+= mux.o
+endif
+
+obj-y	+= board.o
board/gumstix/pepper/board.c new file +226 -0

226 lines not on this page · raw message

board/gumstix/pepper/board.h new file +19 -0
new file mode 100644
index 0000000..0512735
@@ -0,0 +1,19 @@
+/*
+ * Gumstix Pepper and AM335x-based boards information header
+ *
+ * Copyright (C) 2014, Gumstix, Inc. - http://www.gumstix.com/
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+/*
+ * We must be able to enable uart0, for initial output. We then have a
+ * main pinmux function that can be overridden to enable all other pinmux that
+ * is required on the board.
+ */
+void enable_uart0_pin_mux(void);
+void enable_board_pin_mux(void);
+#endif
board/gumstix/pepper/mux.c new file +78 -0

78 lines not on this page · raw message

boards.cfg +1 -0
index 983c657..1059342 100644
@@ -257,6 +257,7 @@ Active  arm         armv7          am33xx      BuR             tseries
 Active  arm         armv7          am33xx      BuR             tseries             tseries_nand                         tseries:SERIAL1,CONS_INDEX=1,NAND                                                                                                 Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      BuR             tseries             tseries_spi                          tseries:SERIAL1,CONS_INDEX=1,SPI_BOOT,EMMC_BOOT                                                                                   Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      compulab        cm_t335             cm_t335                              -                                                                                                                                 Igor Grinberg <[email protected]>
+Active  arm         armv7          am33xx      gumstix         pepper              pepper                               -                                                                                                                                 Ash Charles <[email protected]>
 Active  arm         armv7          am33xx      isee            igep0033            am335x_igep0033                      -                                                                                                                                 Enric Balletbo i Serra <[email protected]>
 Active  arm         armv7          am33xx      phytec          pcm051              pcm051_rev1                          pcm051:REV1                                                                                                                       Lars Poeschel <[email protected]>
 Active  arm         armv7          am33xx      phytec          pcm051              pcm051_rev3                          pcm051:REV3                                                                                                                       Lars Poeschel <[email protected]>
include/configs/pepper.h new file +100 -0

100 lines not on this page · raw message

Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

Quoted 5 lines · Ash Charles

This adds the Gumstix Pepper[1] single-board computer based on the TI AM335x processor. Schematics are available [2].

[1] https://store.gumstix.com/index.php/products/344/
[2] https://pubs.gumstix.com/boards/PEPPER/

[snip]

include/configs/pepper.h line 25

Quoted 3 lines
include/configs/pepper.h new file +3 -0
+/* Mach type */
+#define MACH_TYPE_PEPPER		4207	/* Until the next sync */
+#define CONFIG_MACH_TYPE		MACH_TYPE_PEPPER

Shouldn't need this, you don't support any non-DT kernels do you, really?

include/configs/pepper.h line 35

Quoted 3 lines
include/configs/pepper.h new file +3 -0
+#define CONFIG_EXTRA_ENV_SETTINGS \
+	"loadaddr=0x80F80000\0" \
+	"dtbaddr=0x80200000\0" \

Please look at DEFAULT_LINUX_BOOT_ENV and the related discussions. 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/20140506/f806de5e/attachment.pgp>
#2 lore raw

PATCH 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

Quoted 2 lines · Tom Rini

Shouldn't need this, you don't support any non-DT kernels do you, really?

Embarrassingly, the default kernel is non-devicetree. Future updates to the BSP will use devicetree instead but some customers may still wish to use a non-devicetree kernel. Do you prefer a v2 with non-devicetree removed or can this stand as-is?

Quoted 6 lines

include/configs/pepper.h line 35

Quoted 4 lines
include/configs/pepper.h new file +3 -0
+#define CONFIG_EXTRA_ENV_SETTINGS \
+     "loadaddr=0x80F80000\0" \
+     "dtbaddr=0x80200000\0" \

Please look at DEFAULT_LINUX_BOOT_ENV and the related discussions.

Cool. Will send a v2 with this fixed.

--Ash

#3 lore raw

PATCH 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

Quoted 7 lines · Ash Charles
Quoted 2 lines · Tom Rini

Shouldn't need this, you don't support any non-DT kernels do you, really?

Embarrassingly, the default kernel is non-devicetree. Future updates to the BSP will use devicetree instead but some customers may still wish to use a non-devicetree kernel. Do you prefer a v2 with non-devicetree removed or can this stand as-is?

As long as it's really being used then OK, you can keep it.

Quoted 7 lines
Quoted 6 lines

include/configs/pepper.h line 35

Quoted 4 lines
include/configs/pepper.h new file +3 -0
+#define CONFIG_EXTRA_ENV_SETTINGS \
+     "loadaddr=0x80F80000\0" \
+     "dtbaddr=0x80200000\0" \

Please look at DEFAULT_LINUX_BOOT_ENV and the related discussions.

Cool. Will send a v2 with this fixed.

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/20140506/533733ca/attachment.pgp>
#4 lore raw

PATCH v2 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

This adds the Gumstix Pepper[1] single-board computer based on the TI AM335x processor. Schematics are available [2].

[1] https://store.gumstix.com/index.php/products/344/
[2] https://pubs.gumstix.com/boards/PEPPER/

---
 board/gumstix/pepper/Makefile |  13 +++
 board/gumstix/pepper/board.c  | 226 ++++++++++++++++++++++++++++++++++++++++++
 board/gumstix/pepper/board.h  |  19 ++++
 board/gumstix/pepper/mux.c    |  78 +++++++++++++++
 boards.cfg                    |   1 +
 include/configs/pepper.h      |  99 ++++++++++++++++++
 6 files changed, 436 insertions(+)
 create mode 100644 board/gumstix/pepper/Makefile
 create mode 100644 board/gumstix/pepper/board.c
 create mode 100644 board/gumstix/pepper/board.h
 create mode 100644 board/gumstix/pepper/mux.c
 create mode 100644 include/configs/pepper.h
board/gumstix/pepper/Makefile new file +13 -0
new file mode 100644
index 0000000..ecb1d61
@@ -0,0 +1,13 @@
+#
+# Makefile
+#
+# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifdef CONFIG_SPL_BUILD
+obj-y	+= mux.o
+endif
+
+obj-y	+= board.o
board/gumstix/pepper/board.c new file +226 -0

226 lines not on this page · raw message

board/gumstix/pepper/board.h new file +19 -0
new file mode 100644
index 0000000..0512735
@@ -0,0 +1,19 @@
+/*
+ * Gumstix Pepper and AM335x-based boards information header
+ *
+ * Copyright (C) 2014, Gumstix, Inc. - http://www.gumstix.com/
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+/*
+ * We must be able to enable uart0, for initial output. We then have a
+ * main pinmux function that can be overridden to enable all other pinmux that
+ * is required on the board.
+ */
+void enable_uart0_pin_mux(void);
+void enable_board_pin_mux(void);
+#endif
board/gumstix/pepper/mux.c new file +78 -0

78 lines not on this page · raw message

boards.cfg +1 -0
index 983c657..1059342 100644
@@ -257,6 +257,7 @@ Active  arm         armv7          am33xx      BuR             tseries
 Active  arm         armv7          am33xx      BuR             tseries             tseries_nand                         tseries:SERIAL1,CONS_INDEX=1,NAND                                                                                                 Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      BuR             tseries             tseries_spi                          tseries:SERIAL1,CONS_INDEX=1,SPI_BOOT,EMMC_BOOT                                                                                   Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      compulab        cm_t335             cm_t335                              -                                                                                                                                 Igor Grinberg <[email protected]>
+Active  arm         armv7          am33xx      gumstix         pepper              pepper                               -                                                                                                                                 Ash Charles <[email protected]>
 Active  arm         armv7          am33xx      isee            igep0033            am335x_igep0033                      -                                                                                                                                 Enric Balletbo i Serra <[email protected]>
 Active  arm         armv7          am33xx      phytec          pcm051              pcm051_rev1                          pcm051:REV1                                                                                                                       Lars Poeschel <[email protected]>
 Active  arm         armv7          am33xx      phytec          pcm051              pcm051_rev3                          pcm051:REV3                                                                                                                       Lars Poeschel <[email protected]>
include/configs/pepper.h new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
1.8.3.2
#5 lore raw

PATCH v2 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

Quoted 7 lines · Ash Charles

This adds the Gumstix Pepper[1] single-board computer based on the TI AM335x processor. Schematics are available [2].

[1] https://store.gumstix.com/index.php/products/344/
[2] https://pubs.gumstix.com/boards/PEPPER/

Applied to u-boot-ti/master (with a minor change to board.c to drop a warning), 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/20140513/4114b77a/attachment.pgp>
#6 lore raw

PATCH v2 1/1 am335x: pepper: Add Gumstix Pepper AM335x-based machine

Quoted 2 lines · Tom Rini

Applied to u-boot-ti/master (with a minor change to board.c to drop a warning), thanks!

Thank you!
--Ash