All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines
@ 2015-11-17 20:52 Alban Bedel
  2015-11-17 20:52 ` [PATCH 2/2] MIPS: ath79: Remove some unused code from setup.c Alban Bedel
  2015-11-18 18:10 ` [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: Alban Bedel @ 2015-11-17 20:52 UTC (permalink / raw)
  To: linux-mips
  Cc: Alban Bedel, Ralf Baechle, Qais Yousef, Felix Fietkau,
	Andrew Bresticker, linux-kernel

As I'm using a board with a broken old bootloader I hardcoded the
mips_machtype and did't noticed that the machine entry was still
missing.

Signed-off-by: Alban Bedel <albeu@free.fr>
---
 arch/mips/ath79/setup.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 9a00137..8755d61 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -281,3 +281,8 @@ MIPS_MACHINE(ATH79_MACH_GENERIC,
 	     "Generic",
 	     "Generic AR71XX/AR724X/AR913X based board",
 	     ath79_generic_init);
+
+MIPS_MACHINE(ATH79_MACH_GENERIC_OF,
+	     "DTB",
+	     "Generic AR71XX/AR724X/AR913X based board (DT)",
+	     NULL);
-- 
2.0.0


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

* [PATCH 2/2] MIPS: ath79: Remove some unused code from setup.c
  2015-11-17 20:52 [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Alban Bedel
@ 2015-11-17 20:52 ` Alban Bedel
  2015-11-18 18:10 ` [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Alban Bedel @ 2015-11-17 20:52 UTC (permalink / raw)
  To: linux-mips
  Cc: Alban Bedel, Ralf Baechle, Felix Fietkau, Qais Yousef,
	Andrew Bresticker, linux-kernel

Remove the unused defines for the reference clocks rate
and the useless machine init function.

Signed-off-by: Alban Bedel <albeu@free.fr>
---
 arch/mips/ath79/setup.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 8755d61..be451ee4a 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -36,10 +36,6 @@
 
 #define ATH79_SYS_TYPE_LEN	64
 
-#define AR71XX_BASE_FREQ	40000000
-#define AR724X_BASE_FREQ	5000000
-#define AR913X_BASE_FREQ	5000000
-
 static char ath79_sys_type[ATH79_SYS_TYPE_LEN];
 
 static void ath79_restart(char *command)
@@ -272,15 +268,10 @@ void __init device_tree_init(void)
 	unflatten_and_copy_device_tree();
 }
 
-static void __init ath79_generic_init(void)
-{
-	/* Nothing to do */
-}
-
 MIPS_MACHINE(ATH79_MACH_GENERIC,
 	     "Generic",
 	     "Generic AR71XX/AR724X/AR913X based board",
-	     ath79_generic_init);
+	     NULL);
 
 MIPS_MACHINE(ATH79_MACH_GENERIC_OF,
 	     "DTB",
-- 
2.0.0


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

* Re: [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines
  2015-11-17 20:52 [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Alban Bedel
  2015-11-17 20:52 ` [PATCH 2/2] MIPS: ath79: Remove some unused code from setup.c Alban Bedel
@ 2015-11-18 18:10 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2015-11-18 18:10 UTC (permalink / raw)
  To: Alban Bedel, linux-mips
  Cc: Ralf Baechle, Qais Yousef, Felix Fietkau, Andrew Bresticker,
	linux-kernel

Hello.

On 11/17/2015 11:52 PM, Alban Bedel wrote:

> As I'm using a board with a broken old bootloader I hardcoded the
> mips_machtype and did't noticed that the machine entry was still

    Didn't notice.

> missing.
>
> Signed-off-by: Alban Bedel <albeu@free.fr>

[...]

MBR, Sergei


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

end of thread, other threads:[~2015-11-18 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 20:52 [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Alban Bedel
2015-11-17 20:52 ` [PATCH 2/2] MIPS: ath79: Remove some unused code from setup.c Alban Bedel
2015-11-18 18:10 ` [PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines Sergei Shtylyov

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.