tegra: Expand Nyan-big support
Subsystems (5)
v2 cover tegra: Expand Nyan-big support
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easily
Still missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing __stringify() macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been applied
Doug Anderson (1):
Add Chrome OS config header
Simon Glass (15):
tegra: cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop the claim_bus() method to correct delays
dm: tegra: cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS boot
arch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457 ++++++++++++++++++++++ include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode 100644 include/configs/chromeos.h
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 1/16 tegra: cros_ec: Add tegra support for Chrome OS EC
This requires a change to stdin to include the 'cros-ec-keyb' input device. Put this in the common file, enabled by the relevant CONFIG.
---
Changes in v2: None
include/configs/tegra-common-post.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
include/configs/tegra-common-post.h +7 -1
@@ -40,8 +40,14 @@#define STDOUT_LCD ""#endif +#ifdef CONFIG_CROS_EC_KEYB +#define STDOUT_CROS_EC ",cros-ec-keyb" +#else +#define STDOUT_CROS_EC "" +#endif +#define TEGRA_DEVICE_SETTINGS \ - "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB "\0" \ + "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC "\0" \ "stdout=serial" STDOUT_LCD "\0" \ "stderr=serial" STDOUT_LCD "\0" \ ""
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 2/16 tegra: spi: Drop the claim_bus() method to correct delays
In reply to Simon GlassAt present the driver does not properly honour the requested SPI CS deactivation delay since the SPI bus is changed in the claim_bus() method.
Everything the claim_bus() method does can be done when the device is probed (setting the speed and mode) and at the start of a new transfer (where the fifo_status is already cleared). So drop this method.
Also, until the delay is complete, we should not touch the bus, so make sure that spi_cs_activate() is called before other things are done in the xfer() method.
---
Changes in v2: None
drivers/spi/tegra114_spi.c | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-)
drivers/spi/tegra114_spi.c +9 -17
@@ -143,24 +143,18 @@ static int tegra114_spi_probe(struct udevice *bus) {struct tegra_spi_platdata *plat =dev_get_platdata (bus);struct tegra114_spi_priv *priv =dev_get_priv (bus); +struct spi_regs *regs; priv->regs = (struct spi_regs *)plat->base; + regs = priv->regs; priv->last_transaction_us =timer_get_us (); priv->freq = plat->frequency; priv->periph_id = plat->periph_id; -return 0 ; -} - -static int tegra114_spi_claim_bus (struct udevice *dev) -{ -struct udevice *bus = dev->parent; -struct tegra114_spi_priv *priv =dev_get_priv (bus); -struct spi_regs *regs = priv->regs; -/* Change SPI clock to correct frequency, PLLP_OUT0 source */ -clock_start_periph_pll (priv->periph_id,CLOCK_ID_PERIPH , priv->freq); +clock_start_periph_pll (priv->periph_id,CLOCK_ID_PERIPH , + priv->freq);/* Clear stale status here */ setbits_le32(®s->fifo_status,
@@ -175,9 +169,8 @@ static int tegra114_spi_claim_bus(struct udevice *dev) SPI_FIFO_STS_RX_FIFO_EMPTY);debug ("%s: FIFO STATUS = %08x\n" , __func__,readl (®s->fifo_status)); -/* Set master mode and sw controlled CS */ -setbits_le32 (®s->command1,SPI_CMD1_M_S |SPI_CMD1_CS_SW_HW | - (priv->mode <<SPI_CMD1_MODE_SHIFT )); +setbits_le32 (&priv->regs->command1,SPI_CMD1_M_S |SPI_CMD1_CS_SW_HW | + (priv->mode <<SPI_CMD1_MODE_SHIFT ) |SPI_CMD1_CS_SW_VAL );debug ("%s: COMMAND1 = %08x\n" , __func__,readl (®s->command1));return 0 ;
@@ -249,6 +242,9 @@ static int tegra114_spi_xfer(struct udevice *dev, unsigned int bitlen, ret =0 ; +if (flags &SPI_XFER_BEGIN ) +spi_cs_activate (dev); +/* clear all error status bits */ reg =readl (®s->fifo_status);writel (reg, ®s->fifo_status);
@@ -260,9 +256,6 @@ static int tegra114_spi_xfer(struct udevice *dev, unsigned int bitlen,/* set xfer size to 1 block (32 bits) */ writel (0 , ®s->dma_blk); -if (flags &SPI_XFER_BEGIN ) -spi_cs_activate (dev); -/* handle data in 32-bit chunks */ while (num_bytes >0 ) {int bytes;
@@ -385,7 +378,6 @@ static int tegra114_spi_set_mode(struct udevice *bus, uint mode) }static const struct dm_spi_ops tegra114_spi_ops = { - .claim_bus = tegra114_spi_claim_bus, .xfer = tegra114_spi_xfer, .set_speed = tegra114_spi_set_speed, .set_mode = tegra114_spi_set_mode,
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 3/16 dm: tegra: cros_ec: Enable Chrome OS EC on Nyan-big
In reply to Simon GlassEnable the EC and keyboard, using the SPI bus.
The EC driver requires a particular format and a deactivation delay. Also U-Boot does not support interrupts.
For now, adjust the device tree to comply. At some point we should tidy this up to support interrupts and make tegra and exynos use the same setup.
---
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
arch/arm/dts/tegra124-nyan-big.dts | 3 +++ configs/nyan-big_defconfig | 5 +++++ include/configs/nyan-big.h | 2 ++ 3 files changed, 10 insertions(+)
arch/arm/dts/tegra124-nyan-big.dts +3 -0
@@ -163,12 +163,15 @@ spi at 7000d400 { status = "okay"; + spi-deactivate-delay = <200>; + spi-max-frequency = <3000000>; cros_ec: cros-ec at 0 { compatible = "google,cros-ec-spi"; spi-max-frequency = <3000000>; interrupt-parent = <&gpio>; interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>; + ec-interrupt = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; reg = <0>; google,cros-ec-spi-msg-delay = <2000>;
configs/nyan-big_defconfig +5 -0
@@ -5,3 +5,8 @@ CONFIG_TARGET_NYAN_BIG=y CONFIG_DEFAULT_DEVICE_TREE="tegra124-nyan-big" CONFIG_DISPLAY_PORT=y CONFIG_VIDEO_TEGRA124=y +CONFIG_DM_CROS_EC=y +CONFIG_CROS_EC=y +CONFIG_CROS_EC_SPI=y +CONFIG_CROS_EC_KEYB=y +CONFIG_CMD_CROS_EC=y
include/configs/nyan-big.h +2 -0
@@ -80,6 +80,8 @@#define CONFIG_FIT #define CONFIG_OF_LIBFDT +#define CONFIG_KEYBOARD +#include "tegra-common-usb-gadget.h" #include "tegra-common-post.h"
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 4/16 tegra: spi: Support slow SPI rates
In reply to Simon GlassUse the oscillator as the source clock when we cannot achieve a low-enough speed with the peripheral clock. This happens when we request 3MHz on a SPI clock, for example.
---
Changes in v2: None
drivers/spi/tegra114_spi.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)
drivers/spi/tegra114_spi.c +15 -3
@@ -144,6 +144,7 @@ static int tegra114_spi_probe(struct udevice *bus)struct tegra_spi_platdata *plat =dev_get_platdata (bus);struct tegra114_spi_priv *priv =dev_get_priv (bus);struct spi_regs *regs; +ulong rate; priv->regs = (struct spi_regs *)plat->base; regs = priv->regs;
@@ -152,9 +153,20 @@ static int tegra114_spi_probe(struct udevice *bus) priv->freq = plat->frequency; priv->periph_id = plat->periph_id; -/* Change SPI clock to correct frequency, PLLP_OUT0 source */ -clock_start_periph_pll (priv->periph_id,CLOCK_ID_PERIPH , - priv->freq); +/* +* Change SPI clock to correct frequency, PLLP_OUT0 source, falling +* back to the oscillator if that is too fast. +*/ + rate =clock_start_periph_pll (priv->periph_id,CLOCK_ID_PERIPH , + priv->freq); +if (rate > priv->freq +100000 ) { + rate =clock_start_periph_pll (priv->periph_id,CLOCK_ID_OSC , + priv->freq); +if (rate != priv->freq) { +printf ("Warning: SPI '%s' requested clock %u, actual clock %lu\n" , + bus->name, priv->freq, rate); + } + }/* Clear stale status here */ setbits_le32(®s->fifo_status,
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 5/16 tegra: clock: Support enabling external clocks
In reply to Simon GlassAdd a simple function to enable external clocks.
---
Changes in v2: None
arch/arm/include/asm/arch-tegra/clock.h | 8 ++++++++ arch/arm/mach-tegra/clock.c | 17 +++++++++++++++++ 2 files changed, 25 insertions(+)
arch/arm/include/asm/arch-tegra/clock.h +8 -0
@@ -336,4 +336,12 @@ void arch_timer_init(void);void tegra30_set_up_pllp (void ); +/** +* Enable output clock for external peripherals +* +* @param clk_id Clock ID to output (1, 2 or 3) +* @return 0 if OK. -ve on error +*/ +int clock_external_output (int clk_id); +#endif /* _TEGRA_CLOCK_H_ */
arch/arm/mach-tegra/clock.c +17 -0
@@ -17,11 +17,13 @@/* Tegra SoC common clock control functions */ #include <common.h> +#include <errno.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/tegra.h> #include <asm/arch-tegra/ap.h> #include <asm/arch-tegra/clk_rst.h> +#include <asm/arch-tegra/pmc.h> #include <asm/arch-tegra/timer.h> #include <div64.h> #include <fdtdec.h>
@@ -702,3 +704,18 @@ void tegra30_set_up_pllp(void)set_avp_clock_source (SCLK_SOURCE_PLLP_OUT4 ); } + +int clock_external_output (int clk_id) +{ +struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE ; + +if (clk_id >=1 && clk_id <=3 ) { +setbits_le32 (&pmc->pmc_clk_out_cntrl, +1 << (2 + (clk_id -1 ) *8 )); + }else { +printf ("%s: Unknown output clock id %d\n" , __func__, clk_id); +return -EINVAL ; + } + +return 0 ; +}
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 6/16 tegra: clock: Adjust PLL access to avoid a warning
In reply to Simon GlassA harmless but confusing warning is displayed when looking up the DisplayPort PLL. Correct this.
---
Changes in v2: None
arch/arm/mach-tegra/clock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/clock.c +5 -2
@@ -84,7 +84,7 @@ static struct clk_pll *get_pll(enum clock_id clkid)assert (clock_id_is_pll (clkid));if (clkid >= (enum clock_id )TEGRA_CLK_PLLS ) { -debug ("%s: Invalid PLL\n" , __func__); +debug ("%s: Invalid PLL %d\n" , __func__, clkid);return NULL ; }return &clkrst->crc_pll[clkid];
@@ -120,9 +120,12 @@ int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn,unsigned long clock_start_pll (enum clock_id clkid,u32 divm,u32 divn,u32 divp,u32 cpcon,u32 lfcon) { -struct clk_pll *pll =get_pll (clkid); +struct clk_pll *pll =NULL ;u32 misc_data, data; +if (clkid < (enum clock_id )TEGRA_CLK_PLLS ) + pll =get_pll (clkid); +/* * We cheat by treating all PLL (except PLLU) in the same fashion. * This works only because:
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 7/16 tegra: Introduce SRAM repair on tegra124
In reply to Simon GlassThis is required in order to avoid instability when running from caches after the kernel starts.
---
Changes in v2: None
arch/arm/include/asm/arch-tegra124/flow.h | 12 ++++++++++++ arch/arm/mach-tegra/powergate.c | 20 +++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-tegra124/flow.h +12 -0
@@ -26,6 +26,12 @@ struct flow_ctlr {u32 cpu_pwr_csr;/* offset 0x38 */ u32 mpid;/* offset 0x3c */ u32 ram_repair;/* offset 0x40 */ +u32 flow_dbg_sel;/* offset 0x44 */ +u32 flow_dbg_cnt0;/* offset 0x48 */ +u32 flow_dbg_cnt1;/* offset 0x4c */ +u32 flow_dbg_qual;/* offset 0x50 */ +u32 flow_ctlr_spare;/* offset 0x54 */ +u32 ram_repair_cluster1;/* offset 0x58 */ };/* HALT_COP_EVENTS_0, 0x04 */
@@ -37,4 +43,10 @@ struct flow_ctlr {/* FLOW_CTLR_CLUSTER_CONTROL_0 0x2c */ #define ACTIVE_LP (1 << 0) +/* RAM_REPAIR, 0x40, 0x58 */ +enum { +RAM_REPAIR_REQ =0x1 <<0 , +RAM_REPAIR_STS =0x1 <<1 , +}; +#endif /* _TEGRA124_FLOW_H_ */
arch/arm/mach-tegra/powergate.c +19 -1
@@ -9,7 +9,7 @@#include <asm/io.h> #include <asm/types.h> - +#include <asm/arch/flow.h> #include <asm/arch/powergate.h> #include <asm/arch/tegra.h>
@@ -75,11 +75,29 @@ static int tegra_powergate_remove_clamping(enum tegra_powergate id)return 0 ; } +static void tegra_powergate_ram_repair (void ) +{ +#ifdef CONFIG_TEGRA124 +struct flow_ctlr *flow = (struct flow_ctlr *)NV_PA_FLOW_BASE ; + +/* Request RAM repair for cluster 0 and wait until complete */ +setbits_le32 (&flow->ram_repair,RAM_REPAIR_REQ ); +while (!(readl (&flow->ram_repair) &RAM_REPAIR_STS )) + ; + +/* Same for cluster 1 */ +setbits_le32 (&flow->ram_repair_cluster1,RAM_REPAIR_REQ ); +while (!(readl (&flow->ram_repair_cluster1) &RAM_REPAIR_STS )) + ; +#endif +} +int tegra_powergate_sequence_power_up (enum tegra_powergate id,enum periph_id periph) {int err; +tegra_powergate_ram_repair ();reset_set_enable (periph,1 ); err =tegra_powergate_power_on (id);
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 8/16 tegra: Add missing tegra124 peripherals
In reply to Simon GlassThere are some missing entries in the tables. Add them.
---
Changes in v2: None
arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 ++++++------ arch/arm/mach-tegra/tegra124/clock.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-)
arch/arm/include/asm/arch-tegra124/clock-tables.h +6 -6
@@ -285,12 +285,12 @@ enum periph_id {/* 184 */ PERIPH_ID_GPU ,PERIPH_ID_AMX1 , -PERIPH_ID_X_RESERVED26 , -PERIPH_ID_X_RESERVED27 , -PERIPH_ID_X_RESERVED28 , -PERIPH_ID_X_RESERVED29 , -PERIPH_ID_X_RESERVED30 , -PERIPH_ID_X_RESERVED31 , +PERIPH_ID_AFC5 , +PERIPH_ID_AFC4 , +PERIPH_ID_AFC3 , +PERIPH_ID_AFC2 , +PERIPH_ID_AFC1 , +PERIPH_ID_AFC0 ,PERIPH_ID_COUNT , PERIPH_ID_NONE = -1,
arch/arm/mach-tegra/tegra124/clock.c +1 -1
@@ -475,7 +475,7 @@ static s8 periph_id_to_internal_id[PERIPH_ID_COUNT] = {PERIPHC_ACTMON ,/* 120 */ -NONE (EXTPERIPH1 ), +PERIPHC_EXTPERIPH1 ,NONE (EXTPERIPH2 ),NONE (EXTPERIPH3 ), NONE(OOB),
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 9/16 tegra: Increase maximum arguments to 32
In reply to Simon GlassWhen setting up large environment variables we can exceed 16 arguemnts. Increase this to avoid problems.
---
Changes in v2: None
include/configs/tegra-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/tegra-common.h +1 -1
@@ -102,7 +102,7 @@/* Print Buffer Size */ #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ sizeof(CONFIG_SYS_PROMPT) + 16) -#define CONFIG_SYS_MAXARGS 16/* max number of command args */ +#define CONFIG_SYS_MAXARGS 32/* max number of command args */ /* Boot Argument Buffer Size */ #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE)
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 10/16 tegra: lcd: Tidy up clock init
In reply to Simon GlassUse the correct function for clock init.
---
Changes in v2: None
drivers/video/tegra124/tegra124-lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/tegra124/tegra124-lcd.c +1 -3
@@ -51,15 +51,13 @@ static int tegra124_lcd_init(void *lcdbase)int ret;clock_set_up_plldp (); -clock_adjust_periph_pll_div (PERIPH_ID_HOST1X ,CLOCK_ID_PERIPH , -408000000 ,NULL ); +clock_start_periph_pll (PERIPH_ID_HOST1X ,CLOCK_ID_PERIPH ,408000000 );clock_enable (PERIPH_ID_HOST1X );clock_enable (PERIPH_ID_DISP1 );clock_enable (PERIPH_ID_PWM );clock_enable (PERIPH_ID_DPAUX );clock_enable (PERIPH_ID_SOR0 ); -udelay (2 );reset_set_enable (PERIPH_ID_HOST1X ,0 );
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 11/16 tegra: Allow board-specific init
In reply to Simon GlassAdd a hook to allows boards to add their own init to board_init().
---
Changes in v2: None
arch/arm/include/asm/arch-tegra/sys_proto.h | 7 +++++++ board/nvidia/common/board.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-tegra/sys_proto.h +7 -0
@@ -25,4 +25,11 @@ int tegra_board_id(void);*/ int tegra_lcd_pmic_init (int board_id); +/** +* nvidia_board_init() - perform any board-specific init +* +* @return 0 if OK, -ve on error +*/ +int nvidia_board_init (void ); +#endif
board/nvidia/common/board.c +6 -2
@@ -107,6 +107,11 @@ __weak int tegra_lcd_pmic_init(int board_it)return 0 ; } +__weak int nvidia_board_init (void ) +{ +return 0 ; +} +/* * Routine: board_init * Description: Early hardware init.
@@ -180,8 +185,7 @@ int board_init(void)/* prepare the WB code to LP0 location */ warmboot_prepare_code (TEGRA_LP0_ADDR ,TEGRA_LP0_SIZE );#endif - -return 0 ; +return nvidia_board_init (); }#ifdef CONFIG_BOARD_EARLY_INIT_F
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 12/16 tegra: nyan-big: Add additional clock and kernel init
In reply to Simon GlassWe need to turn on all audio-related clocks for the Chrome OS kernel to boot. Otherwise it will hang when trying to enable audio.
Also for Linux set up graphics driver video protection.
---
Changes in v2:
- Remove unnecessary ODMDATA mangling
board/nvidia/nyan-big/nyan-big.c | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)
board/nvidia/nyan-big/nyan-big.c +69 -0
@@ -8,7 +8,12 @@#include <common.h> #include <errno.h> #include <asm/gpio.h> +#include <asm/io.h> #include <asm/arch/pinmux.h> +#include <asm/arch/clock.h> +#include <asm/arch/mc.h> +#include <asm/arch-tegra/clk_rst.h> +#include <asm/arch-tegra/pmc.h> #include <power/as3722.h> #include <power/pmic.h> #include "pinmux-config-nyan-big.h"
@@ -57,3 +62,67 @@ int tegra_lcd_pmic_init(int board_id)return 0 ; } + +/* Setup required information for Linux kernel */ +static void setup_kernel_info (void ) +{ +struct mc_ctlr *mc = (void *)NV_PA_MC_BASE ; + +/* The kernel graphics driver needs this region locked down */ +writel (0 , &mc->mc_video_protect_bom); +writel (0 , &mc->mc_video_protect_size_mb); +writel (1 , &mc->mc_video_protect_reg_ctrl); +} + +/* +* We need to take ALL audio devices conntected to AHUB (AUDIO, APBIF, +* I2S, DAM, AMX, ADX, SPDIF, AFC) out of reset and enable the clocks. +* Otherwise reading AHUB devices will hang when the kernel boots. +*/ +static void enable_required_clocks (void ) +{ +static enum periph_id ids[] = { +PERIPH_ID_I2S0 , +PERIPH_ID_I2S1 , +PERIPH_ID_I2S2 , +PERIPH_ID_I2S3 , +PERIPH_ID_I2S4 , +PERIPH_ID_AUDIO , +PERIPH_ID_APBIF , +PERIPH_ID_DAM0 , +PERIPH_ID_DAM1 , +PERIPH_ID_DAM2 , +PERIPH_ID_AMX0 , +PERIPH_ID_AMX1 , +PERIPH_ID_ADX0 , +PERIPH_ID_ADX1 , +PERIPH_ID_SPDIF , +PERIPH_ID_AFC0 , +PERIPH_ID_AFC1 , +PERIPH_ID_AFC2 , +PERIPH_ID_AFC3 , +PERIPH_ID_AFC4 , +PERIPH_ID_AFC5 , +PERIPH_ID_EXTPERIPH1 + }; +int i; + +for (i =0 ; i <ARRAY_SIZE (ids); i++) +clock_enable (ids[i]); +udelay (2 ); +for (i =0 ; i <ARRAY_SIZE (ids); i++) +reset_set_enable (ids[i],0 ); +} + +int nvidia_board_init (void ) +{ +clock_start_periph_pll (PERIPH_ID_EXTPERIPH1 ,CLOCK_ID_OSC ,12000000 ); +clock_start_periph_pll (PERIPH_ID_I2S1 ,CLOCK_ID_OSC ,1500000 ); + +/* For external MAX98090 audio codec */ +clock_external_output (1 ); +setup_kernel_info (); +enable_required_clocks (); + +return 0 ; +}
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 13/16 Add Chrome OS config header
In reply to Simon GlassFrom: Doug Anderson <[email protected]>
This header includes useful scripts which can be used with any board that can boot Chrome OS.
In particular, 'run nvboot' will boot a board without verified boot enabled.
---
Changes in v2:
- Use existing __stringify() macro
include/configs/chromeos.h | 457 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 457 insertions(+) create mode 100644 include/configs/chromeos.h
include/configs/chromeos.h new file +457 -0
@@ -0,0 +1,457 @@ +/* +* Copyright (c) 2015 Google, Inc +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __configs_chromeos_h__ +#define __configs_chromeos_h__ + +/* +* In anticipation of implementing early firmware selection, these defines +* signal the features that are required in U-Boot. +* +* The defines munging is thus kept to one Chrome OS-specific file. The +* upstream boards will define all features as normal for their platform. +* +* It is possible that these will be too broad for some platforms - e.g. we +* may have a platform which wants to use MMC in CONFIG_CROS_RO. However, +* we can deal with additional needs as we come to them. +* +* While it is something of an inconvenience, it may improve boot time on +* some platforms also. +* +* CONFIG_CROS_LARGE +* - Full version as now with factory defined, all features enabled +* - This will operate as factory build, or verified boot +* +* CONFIG_CROS_SMALL +* - Minimized for use only with verified boot +* - No command line, filesystems, LCD console, etc. +* - Still has all drivers enabled and can perform verified boot +* +* CONFIG_CROS_RO +* - Requires CONFIG_CROS_SMALL. Will only support running RO firmware +* - Set up for running VbLoadFirmware() only +* - Minimal RAM, no display, no USB, no mass storage (SPI flash only) +* - Intended for running in SPL +* +* CONFIG_CROS_RW +* - Requires CONFIG_CROS_SMALL. Will only support running RW firmware +* - Set up for running VbSelectAndLoadKernel() only +*/ + +/* +* This config file defines platform-independent settings that a verified boot +* firmware must have. +*/ + +/* Enable verified boot */ +#define CONFIG_CHROMEOS + +/* Enable test codes */ +#ifdef CONFIG_CROS_FULL +#define CONFIG_CHROMEOS_TEST +#endif /* VBOOT_DEBUG */ + +/* Support constant vboot flag from fdt */ +#define CONFIG_CHROMEOS_CONST_FLAG + +/* Enable vboot twostop with SPI flash */ +#define CONFIG_CHROMEOS_SPI + +#define CONFIG_VBOOT_REGION_READ + +#ifndef CONFIG_CROS_RO +#define CONFIG_CHROMEOS_DISPLAY + +/* Enable legacy vboot_twostop - crosbug.com/p/21810 */ +#define CONFIG_CROS_LEGACY_VBOOT +#endif + +#ifndef CONFIG_CROS_FULL +#undef CONFIG_CMDLINE +#undef CONFIG_SYS_LONGHELP +#undef CONFIG_SYS_CONSOLE_IS_IN_ENV +#undef CONFIG_SYS_STDIO_DEREGISTER +#undef CONFIG_SYS_HUSH_PARSER +#undef CONFIG_CBMEM_CONSOLE +#undef CONFIG_CMDLINE_EDITING +#undef CONFIG_COMMAND_HISTORY +#undef CONFIG_AUTOCOMPLETE +#undef CONFIG_CONSOLE_MUX +#undef CONFIG_SHOW_BOOT_PROGRESS + +#undef CONFIG_I8042_KBD +#define CONFIG_VGA_AS_SINGLE_DEVICE +#undef CONFIG_VIDEO_SW_CURSOR + +#undef CONFIG_SUPPORT_VFAT +#undef CONFIG_ATAPI +#undef CONFIG_EFI_PARTITION +#undef CONFIG_DOS_PARTITION +#undef CONFIG_MAC_PARTITION +#undef CONFIG_ISO_PARTITION +#undef CONFIG_PARTITION_UUIDS + +#undef CONFIG_CMD_PART +#undef CONFIG_CMD_CBFS +#undef CONFIG_CMD_EXT4 +#undef CONFIG_CMD_EXT4_WRITE +#undef CONFIG_CMD_NET +#undef CONFIG_CMD_CRC32 +#undef CONFIG_CMD_CROS_EC + +#undef CONFIG_USB_HOST_ETHER +#undef CONFIG_USB_ETHER_ASIX +#undef CONFIG_USB_ETHER_SMSC95XX + +#undef CONFIG_GENERIC_MMC +#undef CONFIG_MMC + +#define DYNAMIC_CRC_TABLE +#undef CONFIG_BOOTDELAY + +#endif + +/* Enable graphics display */ +#ifdef CONFIG_CHROMEOS_DISPLAY +#define CONFIG_LCD_BMP_RLE8 +#define CONFIG_LZMA +#define CONFIG_VIDEO_NO_TEXT +#else +#undef CONFIG_LCD +#undef CONFIG_EXYNOS_FB +#undef CONFIG_EXYNOS_DP +#undef CONFIG_VIDEO_ANALOGIX +#undef CONFIG_VIDEO_PARADE +#undef CONFIG_CMD_BMP +#endif + +#ifdef CONFIG_CROS_RO +#undef CONFIG_USB_EHCI +#undef CONFIG_USB_EHCI_PCI +#undef CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS +#undef CONFIG_USB_MAX_CONTROLLER_COUNT +#undef CONFIG_USB_STORAGE +#undef CONFIG_USB_KEYBOARD +#undef CONFIG_SYS_USB_EVENT_POLL + +#undef CONFIG_CMD_USB +#undef CONFIG_CMD_SOUND +#undef CONFIG_SOUND_INTEL_HDA +#undef CONFIG_CRC32_VERIFY +#undef CONFIG_TPM +#undef CONFIG_FIT +#define CONFIG_CRC32 +#undef CONFIG_LZO + +/* Limited memory so use a smaller recorded console */ +#undef CONFIG_RECORDED_CONSOLE_SIZE +#define CONFIG_RECORDED_CONSOLE_SIZE 3000 + +#else +/* USB is used in recovery mode */ +#define CONFIG_CHROMEOS_USB +#endif + +/* +* Enable this feature to embed crossystem data into device tree before booting +* the kernel. We add quite a few things to the FDT, including a 16KB binary +* blob. +* #define CONFIG_OF_BOARD_SETUP +*/ +#define CONFIG_SYS_FDT_PAD 0x8000 + +/* Make sure that the safe version of printf() is compiled in. */ +#define CONFIG_SYS_VSNPRINTF + +/* +* This is the default kernel command line to a Chrome OS kernel. An ending +* space character helps us concatenate more arguments. +*/ +#ifndef CONFIG_BOOTARGS +#define CONFIG_BOOTARGS +#endif +#define CHROMEOS_BOOTARGS "cros_secure " CONFIG_BOOTARGS " " + +#ifndef CONFIG_DIRECT_BOOTARGS +#define CONFIG_DIRECT_BOOTARGS +#endif +#ifndef CONFIG_EXTRA_BOOTARGS +#define CONFIG_EXTRA_BOOTARGS +#endif + +/******************************************************************************* +* Non-verified boot script * +******************************************************************************/ + +/* +* Defines the regen_all variable, which is used by other commands +* defined in this file. Usage is to override one or more of the environment +* variables and then run regen_all to regenerate the environment. +* +* Args from other scipts in this file: +* bootdev_bootargs: Filled in by other commands below based on the boot +* device. +* +* Args: +* common_bootargs: A copy of the default bootargs so we can run regen_all +* more than once. +* dev_extras: Placeholder space for developers to put their own boot args. +* extra_bootargs: Filled in by update_firmware_vars.py script in some cases. +*/ +#define CONFIG_REGEN_ALL_SETTINGS \ + "common_bootargs=cros_legacy " CONFIG_DIRECT_BOOTARGS "\0" \ + \ + "dev_extras=\0" \ + "extra_bootargs=" \ + CONFIG_EXTRA_BOOTARGS "\0" \ + "bootdev_bootargs=\0" \ + \ + "regen_all=" \ + "setenv bootargs " \ + "${common_bootargs} " \ + "${dev_extras} " \ + "${extra_bootargs} " \ + "${bootdev_bootargs}\0" + +/* +* Defines ext2_boot and run_disk_boot_script. +* +* The run_disk_boot_script runs a u-boot script on the boot disk. At the +* moment this is used to allow the boot disk to choose a partion to boot from, +* but could theoretically be used for more complicated things. +* +* The ext2_boot script boots from an ext2 device. +* +* Args from other scipts in this file: +* devtype: The device type we're booting from, like "usb" or "mmc" +* devnum: The device number (depends on devtype). If we're booting from +* extranal MMC (for instance), this would be 1 +* devname: The linux device name that will be assigned, like "sda" or +* mmcblk0p +* +* Args expected to be set by the u-boot script in /u-boot/boot.scr.uimg: +* rootpart: The root filesystem partion; we default to 3 in case there are +* problems reading the boot script. +* cros_bootfile: The name of the kernel in the root partition; we default to +* "/boot/vmlinux.uimg" +* +* Other args: +* script_part: The FAT partion we'll look for a boot script in. +* script_img: The name of the u-boot script. +* +* When we boot from an ext2 device, we will look at partion 12 (0x0c) to find +* a u-boot script (as /u-boot/boot.scr.uimg). That script is expected to +* override "rootpart" and "cros_bootfile" as needed to select which partition +* to boot from. +* +* USB download support: +* +* Once we have loaded the kernel from the selected device successfully, +* we check whether a kernel has in fact been provided through the USB +* download feature. In that case the kernaddr environment variable will +* be set. It might seem strange that we load the original kernel and +* then ignore it, but we try to load the kernel from a number of different +* places. If the USB disk fails (because there is no disk inserted or +* it is invalid) we don't want to pull in the kernaddr kernel and boot it +* with USB as the root disk. So allow the normal boot failover to occur, +* and only insert the kernaddr kernel when we actually have decided +* what to boot from. +*/ +#define CONFIG_EXT2_BOOT_HELPER_SETTINGS \ + "rootpart=3\0" \ + "cros_bootfile=/boot/vmlinux.uimg\0" \ + \ + "script_part=c\0" \ + "script_img=/u-boot/boot.scr.uimg\0" \ + \ + "run_disk_boot_script=" \ + "if fatload ${devtype} ${devnum}:${script_part} " \ + "${loadaddr} ${script_img}; then " \ + "source ${loadaddr}; " \ + "echo done; " \ + "fi\0" \ + \ + "regen_ext2_bootargs=" \ + "setenv bootdev_bootargs root=${devname} rootwait ro; " \ + "run regen_all\0" \ + \ + "ext2_boot=" \ + "run regen_ext2_bootargs; " \ + "if ext2load ${devtype} ${devnum}:${rootpart} " \ + "${loadaddr} ${cros_bootfile}; then " \ + "if test \"${kernaddr}\" != \"\"; then "\ + "echo \"Using bundled kernel\"; "\ + "bootm ${kernaddr};" \ + "fi; "\ + "bootm ${loadaddr};" \ + "fi\0" + +/* +* Network-boot related settings. +* +* At the moment, we support: +* - initramfs factory install (tftp kernel with factory installer initramfs) +* - full network root booting (tftp kernel and initial ramdisk) +* - nfs booting (tftp kernel and point root to NFS) +* +* Network booting is enabled if you have an ethernet adapter plugged in at boot +* and also have set tftpserverip/nfsserverip to something other than 0.0.0.0. +* For full network booting or initramfs factory install you just need +* tftpserverip. To choose full network booting over initramfs factory intsall, +* you have to set has_initrd=1. For full NFS root you neet to set both +* tftpserverip and nfsserverip. +*/ +#define CONFIG_NETBOOT_SETTINGS \ + "tftpserverip=0.0.0.0\0" \ + "nfsserverip=0.0.0.0\0" \ + "has_initrd=0\0" \ + \ + "rootaddr=" __stringify(CONFIG_INITRD_ADDRESS) "\0" \ + "initrd_high=0xffffffff\0" \ + \ + "regen_nfsroot_bootargs=" \ + "setenv bootdev_bootargs " \ + "dev=/dev/nfs4 rw nfsroot=${nfsserverip}:${rootpath} " \ + "ip=dhcp noinitrd; " \ + "run regen_all\0" \ + "regen_initrdroot_bootargs=" \ + "setenv bootdev_bootargs " \ + "rw root=/dev/ram0 ramdisk_size=512000 cros_netboot; " \ + "run regen_all\0" \ + "regen_initramfs_install_bootargs=" \ + "setenv bootdev_bootargs " \ + "lsm.module_locking=0 cros_netboot_ramfs " \ + "cros_factory_install cros_secure; " \ + "run regen_all\0" \ + \ + "tftp_setup=" \ + "setenv tftpkernelpath " \ + "/tftpboot/vmlinux.uimg; " \ + "setenv tftprootpath " \ + "/tftpboot/initrd.uimg; " \ + "setenv rootpath " \ + "/export/nfsroot; " \ + "setenv autoload n\0" \ + "initrdroot_boot=" \ + "run tftp_setup; " \ + "run regen_initrdroot_bootargs; " \ + "bootp; " \ + "if tftpboot ${rootaddr} ${tftpserverip}:${tftprootpath} && " \ + " tftpboot ${loadaddr} ${tftpserverip}:${tftpkernelpath}; " \ + "then " \ + "bootm ${loadaddr} ${rootaddr}; " \ + "else " \ + "echo 'ERROR: Could not load root/kernel from TFTP'; " \ + "exit; " \ + "fi\0" \ + "initramfs_boot=" \ + "run tftp_setup; "\ + "run regen_initramfs_install_bootargs; "\ + "bootp; " \ + "if tftpboot ${loadaddr} ${tftpserverip}:${tftpkernelpath}; " \ + "then " \ + "bootm ${loadaddr}; "\ + "else " \ + "echo 'ERROR: Could not load kernel from TFTP'; " \ + "exit; " \ + "fi\0" \ + "tftp_ext2_boot=" \ + "run tftp_setup; " \ + "run regen_ext2_bootargs; " \ + "bootp; " \ + "if tftpboot ${loadaddr} ${tftpserverip}:${tftpkernelpath}; " \ + "then " \ + "bootm ${loadaddr}; " \ + "else " \ + "echo 'ERROR: Could not load kernel from TFTP'; " \ + "exit; " \ + "fi\0" \ + "nfsroot_boot=" \ + "run tftp_setup; " \ + "run regen_nfsroot_bootargs; " \ + "bootp; " \ + "if tftpboot ${loadaddr} ${tftpserverip}:${tftpkernelpath}; " \ + "then " \ + "bootm ${loadaddr}; " \ + "else " \ + "echo 'ERROR: Could not load kernel from TFTP'; " \ + "exit; " \ + "fi\0" \ + \ + "net_boot=" \ + "if test ${ethact} != \"\"; then " \ + "if test ${tftpserverip} != \"0.0.0.0\"; then " \ + "if test ${nfsserverip} != \"0.0.0.0\"; then " \ + "run nfsroot_boot; " \ + "fi; " \ + "if test ${has_initrd} != \"0\"; then " \ + "run initrdroot_boot; " \ + "else " \ + "run initramfs_boot; " \ + "fi; " \ + "fi; " \ + "fi\0" \ + +/* +* Our full set of extra enviornment variables. +* +* A few notes: +* - Right now, we can only boot from one USB device. Need to fix this once +* usb works better. +* - We define "non_verified_boot", which is the normal boot command unless +* it is overridden in the FDT. +* - When we're running securely, the FDT will specify to call vboot_twostop +* directly. +*/ +#undef CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS + +#ifdef CONFIG_CROS_RO +#define CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS +#else +#define CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS \ + CONFIG_REGEN_ALL_SETTINGS \ + CONFIG_EXT2_BOOT_HELPER_SETTINGS \ + CONFIG_NETBOOT_SETTINGS \ + \ + "set_devname=" \ + "part uuid ${devtype} ${devnum}:${rootpart} rootuuid; " \ + "setenv devname PARTUUID=${rootuuid}\0" \ + \ + "usb_boot=setenv devtype usb; " \ + "setenv devnum 0; " \ + "run run_disk_boot_script;" \ + "run set_devname; " \ + "run ext2_boot\0" \ + \ + "mmc_setup=" \ + "mmc dev ${devnum}; " \ + "mmc rescan; " \ + "setenv devtype mmc\0" \ + "mmc_boot=" \ + "run mmc_setup; " \ + "run run_disk_boot_script;" \ + "run set_devname; " \ + "run ext2_boot\0" \ + "mmc0_boot=setenv devnum 0; " \ + "run mmc_boot\0" \ + "mmc1_boot=setenv devnum 1; " \ + "run mmc_boot\0" \ + "mmc0_tftpboot=setenv devnum 0; " \ + "run mmc_setup; " \ + "run tftp_ext2_boot\0" \ + \ + "nvboot=" \ + "usb start; " \ + "run net_boot; " \ + "run usb_boot; " \ + \ + "run mmc1_boot; " \ + "run mmc0_boot\0" +#endif + +#define CONFIG_NON_VERIFIED_BOOTCOMMAND "run nvboot" + +#endif /* __configs_chromeos_h__ */
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 14/16 tegra: config: Allow Chrome OS environment settings to be included
In reply to Simon GlassBring these in if they are provided by the board.
---
Changes in v2: None
include/configs/tegra-common-post.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
include/configs/tegra-common-post.h +6 -1
@@ -56,13 +56,18 @@#define BOARD_EXTRA_ENV_SETTINGS #endif +#ifndef CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS +#define CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS +#endif +#define CONFIG_EXTRA_ENV_SETTINGS \ TEGRA_DEVICE_SETTINGS \ MEM_LAYOUT_ENV_SETTINGS \ "fdt_high=ffffffff\0" \ "initrd_high=ffffffff\0" \ BOOTENV \ - BOARD_EXTRA_ENV_SETTINGS + BOARD_EXTRA_ENV_SETTINGS \ + CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS#if defined(CONFIG_TEGRA20_SFLASH ) || defined(CONFIG_TEGRA20_SLINK ) || defined(CONFIG_TEGRA114_SPI )#define CONFIG_TEGRA_SPI
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 15/16 tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
In reply to Simon GlassWith the rename the MAINTAINER file was not updated. Fix it and the 'Chrombook' typo in Kconfig.
---
Changes in v2: None
arch/arm/mach-tegra/tegra124/Kconfig | 2 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/tegra124/Kconfig +1 -1
@@ -7,7 +7,7 @@ config TARGET_JETSON_TK1 bool "NVIDIA Tegra124 Jetson TK1 board" config TARGET_NYAN_BIG - bool "Google/NVIDIA Nyan-big Chrombook" + bool "Google/NVIDIA Nyan-big Chromebook" help Nyan Big is a Tegra124 clamshell board that is very similar to venice2, but it has a different panel, the sdcard CD and WP
board/nvidia/nyan-big/MAINTAINERS +1 -1
@@ -1,4 +1,4 @@ -NORRIN BOARD +NYAN-BIG BOARD M: Allen Martin <[email protected]> S: Maintained F: board/nvidia/nyan-big/
Signature · 1 line
2.2.0.rc0.207.ga3a616c
PATCH v2 16/16 tegra: config: nyan-big: Add options required by Chrome OS boot
In reply to Simon GlassWe need to match the device tree in the FIT with the U-Boot model so we can automatically select the right device tree. Also adjust the load address so that the device tree is not in the way when a zImage kernel tries to extract itself.
---
Changes in v2:
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been applied
include/configs/nyan-big.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/configs/nyan-big.h +7 -0
@@ -12,6 +12,8 @@#include "tegra124-common.h" +#include <configs/chromeos.h> +/* High-level configuration options */ #define V_PROMPT "Tegra124 (Nyan-big) # "#define CONFIG_TEGRA_BOARD_STRING "Google/NVIDIA Nyan-big"
@@ -47,6 +49,7 @@#define CONFIG_AS3722_POWER #define LCD_BPP LCD_COLOR16#define CONFIG_SYS_WHITE_ON_BLACK +#define CONFIG_CMD_BMP /* Align LCD to 1MB boundary */ #define CONFIG_LCD_ALIGNMENT MMU_SECTION_SIZE
@@ -78,10 +81,14 @@#define CONFIG_CMD_DHCP #define CONFIG_FIT +#define CONFIG_FIT_BEST_MATCH #define CONFIG_OF_LIBFDT #define CONFIG_KEYBOARD +#undef CONFIG_LOADADDR +#define CONFIG_LOADADDR 0x82408000 +#include "tegra-common-usb-gadget.h" #include "tegra-common-post.h"
Signature · 1 line
2.2.0.rc0.207.ga3a616c
v2 cover tegra: Expand Nyan-big support
In reply to Simon GlassHi Tom,
Quoted 16 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been applied
Quoted 2 lines
Doug Anderson (1):
Add Chrome OS config header
Apart from the above patch, can this series be applied please?
Quoted 40 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457 ++++++++++++++++++++++ include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode 100644 include/configs/chromeos.h
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616c
Regards,
Simon
v2 cover tegra: Expand Nyan-big support
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the EOW.
IIRC, there was some push-back from Stephen on boot scripts, etc. Have these concerns all been addressed? Have you gotten Acks?
Tom
Quoted 73 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 40 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457 ++++++++++++++++++++++ include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode100644
include/configs/chromeos.h
Quoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon
--
nvpublic
v2 cover tegra: Expand Nyan-big support
Hi Tom,
Quoted 3 lines · Tom Warren
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the EOW.
Great to see progress on T210.
Quoted 2 lines
IIRC, there was some push-back from Stephen on boot scripts, etc. Have these concerns all been addressed? Have you gotten Acks?
No the boot script patch is the one that should be left out. I talked to Stephen about it - there are some things we could do, but not in the timeframe of this release.
Regards,
Simon
Quoted 83 lines
Tom
Quoted 73 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 40 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457 ++++++++++++++++++++++ include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode100644
include/configs/chromeos.hQuoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon--
nvpublic
v2 cover tegra: Expand Nyan-big support
Simon,
Tried applying your patchset. Two or three had minor 'git am' conflicts that were easy to resolve with 'patch', but #11 (tegra: Allow board-specific init) conflicts with Mashiro's move of board.c to board2.c in mach-tegra:
Author: Masahiro Yamada <[email protected]> Date: Mon Apr 13 10:51:14 2015 +0900
ARM: tegra: move NVIDIA common files to arch/arm/mach-tegra
Please rebase your patches against current TOT u-boot-tegra/master and let me know when they're up on patchwork and I'll retry.
Thanks,
Tom
Quoted 114 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:46 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 2 lines · Tom Warren
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the
EOW.
Quoted 1 line
Great to see progress on T210.
Quoted 1 line
IIRC, there was some push-back from Stephen on boot scripts, etc. Have
these concerns all been addressed? Have you gotten Acks?
Quoted 1 line
No the boot script patch is the one that should be left out. I talked to Stephen about it - there are some things we could do, but not in the timeframe of this release.
Regards,
SimonQuoted 70 lines
Tom
Quoted 68 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 34 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457++++++++++++++++++++++
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode100644
include/configs/chromeos.hQuoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon--
nvpublic
v2 cover tegra: Expand Nyan-big support
Hi Tom,
Quoted 11 lines · Tom Warren
Simon,
Tried applying your patchset. Two or three had minor 'git am' conflicts that were easy to resolve with 'patch', but #11 (tegra: Allow board-specific init) conflicts with Mashiro's move of
board.ctoboard2.cin mach-tegra:Author: Masahiro Yamada <[email protected]> Date: Mon Apr 13 10:51:14 2015 +0900ARM: tegra: move NVIDIA common files to
arch/arm/mach-tegraPlease rebase your patches against current TOT u-boot-tegra/master and let me know when they're up on patchwork and I'll retry.
OK I'm just running a test now and will get this out this morning.
Regards,
Simon
Quoted 118 lines
Thanks,
Tom
Quoted 114 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:46 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 2 lines · Tom Warren
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the
EOW.
Quoted 1 line
Great to see progress on T210.
Quoted 1 line
IIRC, there was some push-back from Stephen on boot scripts, etc. Have
these concerns all been addressed? Have you gotten Acks?
Quoted 1 line
No the boot script patch is the one that should be left out. I talked to Stephen about it - there are some things we could do, but not in the timeframe of this release.
Regards,
SimonQuoted 70 lines
Tom
Quoted 68 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 34 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457++++++++++++++++++++++
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) create mode100644
include/configs/chromeos.hQuoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon--
nvpublic
v2 cover tegra: Expand Nyan-big support
Simon,
Applied to u-boot-tegra/master, then I rebased against u-boot/master and uploaded it back to denx.de/u-boot-tegra/master. ./MAKEALL -s tegra works OK. I didn't test on any real HW - my nyan-big system is offline temporarily.
PTAL and let me know if it's working OK and I'll get a PR out to TomR first thing next week.
Tom
Quoted 153 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Friday, June 05, 2015 9:25 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 3 lines · Tom Warren
Simon,
Tried applying your patchset. Two or three had minor 'git am' conflicts that
were easy to resolve with 'patch', but #11 (tegra: Allow board-specific init) conflicts with Mashiro's move of
board.ctoboard2.cin mach-tegra:Quoted 7 lines
Author: Masahiro Yamada <[email protected]> Date: Mon Apr 13 10:51:14 2015 +0900ARM: tegra: move NVIDIA common files to
arch/arm/mach-tegraPlease rebase your patches against current TOT u-boot-tegra/master and let
me know when they're up on patchwork and I'll retry.
Quoted 1 line
OK I'm just running a test now and will get this out this morning.
Regards,
SimonQuoted 122 lines
Thanks,
Tom
Quoted 118 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:46 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 3 lines · Tom Warren
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the
EOW.
Quoted 1 line
Great to see progress on T210.
Quoted 2 lines
IIRC, there was some push-back from Stephen on boot scripts, etc. Have
these concerns all been addressed? Have you gotten Acks?
Quoted 1 line
No the boot script patch is the one that should be left out. I talked to Stephen about it - there are some things we could do, but not in the timeframe of this release.
Regards,
SimonQuoted 71 lines
Tom
Quoted 69 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 35 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS
bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457++++++++++++++++++++++
Quoted 15 lines
Quoted 7 lines
Quoted 7 lines
include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) createmode
100644include/configs/chromeos.hQuoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon--
nvpublic
v2 cover tegra: Expand Nyan-big support
Hi Tom,
Quoted 5 lines · Tom Warren
Simon,
Applied to u-boot-tegra/master, then I rebased against u-boot/master and uploaded it back to denx.de/u-boot-tegra/master. ./MAKEALL -s tegra works OK. I didn't test on any real HW - my nyan-big system is offline temporarily.
PTAL and let me know if it's working OK and I'll get a PR out to TomR first thing next week.
Thanks - it seems to work fine for me.
Regards,
Simon
Quoted 156 lines
Tom
Quoted 153 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Friday, June 05, 2015 9:25 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 3 lines · Tom Warren
Simon,
Tried applying your patchset. Two or three had minor 'git am' conflicts that
were easy to resolve with 'patch', but #11 (tegra: Allow board-specific init) conflicts with Mashiro's move of
board.ctoboard2.cin mach-tegra:Quoted 7 lines
Author: Masahiro Yamada <[email protected]> Date: Mon Apr 13 10:51:14 2015 +0900ARM: tegra: move NVIDIA common files to
arch/arm/mach-tegraPlease rebase your patches against current TOT u-boot-tegra/master and let
me know when they're up on patchwork and I'll retry.
Quoted 1 line
OK I'm just running a test now and will get this out this morning.
Regards,
SimonQuoted 122 lines
Thanks,
Tom
Quoted 118 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:46 AM
To: Tom Warren
Cc: U-Boot Mailing List; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 3 lines · Tom Warren
Sorry, I've been busy with T210 stuff. I'll try to take a look at it before the
EOW.
Quoted 1 line
Great to see progress on T210.
Quoted 2 lines
IIRC, there was some push-back from Stephen on boot scripts, etc. Have
these concerns all been addressed? Have you gotten Acks?
Quoted 1 line
No the boot script patch is the one that should be left out. I talked to Stephen about it - there are some things we could do, but not in the timeframe of this release.
Regards,
SimonQuoted 71 lines
Tom
Quoted 69 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, June 04, 2015 8:16 AM
To: U-Boot Mailing List
Cc: Simon Glass; Tom Warren; Jagannadha Sutradharudu Teki; Stephen Warren; Marek Vasut; Pavel Herrmann; Stephen Warren
Subject: Re: [PATCH v2 00/16] tegra: Expand Nyan-big supportHi Tom,
Quoted 17 lines · Simon Glass
This series expands Nyan-big support:
- Enable Chrome OS EC, so that the keyboard works
- Add some extra clock and pre-kernel init required for reliable operation
- Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easilyStill missing are audio and USB.
Changes in v2:
- Use spi-max-frequency in both the bus and slave nodes
- Remove unnecessary ODMDATA mangling
- Use existing__stringify()macro
- Drop tegra timer patch as it is not needed
- Drop a few patches that have already been appliedQuoted 2 lines
Doug Anderson (1):
Add Chrome OS config headerApart from the above patch, can this series be applied please?
Quoted 35 lines
Simon Glass (15):
tegra:cros_ec: Add tegra support for Chrome OS EC
tegra: spi: Drop theclaim_bus()method to correct delays
dm: tegra:cros_ec: Enable Chrome OS EC on Nyan-big
tegra: spi: Support slow SPI rates
tegra: clock: Support enabling external clocks
tegra: clock: Adjust PLL access to avoid a warning
tegra: Introduce SRAM repair on tegra124
tegra: Add missing tegra124 peripherals
tegra: Increase maximum arguments to 32
tegra: lcd: Tidy up clock init
tegra: Allow board-specific init
tegra: nyan-big: Add additional clock and kernel init
tegra: config: Allow Chrome OS environment settings to be included
tegra: Replace 'Norrin' with 'Nyan-big' and fix typo
tegra: config: nyan-big: Add options required by Chrome OS
bootarch/arm/dts/tegra124-nyan-big.dts | 3 + arch/arm/include/asm/arch-tegra/clock.h | 8 + arch/arm/include/asm/arch-tegra/sys_proto.h | 7 + arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 12 + arch/arm/mach-tegra/clock.c | 24 +- arch/arm/mach-tegra/powergate.c | 20 +- arch/arm/mach-tegra/tegra124/Kconfig | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/common/board.c | 8 +- board/nvidia/nyan-big/MAINTAINERS | 2 +- board/nvidia/nyan-big/nyan-big.c | 69 ++++ configs/nyan-big_defconfig | 5 + drivers/spi/tegra114_spi.c | 40 +- drivers/video/tegra124/tegra124-lcd.c | 4 +- include/configs/chromeos.h | 457++++++++++++++++++++++
Quoted 15 lines
Quoted 7 lines
Quoted 7 lines
include/configs/nyan-big.h | 9 + include/configs/tegra-common-post.h | 15 +- include/configs/tegra-common.h | 2 +- 19 files changed, 663 insertions(+), 38 deletions(-) createmode
100644include/configs/chromeos.hQuoted 6 lines
Quoted 3 lines
--
2.2.0.rc0.207.ga3a616cRegards,
Simon--
nvpublic
v2 cover tegra: Expand Nyan-big support
Quoted 5 lines · Simon Glass
Hi Tom,
Quoted 2 lines · Tom Warren
Simon,
Quoted 8 lines
Quoted 7 lines
Applied to u-boot-tegra/master, then I rebased against u-boot/master and uploaded it back to denx.de/u-boot-tegra/master. ./MAKEALL -s tegra works OK. I didn't test on any real HW - my nyan-big system is offline temporarily.
PTAL and let me know if it's working OK and I'll get a PR out to TomR first thing next week.
Thanks - it seems to work fine for me.
Trying to test this out and I think I am missing something in how to get it installed so it just works. is there some docs somewhere on how to get it installed?
Dennis
v2 cover tegra: Expand Nyan-big support
Hi Dennis,
Quoted 11 lines · Dennis Gilmore
Quoted 10 lines · Simon Glass
Hi Tom,
Quoted 7 lines · Tom Warren
Simon,
Applied to u-boot-tegra/master, then I rebased against u-boot/master and uploaded it back to denx.de/u-boot-tegra/master. ./MAKEALL -s tegra works OK. I didn't test on any real HW - my nyan-big system is offline temporarily.
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
PTAL and let me know if it's working OK and I'll get a PR out to TomR first thing next week.
Thanks - it seems to work fine for me.
Trying to test this out and I think I am missing something in how to get it installed so it just works. is there some docs somewhere on how to get it installed?
This question was asked on IRC just recently.
According to this thread, Sjeord has it working:
https://www.marc.info/?l=u-boot&m=142775949208335&w=1
Regards.
Simon