All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for OpenBlocks A7
@ 2013-10-30 16:55 Thomas Petazzoni
  2013-10-30 16:55 ` [PATCH 1/2] ARM: kirkwood: add support for OpenBlocks A7 platform Thomas Petazzoni
  2013-10-30 16:55 ` [PATCH 2/2] ARM: kirkwood: enable HIGHMEM in defconfig Thomas Petazzoni
  0 siblings, 2 replies; 24+ messages in thread
From: Thomas Petazzoni @ 2013-10-30 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Marvell EBU maintainers,

The small set of patches that follow add the support for the new
OpenBlocks A7 platform designed and sold by Plathome.

Best regards,

Thomas

Thomas Petazzoni (2):
  ARM: kirkwood: add support for OpenBlocks A7 platform
  ARM: kirkwood: enable HIGHMEM in defconfig

 arch/arm/boot/dts/Makefile                   |   3 +-
 arch/arm/boot/dts/kirkwood-openblocks_a7.dts | 223 +++++++++++++++++++++++++++
 arch/arm/configs/kirkwood_defconfig          |   1 +
 3 files changed, 226 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/kirkwood-openblocks_a7.dts

-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH 0/7] watchdog_reset cleanup
@ 2024-05-28 11:13 Rasmus Villemoes
  2024-05-29  7:35 ` Acked Angelo Dureghello
  0 siblings, 1 reply; 24+ messages in thread
From: Rasmus Villemoes @ 2024-05-28 11:13 UTC (permalink / raw)
  To: u-boot
  Cc: Stefan Roese, Tom Rini, Rasmus Villemoes, Angelo Dureghello,
	Christophe Leroy, Huan Wang, Nobuhiro Iwamatsu

watchdog_reset is no more. That is, it is no longer called from
anywhere, so any leftover definitions are just dead weight, and
references in comments need to be updated.

I don't have access to any m68k, sh or powerpc boards. Only lightly
compile-tested.

Apart from the two sh4 patches, these are independent of each other
and can be applied individually.

Cc: Angelo Dureghello <angelo@kernel-space.org>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Huan Wang <alison.wang@nxp.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Rasmus Villemoes (7):
  m68k: remove dead code
  wdt-uclass: watchdog_reset cleanup
  serial: ns16550: fix comment to mention schedule instead of
    watchdog_reset
  sh4: move reset_cpu() from watchdog.c to cpu.c
  sh4: remove watchdog.c file
  powerpc: mpc83xx: remove unused watchdog_reset() function
  powerpc: mpc85xx: remove dead watchdog-related code

 arch/m68k/cpu/mcf52x2/cpu.c    | 108 ---------------------------------
 arch/powerpc/cpu/mpc83xx/cpu.c |  15 -----
 arch/powerpc/cpu/mpc85xx/cpu.c |  31 ----------
 arch/sh/cpu/sh4/Makefile       |   2 +-
 arch/sh/cpu/sh4/cpu.c          |  10 +++
 arch/sh/cpu/sh4/watchdog.c     |  61 -------------------
 drivers/serial/ns16550.c       |   8 +--
 drivers/watchdog/wdt-uclass.c  |  19 +-----
 include/watchdog.h             |   3 -
 9 files changed, 17 insertions(+), 240 deletions(-)
 delete mode 100644 arch/sh/cpu/sh4/watchdog.c

-- 
2.40.1.1.g1c60b9335d


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH 1/7] m68k: Implement a default flush_dcache_all
@ 2024-06-19 21:27 Tom Rini
  2024-06-24  7:37 ` Acked Angelo Dureghello
  0 siblings, 1 reply; 24+ messages in thread
From: Tom Rini @ 2024-06-19 21:27 UTC (permalink / raw)
  To: u-boot; +Cc: Heinrich Schuchardt, Ilias Apalodimas, Huan Wang,
	Angelo Dureghello

Implement a weak default version of flush_dcache_all which is based on
the ARM default, which is to flush the entire range via
flush_dcache_range(...).

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Huan Wang <alison.wang@nxp.com>
Cc: Angelo Dureghello <angelo@kernel-space.org>
---
 arch/m68k/lib/cache.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c
index de04124404cf..dab834c1cbd8 100644
--- a/arch/m68k/lib/cache.c
+++ b/arch/m68k/lib/cache.c
@@ -134,6 +134,15 @@ void dcache_invalid(void)
 #endif
 }
 
+/*
+ * Default implementation:
+ * do a range flush for the entire range
+ */
+__weak void flush_dcache_all(void)
+{
+	flush_dcache_range(0, ~0);
+}
+
 __weak void invalidate_dcache_range(unsigned long start, unsigned long stop)
 {
 	/* An empty stub, real implementation should be in platform code */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 24+ messages in thread
* [PATCH 00/35] global_data: Reduce size of struct global_data
@ 2024-07-24 15:08 Simon Glass
  2024-07-24 15:08 ` [PATCH 01/35] global_data: Move pci_clk to m68k and powerpc Simon Glass
  0 siblings, 1 reply; 24+ messages in thread
From: Simon Glass @ 2024-07-24 15:08 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Aaron Williams, Algapally Santosh Sagar,
	Anatolij Gustschin, Andrew Davis, Aradhya Bhatia, Bin Meng,
	Dan Carpenter, Devarsh Thakkar, Enrico Leto, Fabio Estevam,
	Heinrich Schuchardt, Huan Wang, Ilko Iliev, Ion Agorria,
	Joao Marcos Costa, Jonas Karlman, Kever Yang, MD Danish Anwar,
	Mario Six, Matthias Schiffer, Michal Simek, NXP i.MX U-Boot Team,
	Nishanth Menon, Patrice Chotard, Peng Fan, Peter Robinson,
	Philipp Tomsich, Quentin Schulz, Sean Anderson, Shiji Yang,
	Stefan Bosch, Stefano Babic, Svyatoslav Ryhel,
	This contributor prefers not to receive mails, Troy Kisky,
	Venkatesh Yadav Abbarapu, Wasim Khan

The global data structure has grown quite a lot over the years, being
the best place to put an important pointer or something that must be
accessed before and after relocation.

This series attempts to reduce the size a little, by moving some things
out and shrinking and aligning some fields.

Some fields are needed during init but not afterwards. To deal with this
a new 'boardf' structure is created, which sits on the stack and is only
present during board_init_f(). It is possible that more fields could
move to this struct, but for now only 4 are moved.

An assumption is made that an int is 32-bits wide on all architectures,
which seems to be true, but maintainers should be able to confirm.

Mostly the code-size impact is neutral, but the patch
'Use less space for environment fields' does increase U-Boot's size by
about 30 bytes on aarch64.

For firefly-rk3399 (64-bit) the size of global reduces from 456 to 368
bytes. For SPL it reduces from 416 to 272 bytes.

There are other things which could be attempted, for example:
- Using hlist instead of list for some lists
- Checking that only necessary fields are present in SPL


Simon Glass (35):
  global_data: Move pci_clk to m68k and powerpc
  x86: Drop use of global_data fb_base
  video: Add a function to obtain the framebuffer address
  video: mxc: Avoid setting global_data fb_base
  video: mxs: Avoid setting global_data fb_base
  arm: friendlyarm: Avoid accessing global_data fb_base
  arm: ronetix: Avoid accessing global_data fb_base
  zynqmp: Avoid setting the framebuffer address
  video: Avoid setting global_data fb_base from SPL handoff
  video: Avoid setting global_data fb_base in video setup
  global_data: Drop fb_base
  global_data: Convert have_console into a flag
  global_data: Remove pci_ram_top
  global_data: Drop global_data hose
  global_data: Drop pci_bootdelay
  global_data: Use less space for environment fields
  board_f: Add a new struct to hold pre-relocation info
  board_f: Move fdt_size to board
  board_f: Move new_bootstage to boardf
  board_f: Move new_bloblist to boardf
  global_data: Drop spl_handoff
  global_data: Collect common fields at the top
  global_data: Reduce the size of bus_clk and mem_clk
  global_data: Reduce the size of mon_len
  global_data: log: Reorder and shrink fields
  global_data: Reduce size of early-malloc vars
  global_data: Move baud_rate field lower
  global_data: Move env_addr field higher
  global_data: Put phys_addr fields near the top
  global_data: Move ulong fields together
  global_data: Move pointer members together
  global_data: Remove jump table in SPL
  global_data: Remove environment members if not used
  doc: Move generic-board documentation into rst
  doc: Add some guidelines about global data

 arch/arm/cpu/arm926ejs/mxs/spl_boot.c         |   2 +-
 arch/arm/lib/bdinfo.c                         |   2 +-
 arch/arm/mach-exynos/spl_boot.c               |   2 +-
 arch/arm/mach-k3/common.c                     |   2 +-
 arch/arm/mach-k3/r5/sysfw-loader.c            |   2 +-
 arch/arm/mach-tegra/board2.c                  |   4 -
 arch/arm/mach-tegra/cboot.c                   |   4 -
 arch/m68k/cpu/mcf5445x/cpu.c                  |   2 +-
 arch/m68k/include/asm/global_data.h           |   2 +
 arch/m68k/lib/bdinfo.c                        |   2 +-
 arch/mips/mach-ath79/ar934x/clk.c             |   4 +-
 arch/mips/mach-octeon/cpu.c                   |   2 +-
 arch/powerpc/cpu/mpc83xx/pci.c                |   4 +-
 arch/powerpc/cpu/mpc83xx/speed.c              |   2 +-
 arch/powerpc/include/asm/global_data.h        |   2 +
 arch/x86/cpu/i386/cpu.c                       |   8 -
 arch/x86/cpu/intel_common/cpu_from_spl.c      |   4 +-
 arch/x86/cpu/ivybridge/cpu.c                  |   5 -
 arch/x86/lib/fsp/fsp_graphics.c               |   1 -
 arch/x86/lib/fsp2/fsp_dram.c                  |   4 +-
 board/freescale/ls2080ardb/eth_ls2080rdb.c    |   2 +-
 board/friendlyarm/nanopi2/board.c             |   9 +-
 board/ronetix/pm9263/pm9263.c                 |   6 +-
 board/siemens/common/board_am335x.c           |   2 +-
 cmd/bdinfo.c                                  |   2 -
 cmd/sb.c                                      |   6 +-
 common/board_f.c                              |  59 ++-
 common/board_r.c                              |   2 +-
 common/console.c                              |  17 +-
 common/hwconfig.c                             |   8 +-
 common/init/handoff.c                         |  12 +
 common/malloc_simple.c                        |   7 +-
 common/spl/spl.c                              |   6 +-
 doc/develop/global_data.rst                   |  25 ++
 .../historical/generic_board.rst}             |  16 +-
 doc/develop/historical/index.rst              |  12 +
 doc/develop/index.rst                         |   8 +
 drivers/clk/mpc83xx_clk.c                     |   2 +-
 drivers/clk/rockchip/clk_rk3399.c             |   3 +-
 drivers/video/imx/mxc_ipuv3_fb.c              |   2 -
 drivers/video/mxsfb.c                         |   1 -
 drivers/video/video-uclass.c                  |  16 +-
 drivers/video/zynqmp/zynqmp_dpsub.c           |   3 +-
 include/asm-generic/global_data.h             | 349 ++++++++----------
 include/board_f.h                             |  35 ++
 include/env_default.h                         |   3 -
 include/env_internal.h                        |   1 +
 include/handoff.h                             |   7 +
 include/video.h                               |  11 +
 lib/asm-offsets.c                             |   2 +
 test/cmd/bdinfo.c                             |   3 -
 test/log/log_test.c                           |   6 +-
 52 files changed, 373 insertions(+), 330 deletions(-)
 rename doc/{README.generic-board => develop/historical/generic_board.rst} (96%)
 create mode 100644 doc/develop/historical/index.rst
 create mode 100644 include/board_f.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH 00/27] led: Remove old status-LED code
@ 2024-09-26 20:44 Simon Glass
  2024-09-26 20:44 ` [PATCH 15/27] m68k: Drop unused status_led.h header file Simon Glass
  0 siblings, 1 reply; 24+ messages in thread
From: Simon Glass @ 2024-09-26 20:44 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, AKASHI Takahiro, Alexander Gendin,
	Andre Przywara, Andy Fleming, Angelo Dureghello, Caleb Connolly,
	Charles Hardin, Devarsh Thakkar, Francis Laniel,
	Heinrich Schuchardt, Huan Wang, Igor Opaniuk, Ilias Apalodimas,
	Javier Martinez Canillas, Jens Scharsig, Jerome Forissier,
	Johan Jonker, Kamil Lulko, Kever Yang, Mattijs Korpershoek,
	Maxim Moskalets, Michael Polyntsov, Mikhail Kshevetskiy,
	Okhunjon Sobirjonov, Patrick Delaunay, Priyanka Jain, Ramon Fried,
	Rasmus Villemoes, Raymond Mao, Richard Weinberger, Samuel Holland,
	Sean Anderson, Sean Anderson, Stefan Roese, Sughosh Ganu,
	This contributor prefers not to receive mails, Wan Yee Lau,
	uboot-stm32

There has been an LED framework in U-Boot which uses driver model for
about 9 years now. Recent work is underway to improve it and provide
more features. It is probably a good time to drop the old code, which
is only used by 5 boards:

   ./tools/qconfig.py -f LED_STATUS
   5 matches
   eb_cpu5282 eb_cpu5282_internal mx23_olinuxino pinephone
   socfpga_vining_fpga

This series attempts that.


Simon Glass (27):
  led: Drop LED_STATUS_BOARD_SPECIFIC
  arm: Drop old LED support
  common: doc: Drop old LED support
  st: stm32f429: Drop old LED code
  led: Make the LED config common
  eb_cpu5282: Drop STATUS_LED
  mx23_olinuxino: Drop STATUS_LED
  pinephone: Drop STATUS_LED
  socfpga_vining_fpga: Drop STATUS_LED
  led: Drop LED_STATUS from Kconfig
  led: Drop the legacy LED command
  misc: Drop gpio_led driver
  pca9551_led: Delete driver
  misc: status_led: Delete driver
  m68k: Drop unused status_led.h header file
  powerpc: Drop status-LED code
  eb_cpu5282: Drop status-LED code
  igep00x0: Drop unused status_led.h header file
  mx23_olinuxino: Drop status-LED code
  vining_fpga: Drop status-LED code
  sunxi: Drop status-LED code
  common: Drop status-LED code in board_r
  image: Drop unused status_led.h header file
  ide: Drop unused status_led.h header file
  mpc83xx: Drop status-LED code
  net: Drop status-LED code
  led: Drop status_led header file

 arch/arm/lib/crt0.S                          |   4 -
 arch/m68k/lib/bootm.c                        |   3 -
 arch/powerpc/lib/interrupts.c                |   6 -
 board/BuS/eb_cpu5282/eb_cpu5282.c            |  20 --
 board/isee/igep00x0/igep00x0.c               |   1 -
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |   7 -
 board/softing/vining_fpga/socfpga.c          |   4 -
 board/st/stm32f429-discovery/Makefile        |   1 -
 board/st/stm32f429-discovery/led.c           |  39 ---
 board/sunxi/board.c                          |   6 -
 boot/image.c                                 |   4 -
 cmd/Makefile                                 |   1 -
 cmd/ide.c                                    |   4 -
 cmd/legacy_led.c                             | 185 ----------
 common/board_f.c                             |  22 --
 common/board_r.c                             |  16 -
 configs/eb_cpu5282_defconfig                 |   6 -
 configs/eb_cpu5282_internal_defconfig        |   6 -
 configs/mx23_olinuxino_defconfig             |   8 -
 configs/pinephone_defconfig                  |   5 -
 configs/socfpga_vining_fpga_defconfig        |  11 -
 doc/README.LED                               |  77 -----
 drivers/led/Kconfig                          | 342 +------------------
 drivers/misc/Kconfig                         |  13 -
 drivers/misc/Makefile                        |   3 -
 drivers/misc/gpio_led.c                      | 106 ------
 drivers/misc/pca9551_led.c                   | 170 ---------
 drivers/misc/status_led.c                    | 124 -------
 drivers/timer/mpc83xx_timer.c                |   5 -
 include/configs/eb_cpu5282.h                 |   6 -
 include/status_led.h                         | 102 ------
 net/bootp.c                                  |   7 -
 net/net.c                                    |  33 --
 33 files changed, 11 insertions(+), 1336 deletions(-)
 delete mode 100644 board/st/stm32f429-discovery/led.c
 delete mode 100644 cmd/legacy_led.c
 delete mode 100644 doc/README.LED
 delete mode 100644 drivers/misc/gpio_led.c
 delete mode 100644 drivers/misc/pca9551_led.c
 delete mode 100644 drivers/misc/status_led.c
 delete mode 100644 include/status_led.h

-- 
2.43.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-10-01  7:22 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30 16:55 [PATCH 0/2] Add support for OpenBlocks A7 Thomas Petazzoni
2013-10-30 16:55 ` [PATCH 1/2] ARM: kirkwood: add support for OpenBlocks A7 platform Thomas Petazzoni
2013-10-30 17:04   ` Andrew Lunn
2013-10-30 17:09   ` Gregory CLEMENT
     [not found]   ` <52713B10.9060809@free-electrons.com>
2013-10-30 17:15     ` acked Jason Cooper
2013-10-30 17:20       ` acked Russell King - ARM Linux
2013-10-30 17:26         ` acked Jason Cooper
2013-10-30 17:22       ` acked Gregory CLEMENT
2013-10-30 17:27         ` acked Jason Cooper
2013-10-30 19:57   ` [PATCH 1/2] ARM: kirkwood: add support for OpenBlocks A7 platform Jason Cooper
2013-10-31  8:37     ` Thomas Petazzoni
2013-10-31  9:17       ` Gregory CLEMENT
2013-10-31  9:21         ` Thomas Petazzoni
2013-10-31 12:50           ` Jason Cooper
2013-10-31 12:54             ` Gregory CLEMENT
2013-10-31 13:20               ` Jason Cooper
2013-10-30 16:55 ` [PATCH 2/2] ARM: kirkwood: enable HIGHMEM in defconfig Thomas Petazzoni
2013-10-30 17:00   ` Andrew Lunn
2013-10-30 17:09   ` Gregory CLEMENT
2013-11-01 15:35   ` Jason Cooper
  -- strict thread matches above, loose matches on Subject: below --
2024-05-28 11:13 [PATCH 0/7] watchdog_reset cleanup Rasmus Villemoes
2024-05-29  7:35 ` Acked Angelo Dureghello
2024-06-19 21:27 [PATCH 1/7] m68k: Implement a default flush_dcache_all Tom Rini
2024-06-24  7:37 ` Acked Angelo Dureghello
2024-07-24 15:08 [PATCH 00/35] global_data: Reduce size of struct global_data Simon Glass
2024-07-24 15:08 ` [PATCH 01/35] global_data: Move pci_clk to m68k and powerpc Simon Glass
2024-07-29  7:57   ` Acked Angelo Dureghello
2024-09-26 20:44 [PATCH 00/27] led: Remove old status-LED code Simon Glass
2024-09-26 20:44 ` [PATCH 15/27] m68k: Drop unused status_led.h header file Simon Glass
2024-10-01  7:21   ` Acked Angelo Dureghello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.