Skip to contentSkip to conversation

board: tegra30: ouya: add basic support for Ouya Game Console

PATCH New Svyatoslav Ryhel 1 participant 2 messages Mar 14, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover board: tegra30: ouya: add basic support for Ouya Game Console

The Ouya microconsole is build on Nvidia Tegra 3 (T33) SoC, featuring a quad-core 1.7 GHz ARM Cortex-A9 CPU and a ULP GeForce GPU, paired with 1GB of DDR3 RAM and 8GB of internal flash storage.

---
Changes in v2:
- fixed EMMC, removed restrictions
- removed redundant configurations
---

Svyatoslav Ryhel (1):
board: ouya: add Ouya Game Console support

 arch/arm/dts/Makefile               |    1 +
 arch/arm/dts/tegra30-ouya.dts       | 2063 +++++++++++++++++++++++++++
 arch/arm/mach-tegra/tegra30/Kconfig |    5 +
 board/ouya/ouya/Kconfig             |   12 +
 board/ouya/ouya/MAINTAINERS         |    8 +
 board/ouya/ouya/Makefile            |   11 +
 board/ouya/ouya/ouya-spl.c          |   41 +
 board/ouya/ouya/ouya.c              |   21 +
 board/ouya/ouya/ouya.env            |   12 +
 configs/ouya_defconfig              |   86 ++
 doc/board/index.rst                 |    1 +
 doc/board/ouya/index.rst            |    9 +
 doc/board/ouya/ouya.rst             |  123 ++
 include/configs/ouya.h              |   23 +
 include/env/nvidia/prod_upd.env     |    5 +-
 15 files changed, 2419 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/tegra30-ouya.dts
 create mode 100644 board/ouya/ouya/Kconfig
 create mode 100644 board/ouya/ouya/MAINTAINERS
 create mode 100644 board/ouya/ouya/Makefile
 create mode 100644 board/ouya/ouya/ouya-spl.c
 create mode 100644 board/ouya/ouya/ouya.c
 create mode 100644 board/ouya/ouya/ouya.env
 create mode 100644 configs/ouya_defconfig
 create mode 100644 doc/board/ouya/index.rst
 create mode 100644 doc/board/ouya/ouya.rst
 create mode 100644 include/configs/ouya.h
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/1 board: ouya: add Ouya Game Console support

The Ouya microconsole is build on Nvidia Tegra 3 (T33) SoC, featuring a quad-core 1.7 GHz ARM Cortex-A9 CPU and a ULP GeForce GPU, paired with 1GB of DDR3 RAM and 8GB of internal flash storage. Running a modified Android 4.1 (Jelly Bean) OS with a custom launcher, it aimed for open-source gaming via a digital storefront.

This implementation is mostly based on upstream Linux device tree and fragments of work done by previous developers.

---
 arch/arm/dts/Makefile               |    1 +
 arch/arm/dts/tegra30-ouya.dts       | 2063 +++++++++++++++++++++++++++
 arch/arm/mach-tegra/tegra30/Kconfig |    5 +
 board/ouya/ouya/Kconfig             |   12 +
 board/ouya/ouya/MAINTAINERS         |    8 +
 board/ouya/ouya/Makefile            |   11 +
 board/ouya/ouya/ouya-spl.c          |   41 +
 board/ouya/ouya/ouya.c              |   21 +
 board/ouya/ouya/ouya.env            |   12 +
 configs/ouya_defconfig              |   86 ++
 doc/board/index.rst                 |    1 +
 doc/board/ouya/index.rst            |    9 +
 doc/board/ouya/ouya.rst             |  123 ++
 include/configs/ouya.h              |   23 +
 include/env/nvidia/prod_upd.env     |    5 +-
 15 files changed, 2419 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/tegra30-ouya.dts
 create mode 100644 board/ouya/ouya/Kconfig
 create mode 100644 board/ouya/ouya/MAINTAINERS
 create mode 100644 board/ouya/ouya/Makefile
 create mode 100644 board/ouya/ouya/ouya-spl.c
 create mode 100644 board/ouya/ouya/ouya.c
 create mode 100644 board/ouya/ouya/ouya.env
 create mode 100644 configs/ouya_defconfig
 create mode 100644 doc/board/ouya/index.rst
 create mode 100644 doc/board/ouya/ouya.rst
 create mode 100644 include/configs/ouya.h
arch/arm/dts/Makefile +1 -0
index 73231824526..bad582c66b0 100644
@@ -113,6 +113,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += \
 	tegra30-lg-p880.dtb \
 	tegra30-lg-p895.dtb \
 	tegra30-microsoft-surface-rt.dtb \
+	tegra30-ouya.dtb \
 	tegra30-tec-ng.dtb \
 	tegra30-wexler-qc750.dtb \
 	tegra114-dalmore.dtb \
arch/arm/dts/tegra30-ouya.dts new file +2063 -0

2,063 lines not on this page · raw message

arch/arm/mach-tegra/tegra30/Kconfig +5 -0
index e0f054af8e0..b5099ce67fc 100644
@@ -32,6 +32,10 @@ config TARGET_IDEAPAD_YOGA_11
 	bool "Lenovo Ideapad Yoga 11 board"
 	select BOARD_LATE_INIT
 
+config TARGET_OUYA
+	bool "Ouya Game Console board"
+	select BOARD_LATE_INIT
+
 config TARGET_QC750
 	bool "Wexler QC750 board"
 	select BOARD_LATE_INIT
@@ -64,6 +68,7 @@ source "board/toradex/colibri_t30/Kconfig"
 source "board/htc/endeavoru/Kconfig"
 source "board/asus/grouper/Kconfig"
 source "board/lenovo/ideapad-yoga-11/Kconfig"
+source "board/ouya/ouya/Kconfig"
 source "board/wexler/qc750/Kconfig"
 source "board/microsoft/surface-rt/Kconfig"
 source "board/avionic-design/tec-ng/Kconfig"
board/ouya/ouya/Kconfig new file +12 -0
new file mode 100644
index 00000000000..6bab40ce933
@@ -0,0 +1,12 @@
+if TARGET_OUYA
+
+config SYS_BOARD
+	default "ouya"
+
+config SYS_VENDOR
+	default "ouya"
+
+config SYS_CONFIG_NAME
+	default "ouya"
+
+endif
board/ouya/ouya/MAINTAINERS new file +8 -0
new file mode 100644
index 00000000000..7f664b2e65f
@@ -0,0 +1,8 @@
+OUYA BOARD
+M:	Svyatoslav Ryhel <[email protected]>
+M:	Peter Geis <[email protected]>
+S:	Maintained
+F:	board/ouya/ouya/
+F:	configs/ouya_defconfig
+F:	doc/board/ouya/ouya.rst
+F:	include/configs/ouya.h
board/ouya/ouya/Makefile new file +11 -0
new file mode 100644
index 00000000000..d479ec83e5e
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+#  (C) Copyright 2010-2012
+#  NVIDIA Corporation <www.nvidia.com>
+#
+#  (C) Copyright 2021
+#  Svyatoslav Ryhel <[email protected]>
+
+obj-$(CONFIG_XPL_BUILD) += ouya-spl.o
+
+obj-y += ouya.o
board/ouya/ouya/ouya-spl.c new file +41 -0

41 lines not on this page · raw message

board/ouya/ouya/ouya.c new file +21 -0
new file mode 100644
index 00000000000..6d6eb54afe2
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ *  (C) Copyright 2010-2013
+ *  NVIDIA Corporation <www.nvidia.com>
+ *
+ *  (C) Copyright 2025
+ *  Svyatoslav Ryhel <[email protected]>
+ */
+
+#include <fdt_support.h>
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, struct bd_info *bd)
+{
+	/* Remove TrustZone nodes */
+	fdt_del_node_and_alias(blob, "/firmware");
+	fdt_del_node_and_alias(blob, "/reserved-memory/trustzone@bfe00000");
+
+	return 0;
+}
+#endif
board/ouya/ouya/ouya.env new file +12 -0
new file mode 100644
index 00000000000..6ec881b910a
@@ -0,0 +1,12 @@
+#include <env/nvidia/prod_upd.env>
+
+partitions=name=emmc,start=0,size=-,uuid=${uuid_gpt_rootfs}
+boot_interface=usb
+
+bootmenu_0=mount internal storage=usb start && ums 0 mmc 0; bootmenu
+bootmenu_1=fastboot=echo Starting Fastboot protocol ...; fastboot usb 0; bootmenu
+bootmenu_2=update bootloader=run flash_uboot
+bootmenu_3=reboot RCM=enterrcm
+bootmenu_4=reboot=reset
+bootmenu_5=power off=poweroff
+bootmenu_delay=-1
configs/ouya_defconfig new file +86 -0

86 lines not on this page · raw message

doc/board/index.rst +1 -0
index 84c135e02c1..7ad1137c94a 100644
@@ -43,6 +43,7 @@ Board-specific doc
    microsoft/index
    nxp/index
    openpiton/index
+   ouya/index
    phytec/index
    purism/index
    qualcomm/index
doc/board/ouya/index.rst new file +9 -0
new file mode 100644
index 00000000000..7413240a1b8
@@ -0,0 +1,9 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+OUYA
+====
+
+.. toctree::
+   :maxdepth: 2
+
+   ouya
doc/board/ouya/ouya.rst new file +123 -0

123 lines not on this page · raw message

include/configs/ouya.h new file +23 -0
new file mode 100644
index 00000000000..cc86c1002e3
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ *  (C) Copyright 2010,2012
+ *  NVIDIA Corporation <www.nvidia.com>
+ *
+ *  (C) Copyright 2025
+ *  Svyatoslav Ryhel <[email protected]>
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include "tegra30-common.h"
+
+/* High-level configuration options */
+#define CFG_TEGRA_BOARD_STRING		"Ouya Game Console"
+
+/* Board-specific serial config */
+#define CFG_SYS_NS16550_COM1		NV_PA_APB_UARTD_BASE
+
+#include "tegra-common-post.h"
+
+#endif /* __CONFIG_H */
include/env/nvidia/prod_upd.env +3 -2
index f4e381994be..6a457d1b75b 100644
@@ -3,6 +3,7 @@ boot_block_size=0x1000
 bootloader_file=u-boot-dtb-tegra.bin
 spi_size=0x400000
 boot_dev=0
+boot_interface=mmc
 
 flash_uboot=echo Preparing RAM;
 	mw ${kernel_addr_r} 0 ${boot_block_size_r};
@@ -11,9 +12,9 @@ flash_uboot=echo Preparing RAM;
 		mmc dev 0 1;
 		mmc read ${kernel_addr_r} 0 ${boot_block_size};
 		echo Reading bootloader;
-		if load mmc ${boot_dev}:1 ${ramdisk_addr_r} ${bootloader_file};
+		if load ${boot_interface} ${boot_dev}:1 ${ramdisk_addr_r} ${bootloader_file};
 		then echo Calculating bootloader size;
-			size mmc ${boot_dev}:1 ${bootloader_file};
+			size ${boot_interface} ${boot_dev}:1 ${bootloader_file};
 			ebtupdate ${kernel_addr_r} ${ramdisk_addr_r} ${filesize};
 			echo Writing bootloader to eMMC;
 			mmc dev 0 1;
Signature · 1 line
2.43.0