All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/4] ARM: imx: move cpu code to drivers/soc/imx
@ 2020-01-16  9:36 ` Peng Fan
  0 siblings, 0 replies; 20+ messages in thread
From: Peng Fan @ 2020-01-16  9:36 UTC (permalink / raw)
  To: shawnguo, s.hauer
  Cc: kernel, festevam, dl-linux-imx, allison, info, Anson Huang,
	Leonard Crestez, git, Abel Vesa, ard.biesheuvel,
	linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Follow i.MX8, move the soc device register code to drivers/soc/imx
to simplify arch/arm/mach-imx/cpu.c

I planned to use similar logic as soc-imx8.c to restructure soc-imx.c
and merged the two files into one. But not sure, so still keep
the logic in cpu.c.

There is one change is the platform devices are not under
/sys/devices/soc0 after patch 1/4. Actually ARM64 platform
devices are not under /sys/devices/soc0, such as i.MX8/8M.
So it should not hurt to let the platform devices under platform dir.

Peng Fan (4):
  ARM: imx: use device_initcall for imx_soc_device_init
  ARM: imx: cpu: drop dead code
  ARM: imx: move cpu definitions into a header
  soc: imx: move cpu code to drivers/soc/imx

 arch/arm/mach-imx/common.h       |   1 -
 arch/arm/mach-imx/cpu.c          | 159 ---------------------------------------
 arch/arm/mach-imx/mach-imx6q.c   |   8 +-
 arch/arm/mach-imx/mach-imx6sl.c  |   8 +-
 arch/arm/mach-imx/mach-imx6sx.c  |   8 +-
 arch/arm/mach-imx/mach-imx6ul.c  |   8 +-
 arch/arm/mach-imx/mach-imx7d.c   |   6 --
 arch/arm/mach-imx/mach-imx7ulp.c |   2 +-
 arch/arm/mach-imx/mxc.h          |  22 +-----
 drivers/soc/imx/Makefile         |   3 +
 drivers/soc/imx/soc-imx.c        | 146 +++++++++++++++++++++++++++++++++++
 include/soc/imx/cpu.h            |  30 ++++++++
 12 files changed, 185 insertions(+), 216 deletions(-)
 create mode 100644 drivers/soc/imx/soc-imx.c
 create mode 100644 include/soc/imx/cpu.h

-- 
2.16.4


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

end of thread, other threads:[~2020-02-13  5:55 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16  9:36 [RFC 0/4] ARM: imx: move cpu code to drivers/soc/imx Peng Fan
2020-01-16  9:36 ` Peng Fan
2020-01-16  9:36 ` [RFC 1/4] ARM: imx: use device_initcall for imx_soc_device_init Peng Fan
2020-01-16  9:36   ` Peng Fan
2020-01-17  2:04   ` Jacky Bai
2020-01-17  2:04     ` Jacky Bai
2020-01-17  8:15     ` Peng Fan
2020-01-17  8:15       ` Peng Fan
2020-02-13  5:43       ` Shawn Guo
2020-02-13  5:43         ` Shawn Guo
2020-02-13  5:47         ` Peng Fan
2020-02-13  5:47           ` Peng Fan
2020-02-13  5:55           ` Shawn Guo
2020-02-13  5:55             ` Shawn Guo
2020-01-16  9:36 ` [RFC 2/4] ARM: imx: cpu: drop dead code Peng Fan
2020-01-16  9:36   ` Peng Fan
2020-01-16  9:36 ` [RFC 3/4] ARM: imx: move cpu definitions into a header Peng Fan
2020-01-16  9:36   ` Peng Fan
2020-01-16  9:37 ` [RFC 4/4] soc: imx: move cpu code to drivers/soc/imx Peng Fan
2020-01-16  9:37   ` Peng Fan

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.